- Posts: 21
COMMUNITY FORUM
[SOLVED] Joomla Plugins in K2 tags page - widgetkit
- Ali Can
-
Topic Author
- Offline
- Junior Member
I want to have widgetkit in K2 tag pages.
but it displays raw [widgetkit id=xx] code where as displays gallery in item pages.
is it possible
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
its the same with other content plugin codes like
{loadposition xxx } they do not work either
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
here is the item page
www.akademigrafik.com/haftalikev/gunluk-kiralik-daire/gunluk-apart-daire.html
with [widgetkit ] and
{loadposition logo} below it works good
and this is the tag listing
www.akademigrafik.com/haftalikev/tags/gunluk-apart-daire.html
Günlük Apart Daire
[widgetkit id=18]
{loadposition logo}
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
here is the new link. does not work either
I will try it in another site
www.haftalikev.com/index.php?option=com_k2&view=itemlist&task=tag&tag=gunluk%20apart%20daire
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
but changing it to fulltext seems to be the problem
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
<?php echo $item->text; ?>
instead of:
<?php echo $item->fulltext; ?>
If that doesn't work then check lines 709 - 714 of file components/com_k2/models/item.php to see how you trigger plugin events.
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
and I could not be able to trigger plugins for fulltext
I give up
thank for your effort
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
<?php
$dispatcher = JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
$item->text = $item->fulltext;
$dispatcher->trigger('onContentPrepare', array('com_k2.itemlist', &$item, &$this->params, 0));
$item->fulltext = $item->text;
?>
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
didnt work in templates/default/tag.php
or in models/item.php
Please Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.
- Ali Can
-
Topic Author
- Offline
- Junior Member
- Posts: 21
thank you Lefteris
www.haftalikev.com/tags/gunluk-apart-daire.html
Log in or Create an account to join the conversation.
- Lefteris
-
- Offline
- Platinum Member
- Posts: 8743
Please Log in or Create an account to join the conversation.