Keyword

Auto Insert Snippets Tag

  • Usop Wilcha
  • Usop Wilcha's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 4 days ago #143366 by Usop Wilcha
Auto Insert Snippets Tag was created by Usop Wilcha
Hello

This is the scenario,

I have K2 site, that has quite an amount of items

Just a recent requirement, i need to put some script inside of every items created

I was imagining a solution like below, or sort of..

a plugin that can insert automatically, any pre defined scrip/code/tag into k2 items, if can select by categories will be highly appreciated

Any ideas, or perhaps any existed solutions for this task?

Thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 days ago #143372 by Krikor Boghossian
Replied by Krikor Boghossian on topic Auto Insert Snippets Tag
I would place this code in my overrides.
You can also check the item's category id (in the item.php file) and paste the appropriate snippet.

More on overrides can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

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

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


Powered by Kunena Forum