Hello modx-Community
I've got a problem with my newest modx-installation. I use there a 3level-sitetree like this:
- home
- page 1
- page 2
- page 3
- page 4
- page 5
- page 6
- page 7
(...)
and i use the following menu:
[[!Wayfinder? &startId=`0` &outerTpl=`mainnav_menuOuter` &rowTpl=`mainnav_menuRow` &innerTpl=`mainnav_menuInner` &innerRowTpl=`mainnav_menuInnerRow` ]]
mainnav_menuInner:
mainnav_menuInnerRow:
<li><a href="[[+wf.link]]" title="[[+wf.title]]" [[+wf.attributes]]>[[+wf.linktext]]</a>[[+wf.wrapper]]</li>
mainnav_menuOuter
<ul class="menu prepend-6">[[+wf.wrapper]]</ul>
mainnav_menuRow
<li class="[[+alias]]"><a href="[[+wf.link]]" title="[[+wf.title]]"><span>[[+wf.linktext]]</span></a>[[+wf.wrapper]]</li>
and i have two questions:
- basically i want to have the li-class-alias (see mainnav_menuRow) only on the top level to color the five main-items in css. how can i arrange this?
- i have the problem, that often on my site, while i'm for example on page 3, wayfinder creates every link like: /page3/page6.html etc, and when i'm on page6, it's like page6/page6.html - have you experience this as well? what could it be?
friendly url's are turned on logically.
Thanks in advance for your help and greetings
Tobias
edit: it works after i've added '<base href="[[++site_url]]" />' to the html-header, the class issue i've managed with levelClass in Wayfinder
[ed. note: tobiasweeldee last edited this post 14 years, 6 months ago.]