Hello again,
I’m setting up this website and I’m now trying to get yams to work with this dropdown menu.
My current call is like this:
[[Wayfinder? &startId=`0` &config=`cssplay-dropdown` &rowTpl=`@FILE:assets/modules/yams/tpl/wayfinder/docr/row.tpl`!]]
The menu works but the Yams menu titles are not loading any more.. any ideas anyone? Perhaps somebody got a row.tpl that works with a dropdown menu?
I’m using the latest Beta version of Yams i could find on this site and Modx 1.0.2.
Thanks in advance,
Thijs
-
- 805 Posts
If you follow the
CSSplay Menu - Dropdown recipe from the Muddy Dog Paws website, but make the following alterations to the templates, then it should work:
[tt][+wf.link+][/tt] -> [tt](yams_docr:[+wf.docid+])
[tt][+wf.title+][/tt] -> [tt][[YAMS? &get=`data` &from=`pagetitle` &docid=`[+wf.docid+]`]][/tt]
[tt][+wf.linktext+][/tt] -> [tt][[YAMS? &get=`data` &from=`menutitle` &docid=`[+wf.docid+]`]][/tt]
I’m under the impression the parentRowTpl is not loading the yams calls...
Here is my sample:
<li><a [+wf.classes+] href="(yams_docr:[+wf.docid+])" title="[[YAMS? &get=`data` &from=`pagetitle` &docid=`[+wf.docid+]`]]">[[YAMS? &get=`data` &from=`menutitle` &docid=`[+wf.docid+]`]]</a>
<!--[if lte IE 6]>
<a class="sub" href="(yams_docr:[+wf.docid+])" title="[[YAMS? &get=`data` &from=`pagetitle` &docid=`[+wf.docid+]`]]">[[YAMS? &get=`data` &from=`menutitle` &docid=`[+wf.docid+]`]]
<table><tr><td>
<![endif]-->
[+wf.wrapper+]
<!--[if lte IE 6]>
</td></tr></table>
</a>
<![endif]-->
</li>
Why is it not loading the yams calls?
-
- 805 Posts
I’ve just tested it locally and it’s working for me. I tested it on the MODx default install without using the CSSplay Dropdown Menu CSS styles. Some of the links appeared in the HTML but were hidden by the CSS. Thought I’d mention it in case something similar is happening to you.
In the HTML output you posted up the title attributes and link text are empty for a couple of links. Please make sure that you have specified the menutitle and pagetitle in all languages for that document.
Apart from that, not sure what to suggest at the moment.