Hello,
I am using a bit of a complicated* way to show thumbnails / captions and would like to use it as an on page product subnav using Wayfinder.
(*the thumb box contains skewed boxes so there is a bit of extra markup to included the top and bottom skewed images.)
I have a wayfinder demo which is pretty close to the mark with the exception of the following tricks.
There are 3 things I am not sure how to do:
1. Every second thumb box (eg every second menu item) requires the opposite skewed borders
Eg
odd’s - skew faces right with:
<div class="thBoxT1"></div>
<div class="thBoxB2"></div>
even’s - skew faces left with:
<div class="thBoxT2"></div>
<div class="thBoxB1"></div>
2. After every four thumb boxes (eg after every four menu items), I need the auto inclusion of a spacer div
Eg
<div class="thSpacer"></div>
3. I would like Wayfinder to auto include the .first, .last and .active classnames like it does with "li" items ([+wf.classnames+]) but it doesn’t seem to way to play ball with my current templates (.active is the one I am most interested in so that I can hide the thumb box for each active page).
How on earth can I make this happen?
This is what I have so far:
Wayfinder Call:
[[Wayfinder? &startId=`3` &level=`2` &titleOfLinks=`description` &sortBy=`alias` &outerTpl=`prodOuter` &rowTpl=`prodsubRow`]]
&outerTpl=`prodOuter`:
<div class="thWrapper">
[+wf.wrapper+]
<div class="clear"></div>
</div>
&rowTpl=`prodsubRow`:
<div class="thBox [+wf.classnames+]">
<div class="thBoxCt">
<a class="th" href="[+wf.link+]" title="[+wf.title+]"><img [+wf.attributes+] height="100" width="100" /></a>
<p><a class="t1" href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a></p>
</div>
<div class="thBoxT2"></div>
<div class="thBoxB1"></div>
</div>
and this is what I need auto inserted after every four menu items (otherwise the layout will break):
<div class="thSpacer"></div>
and this is what I need in the row templates for odd’s:
<div class="thBoxT1"></div>
<div class="thBoxB2"></div>
and this is what I need in the row templates for even’s:
<div class="thBoxT2"></div>
<div class="thBoxB1"></div>
Is there a count system in Wayfinder? Or some other way to do this?
Anyone care to throw their hat into the ring?
Thanks in advance.