Keyword

Adding plugin code via PHP to K2 content

More
11 years 5 months ago #112403 by Gee
Hello,

I am using artcolorbox to embed Picasa albums in K2 articles. Now I added some code to generate the plugin code with picasa ids automatically by adding a link in K2 administration (instead of Flickr).

Now the database entry looks right like
{artcolorbox picasaUser="userid" picasaAlbum="albumid" loadJQuery="false" noConflict="true"/}

This works, if I just copy the above code in K2 contents. Now I would like to automatically embed this code and stored it as gallery entry in K2.item database entry (like {gallery}1{/gallery} before it shows now above code.

BUT the plugin code does not work. Just nothing happens. How can I add plugin code to this->item->fulltext or the gallery section? I only get the plain code to show, but no executed plugin code.

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

  • Mohamed Abdelaziz
  • Mohamed Abdelaziz's Avatar
  • Offline
  • Platinum Member
  • Joomla Developer
More
11 years 5 months ago #112404 by Mohamed Abdelaziz
Replied by Mohamed Abdelaziz on topic Re: Adding plugin code via PHP to K2 content
Is it K2 or Content plugin?

If it is a K2 plugin, I think you can add the plugin code to the fulltext in the onK2BeforeDisplay function.

Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store

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

More
11 years 5 months ago #112405 by Gee
Hi. It is a content plugin.

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


Powered by Kunena Forum