Slideshow Plugin

Slideshow Plugin, a forum discussion on Jojo CMS. Join us for more discussions on Slideshow Plugin on our Plugin Support forum.

Back to Forum Index : Back to Plugin Support   RSS
lynchpin

9th July
Posts: 38

I'm working on integrating the jojo_slideshow plugin so that I can specify a specific slideshow on each page. I have added a field called pg_header to page table that allows to select a slideshow.
Now, my only problem is including the slideshow in my template file.
According to the slideshow documentation, this is the tag needed:
[[slideshow:{$pg_header}]]

If I insert this tag into a page body and replace the pg_header with my slideshow id, it works fine, but when I use this in the template file, it just outputs this as it is:
[[slideshow:1]]

It seems that the plugin is being called before this tag is picked up. Is there a way around that?
User Profile
lynchpin

10th July
Posts: 38

I am all set.
I was able to call the 'getSlideshow' function in my global.php file and assign the slideshow id to the name variable. I then included the slideshow template file in the template, and working great now!
Here it is if anyone is interested:
http://www.newcitydenver.org/layout/

User Profile
tom

Developer

tom

23rd July
Posts: 35

I was having a similar issue with Youtube plugin.. the trick (in order to get it working as you originally planned) is including the filter twice in the api file for the plugin:

eg
Jojo::addFilter('content', 'youtube', 'jojo_youtube');
Jojo::addFilter('output', 'youtube', 'jojo_youtube');

'content' checks the body content for the [[ reference ]]
'output' checks again after smarty has finished with the template.
this way you can have filter references in the body or the template.

Using just 'content' means references in the template get ignored, using just 'output' means that smarty will convert [[ ]] in the body to htmlentities before the filter has a chance to look for them

User Profile
lynchpin

23rd July
Posts: 38

Good to know. Thanks for the info
User Profile
Back to Forum Index : Back to Plugin Support   RSS
You must be logged in to post a reply


You are not logged in
You need to Register or Log In before posting on these forums.