I have kind of a rookie question I think... But im still new to Umbraco, so I hope you guys will help me out.
I installed the jCarousel for Runway, and it seems to work fine. But what I want to do is place the carousel in the master template, that way the carousel runs on every page and not JUST the jcarousel document type.
My first thought was just to place the macro in the master, but I see it isnt that simple, cause it doesnt work. Im guessing it has something to do with the xpath in the xslt?
Can someone please explain to me how to use the jCarousel in the master? Do I need to make changes in the xslt?
I am also new to Umbraco, but i have tried to solve your problem.
First of all you need to insert the jCarousel-macro on you master template when you do this the macro will be rendered on all of your pages. Then you need to change some stuff in the xslt called jCarouselListItems.xslt
In here we need to tell the xslt, where to find all of the properties. Those properties that you have written on your jCarousel-node in the content tree.
You must type in the id of the node in your content-tree after you have created the variable you'll replace all of the $currentPage in the file, with $theNode
jCarousel in master template
Hi
I have kind of a rookie question I think... But im still new to Umbraco, so I hope you guys will help me out.
I installed the jCarousel for Runway, and it seems to work fine. But what I want to do is place the carousel in the master template, that way the carousel runs on every page and not JUST the jcarousel document type.
My first thought was just to place the macro in the master, but I see it isnt that simple, cause it doesnt work. Im guessing it has something to do with the xpath in the xslt?
Can someone please explain to me how to use the jCarousel in the master? Do I need to make changes in the xslt?
// Mikkel Johansen
Hi Mikkel
I am also new to Umbraco, but i have tried to solve your problem.
First of all you need to insert the jCarousel-macro on you master template when you do this the macro will be rendered on all of your pages.
Then you need to change some stuff in the xslt called jCarouselListItems.xslt
In here we need to tell the xslt, where to find all of the properties. Those properties that you have written on your jCarousel-node in the content tree.
We´ll do this by making a variabel:
<xsl:variable name="theNode" select="umbraco.library:GetXmlNodeById('yourID')"/>
You must type in the id of the node in your content-tree after you have created the variable you'll replace all of the $currentPage in the file, with $theNode
So instead of the code saying:
timeOut: <xsl:value-of-select="$currentPage/data[@alias='speed']"/>
It will now be:
timeOut: <xsl:value-of-select="$theNode/data[@alias='speed']"/>
Think this will work for you, and hopefully solve your problem.
regards,
Dennis Aaen
is working on a reply...