-
- 125 Posts
Hello i am new to modex,i have install the modex and also run it on local.I already have creat 4 page with there templates, now i want to show that four pages in header part as a menu ..
i have used that code
[[Wayfinder? &startId=`1` &level=`1` &rowTpl=`rowTpl`]]
But after using this code at my header part there are no showing any menu, so can some body help me ..?
Thanx
-
- 24,544 Posts
Try &startId=`0` or set that property to a resource that has children.
Bob, this was answered in a duplicate post. The problem was that Wayfinder was not installed.
-
- 41 Posts
not sure, if you mentioned this. The user chirag_wgsol 'spams' his questions through the whole forum. So no one can follow up, including himself...
Best will be, an Admin will bundle his post to one or two threads in the right subforum
Revolution 2.2.6
-
- 5 Posts
Your post is not very clear and I think you haven't really taken much time to read up on how MODx works before looking for help.
That aside, I think what you want to do is create different templates, structured more or less like this:
[[$header]]
[[$nav]]
<div id="content">
<h1>[[*pagetitle]]</h1>
[[*content]]
</div>
[[$footer]]
That might do for your home page, then for internal pages where the layout is a bit different you can create one or more new templates for each layout:
[[$header]]
[[$nav]]
<div id="content">
<h1>[[*pagetitle]]</h1>
[[*content]]
</div>
[[$sidebar-chunk]]
[[$footer]]
You can even show different layouts using a single template something like this:
[[$header]]
[[$nav]]
<div id="content">
<h1>[[*pagetitle]]</h1>
[[*content]]
</div>
[[*parent:is=`6`:then=`
[[$recent-articles]]
`:else=`
[[$sidebar-chunk]]
`]]
[[$footer]]
That should get you started, but you'll soon realise there are multiple ways to do everything in MODx.