Hi all,
I’m trying to use Wayfinder and Ditto together to create tabbed content. Right now I’m working on getting the <li>s that Wayfinder generates to comply with the formatting needed for the tabbed content javascript to work.
I’ve got a Wayfinder template able to build in the javascript parameter into the <li> results. I need to create another template that is only applied to the first item in the list.
Any ideas?
Chris
Hey Ryan! Thanks!
Link to installation/update instructions?
Chris
If I remember well the class "first" is added to the first element.
You could change the name using &firstClass.
Now you can detect the first element using javascript and reformat the html to your needs.
Worked like a champ, xpix. Thanks! (Just had to remember to add [+wf.classes+] to the template)
Now I have the Wayfinder <ul> formatted as the javascript needs it.
Off to work on the Ditto portion...
Chris
Hey xpix,
Is there a similar parameter for Ditto? I’m about to look through the Ditto docs...
Chris
There’s an &tplFirst that I can use...
Chris