Keyword

[SOLVED] Joomla Plugins in K2 tags page - widgetkit

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #127684 by Ali Can
where can I manege that. add fulltext variable and trigger. can you guide me some files. I can take a look at structure for introtext and may be I can adopt it for fulltext

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #127685 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
First try to use:
<?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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #127686 by Ali Can
<?php echo $item->text; ?> also gives introtext

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.

More
10 years 5 months ago #127687 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
Try this:
<?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;
?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #127688 by Ali Can
which file should I paste this


didnt work in templates/default/tag.php


or in models/item.php

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #127689 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
You should place this in tag.php inside the foreach loop and before you echo the fulltext variable. It should work for content plugins.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago - 10 years 5 months ago #127690 by Ali Can
worked like a charm
thank you Lefteris


www.haftalikev.com/tags/gunluk-apart-daire.html


Log in  or Create an account to join the conversation.

More
10 years 5 months ago #127691 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
You are welcome.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.