<php?
if ($PHP_SELF != 'url1')
{ $page1 = 'none'; } else { $page1 = 'active'; }
if ($PHP_SELF != 'url2')
{ $page2 = 'none'; } else { $page2 = 'active'; }
if ($PHP_SELF != 'url3')
{ $page3 = 'none'; } else { $page3 = 'active'; }
if ($PHP_SELF != 'url4')
{ $page4 = 'none'; } else { $page4 = 'active'; }
if ($PHP_SELF != 'url5')
{ $page5 = 'none'; } else { $page5 = 'active'; }
?>
<li>
<a href="url1" class="<?echo $page1;?>">
<span>1</span>
</a>
</li>
<li>
<a href="url2" class="<?echo $page2;?>">
<span> 2</span>
</a>
</li>
<li>
<a href="url3" class="<?echo $page3;?>">
<span> 3</span>
</a>
</li>
<li>
<a href="url4" class="<?echo $page4;?>">
<span> 4</span>
</a>
</li>
<li>
<a href="url5" class="<?echo $page5;?>">
<span> 5</span>
</a>
</li>
KP
<?php
if ($_SERVER["REQUEST_URI"] != '/modx/')
{ $page1 = 'none'; } else { $page1 = 'active'; }
if ($_SERVER["REQUEST_URI"] != '/modx/index.php?id=4')
{ $page2 = 'none'; } else { $page2 = 'active'; }
if ($_SERVER["REQUEST_URI"] != '/modx/index.php?id=6')
{ $page3 = 'none'; } else { $page3 = 'active'; }
if ($_SERVER["REQUEST_URI"] != '/modx/index.php?id=11')
{ $page4 = 'none'; } else { $page4 = 'active'; }
if ($_SERVER["REQUEST_URI"] != '/modx/index.php?id=5')
{ $page5 = 'none'; } else { $page5 = 'active'; }
$menu = '
<li>
<a href="http://test.glcreations.net/modx/" class="'.$page1.'">
<span>Home Page</span>
</a>
</li>
<li>
<a href="http://test.glcreations.net/modx/index.php?id=4" class="'.$page2.'">
<span> Text Layout</span>
</a>
</li>
<li>
<a href="http://test.glcreations.net/modx/index.php?id=6" class="'.$page3.'">
<span> Portfolio Layout</span>
</a>
</li>
<li>
<a href="http://test.glcreations.net/modx/index.php?id=11" class="'.$page4.'">
<span> Search Layout</span>
</a>
</li>
<li>
<a href="http://test.glcreations.net/modx/index.php?id=5" class="'.$page5.'">
<span> Contact Us Layout</span>
</a>
</li>';
echo $menu;
[[Wayfinder? &startId=`0` &hereClass=`active` &rowTpl=`chunkName`]]
<li>
<a href="[[+wf.link]]"[[+wf.classes]]>
<span>[[+wf.title]]</span>
</a>
</li>
This
[..] please check my spelling and the placeholder names [..]
<span>[[+wf.link]]</span>
<span>[[+wf.title]]</span>
Cheers for the suggestion, however I dont want way finder to pull anything, I want just a simple list of menu items that I choose, regardless of folder structure.
My solution is perfect for my needs