I would like to have Wayfinder output a menu for my nav which consists of images for links. Each link uses a different background image. Is it possible to use Wayfinder for this menu? I’m supposing that I would need Wayfinder to output a unique class or ID for each link. Ideas?
-
☆ A M B ☆
- 24,524 Posts
Wayfinder will generate a unique ID for each link.
The ID # of the document will be added to the id you specify.
http://wiki.modxcms.com/index.php/Wayfinder
Oh, very cool. Thanks!
Another thing I’m interested in learning is how does one use wayfinder with Weblinks? I set the starting ID as a weblink and wayfinder doesn’t output anything. Any idea? Thanks again!
-
☆ A M B ☆
- 24,524 Posts
That’s because the startId is the ID of a container/document and Wayfinder makes its menu out of the children of that document. Does your weblink have children (that is, it’s also a "folder" or "container" document)?
As far as how Wayfinder actually makes links for weblink documents, it uses the actual content of the document to make its link. If the content is a number (the ID of another MODx document) it generates the correct URL for that document. If it is a URL already, then it siimply uses that.
That works. Sweetage. Thank you thank you thank you!
Hate to revive an old topic but this seems like it is on the path I am looking to follow.
I to wish to have images instead of text and have rollover images. Problem is I don't understand how to translate this into use. I have read over the manual and the explanation above, but fail to see how this connects to my menu, I have a limited knowledge of the menu system in ModX to begin with.