- Posts: 21
COMMUNITY FORUM
[SOLVED] Joomla Plugins in K2 tags page - widgetkit
- Ali Can
- Topic Author
- Offline
- Junior Member
Less
More
10 years 5 months ago #127684
by Ali Can
Replied by Ali Can on topic Re: Joomla Plugins in K2 tags page - widgetkit
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.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 5 months ago #127685
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
First try to use:
instead of:
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.
<?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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 5 months ago #127686
by Ali Can
Replied by Ali Can on topic Re: Joomla Plugins in K2 tags page - widgetkit
<?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
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
- Moderator
Less
More
- Posts: 8743
10 years 5 months ago #127687
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 5 months ago #127688
by Ali Can
Replied by Ali Can on topic Re: Joomla Plugins in K2 tags page - widgetkit
which file should I paste this
didnt work in templates/default/tag.php
or in models/item.php
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
- Moderator
Less
More
- Posts: 8743
10 years 5 months ago #127689
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 21
10 years 5 months ago - 10 years 5 months ago #127690
by Ali Can
Replied by Ali Can on topic Re: Joomla Plugins in K2 tags page - widgetkit
worked like a charm
thank you Lefteris
www.haftalikev.com/tags/gunluk-apart-daire.html
thank you Lefteris
www.haftalikev.com/tags/gunluk-apart-daire.html
Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
10 years 5 months ago #127691
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
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.