I am using views slideshow to display some featured content and dynamic rendering only replaces the header of the first slide. The other slides don't have anything at all for their titles anymore, it's just blank.

Comments

Rob_Feature’s picture

Yup, just want to confirm this issue on my end as well. Must be some kind of problem with the two javascripts clashing?

i-sibbot’s picture

I concur. Having sifr v3 target and replace selectors in nodes that are used in a views slide show results in the first displayed node in the slider rendering correctly. The rest, previouslt hidden slides havent had the sifr triggered on there content. Reading around it looks as if sifr has problems with hidden divs being rendered. Something about have to call sIFR.replace() function when the div is being displayed.

froboy’s picture

I was able to get around this issue in a slideshow that used jquery.cycle - it looks like Views Slideshow might be a little more complex, but here's my solution in the hopes that it might help:

Basically, as i-sibbot said, you need to call your sIFR.replace() function when the slideshow transition has finished for each new slide to be displayed. jquery.cycle has an "after" option with which you can call another function. Using that, I created a new function which contained the entire sifr.replace(mysiteblahblahswf... line from sifr3-rules.js and then called that after each transition. The text loads just after the transition, and once it's loaded once it's there for good.

My code (at the bottom of my page-front.tpl.php):

$('.myslideshow').cycle({ 
    //bunches of options
    after:	onAfter, 
});
function onAfter() {
	//copy line 3 from sifr3-rules.js and paste here
	sIFR.replace(mysitepathtoswf, { "font": "/mysite/sites/mysite/files/render/font.swf", "selector": "h2.title", "css": { ".sIFR-root": { "display": "inline", "font-size": "25", "font-weight": "normal" }, "a": { "text-decoration": "none" }, "a:link": { "color": "#000000" }, "a:hover": { "color": "#666666", "text-decoration": "none" } }, "wmode": "opaque", "fontname": "mysitepathtoswf" });
	}

Good luck, hope this helps.