yentsun, you should definatly be able to do that with Wayfinder. Just take a look at the different parameters and template options and you should be able to get what you want. Let me kniw if you try it and cannot get it working the way you want.
well, I tried to find a way to unlink category folders but with no success. I definately cannot see how wf differs category folders from common folders.
Or maybe I dont undrstand templating in wf...
By this do you mean "have a link if the folder has content but don’t have a link if the folder doesn’t have content" ?
Because having all your folders unlinked is easy, having all your folders linked is easy... but I don’t know how you’d have both types in one menu. I don’t recall seeing any available template for ’hasnocontent’.
-
☆ A M B ☆
- 24,524 Posts
DropMenu used to look to see if the folder had a template, but I don’t see any such code in Wayfinder.
Is this possibly related to the MySQL 4.1.21-standard bug?
http://modxcms.com/forums/index.php/topic,6668.0.html
I guess not:)
DropMenu (or something else) has initiated the term of "category". Which is a folder without any content or template and used just for grouping documents. If we link to such a folder we’ll get a blank page (see here:
http://modx.ru/sitemap/ press most top level items). So DropMenu had an option of not linking such folders-categories and that was nice. I wish I could do this in wf... or else do I have another way? Dont say I should put content in category folders:)
-
☆ A M B ☆
- 24,524 Posts
Weblinks can be folders...
-
MODX Staff
- 12,272 Posts
The categories folder concept is quite handy indeed. I think we can and should come up with a more elegant solution though. I frequently (now) want to set a bunch of TVs on parent folders that are @INHERITed by their child documents, and frequently I’ll use [!FirstChildRedirect!] to send folks on their way. So those requirements would rule out using weblinks and blank templates, but I sure would like to work out a solution otherwise. Maybe we need to create a way to pass in an arbitrary test condition that results in a "category folder" (and add another template...)?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
There is a patch to the content editing system that adds a "link attributes" field. You could put rel="category", or something along those lines, and the Wayfinder snippet would know not to make a link out of it.