Keyword

What "Enable K2 plugins" is for in the cat option?

  • Aimery Marsily
  • Aimery Marsily's Avatar Topic Author
  • Offline
  • Premium Member
More
12 years 6 months ago #64049 by Aimery Marsily
Hi all !

I'm creating a custom K2 template for my project, but I've 2 questions :
- In the K2 category option, there is an option in the Advanced tab called "Enable K2 plugins", what is it for ?
- In the Template code there some "$this->item->event->AfterDisplayContent" line, I suppose it's something with the K2 plugin, but what for ?

Thanks

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

More
12 years 6 months ago #64050 by william white
Replied by william white on topic Re: What "Enable K2 plugins" is for in the cat option?
In the k2 templates you will find special k2 events that are named similarly to the j events. Take a look at the sample k2 plugin code avaliable in the extend k2 section of this site and item.php and you will see the hooks., Althought i havent done it i would assume that if you disable the k2 plugins with that paramater the sample would not fire

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

  • Aimery Marsily
  • Aimery Marsily's Avatar Topic Author
  • Offline
  • Premium Member
More
12 years 6 months ago #64051 by Aimery Marsily
Replied by Aimery Marsily on topic Re: What "Enable K2 plugins" is for in the cat option?
Thanks for the tip ! I downloaded the example plugin and it's right I can see how to use the hooks ;-)

Solved in 1 answer, that's effective !

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


Powered by Kunena Forum