Keyword

[SOLVED] Joomla Plugins in K2 tags page - widgetkit

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month ago #127674 by Ali Can
Hello

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.

More
11 years 1 month ago #127675 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
Hi. I don't even know how widgetkit works but i think it's better to ask it's developers for help.

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month ago #127676 by Ali Can
Hi Lefteris

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.

More
11 years 1 month ago #127677 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
I don't think so. Content plugins are executed in tag listings.

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month ago #127678 by Ali Can
yeah I thought so

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.

More
11 years 1 month ago #127679 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
Plugins are executed in tag listings. Just tested and worked fine for me. Are you using any SEF extensions? I tried to access the raw tag listing page at www.akademigrafik.com/haftalikev/index.php?option=com_k2&view=itemlist&task=tag&tag=gunluk%20apart%20daire but i get redirected to the SEF URL.

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month ago #127680 by Ali Can
I am using mijosef but I deaktivated sef

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
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month ago #127681 by Ali Can
I just changed
Log in  or Create an account to join the conversation.

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month ago #127682 by Ali Can
yes fulltext is the problem here. if I echo introtext it manages the content plugins as it should.

but changing it to fulltext seems to be the problem

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

More
11 years 1 month ago #127683 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
You need to use the variables that are used in the default layouts. The default tag listing uses only introtext. If you want to display fulltext then you have to trigger the plugins on your own.

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month 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
11 years 1 month 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.

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 1 month 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
11 years 4 weeks 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;
?>

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 4 weeks 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
11 years 3 weeks 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.

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

  • Ali Can
  • Ali Can's Avatar Topic Author
  • Offline
  • Junior Member
More
11 years 3 weeks ago - 11 years 3 weeks 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
11 years 3 weeks ago #127691 by Lefteris
Replied by Lefteris on topic Re: Joomla Plugins in K2 tags page - widgetkit
You are welcome.

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