Hi,
How to split wayfinder links into 2 positions(left and right)? For example I have 8 links, so I want to display 1st-4th link in the left and 5th-8th in the right like below:
<div class="main_nav left">
<ul>
<li class="first active"><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li class="last"><a href="#">Link 4</a></li>
</ul>
</div>
<div class="main_nav right">
<ul>
<li><a href="#">Link 5</a></li>
<li><a href="#">Link 6</a></li>
<li><a href="#">Link 7</a></li>
<li class="last"><a href="#">Link 8</a></li>
</ul>
</div>
Can anyone help me please???
Sorry my english not good.
Thx
How is the structure of the site? I mean the Tree Menu on the left in the Manager
Hi Microchip,
Thank you very munch for the solution. Sorry that I didn’t explain it more specific.
Yes..the menu tree is exactly like what you mean. But what about if the links only 5 or 6 links? So basically I want to split the link automatically into 2 positions with the same number of link for each position.
For Example:
1. 5 links:
<div class="main_nav left">
<ul>
<li class="first active"><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li class="last"><a href="#">Link 3</a></li>
</ul>
</div>
<div class="main_nav right">
<ul>
<li><a href="#">Link 4</a></li>
<li class="last"><a href="#">Link 5</a></li>
</ul>
</div>
2. 6 links
<div class="main_nav left">
<ul>
<li class="first active"><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li class="last"><a href="#">Link 3</a></li>
</ul>
</div>
<div class="main_nav right">
<ul>
<li><a href="#">Link 4</a></li>
<li><a href="#">Link 5</a></li>
<li class="last"><a href="#">Link 6</a></li>
</ul>
</div>
Once again thank you for your great help.
Regards,
Made
Yes...Your solutions above is great and working for me. But the problem is that I don’t know how many links will be created by the editor(doesn’t know anything about HTML, CSS, etc) and the editor doesn’t need to edit the template every-time he/she create a new page/link. So I need to create a template that automatically split into 2 positions.
Regards,
Made
But the user has to choose at least if the page goes in the menu on the right or in the menu on the left, right? So in the manager you could add a Dropdown Template Variable with two choices: Menu Left; Menu Right.
Than I think you could use Ditto and the filter parameter to generate the menu accordingly.