thanks for the help opengeek.
I have done the following.
I put the following code call in my template:
[[!getResources? &parents=`0` &depth=`0` &sortby=`menuindex` &sortdir=`asc` &tpl=`MenuItem`]]
then i created a chunk with the following code:
<li><a href="?id=[[~[[+id]]]]">[[+pagetitle]]</a></li>
I can't seem to find how to only show "hidemenu" = 0 pages. How can i add that to the call?
Also i need an "if statement" within the chunk that checks whether the current page id is the same as one of the looped one and if so, then add a different class name (aka. active).
help?