-
☆ A M B ☆
- 476 Posts
So I’m building a site that has 2 Wayfinder snippets on each page. My client needs the ability to be able to add rel="nofollow" tags to certain documents in the top Wayfinder independently of the bottom Wayfinder output. So if the client wanted the "Blog" document in the top Wayfinder navigation call to have
but then "Blog" in the bottom navigation won’t have rel="nofollow".
I saw this thread that obviously explains how to put "nofollow" in Wayfinder which is easy enough (
http://modxcms.com/forums/index.php/topic,12914.msg85467.html#msg85467), but can I simply put a T.V. in that document (in this case "Blog") that will allow me to control whether that document allows the "nofollow" tag globally in Wayfinder? Also I see in the attributes for any document I can simply add
as show here:
http://modxcms.com/forums/index.php?topic=12905.0
But I’m not quite sure how I could get the 2 Wayfinder snippets to work independently.
Hope that makes sense.
Precision Web Development ... SmashStack.com
-
☆ A M B ☆
- 24,524 Posts
You can put the attribute in the document’s Attributes field, but it will only be used if you have the [+wf.attributes+] placeholder in your menu’s templates. So have the two menus use different row templates, one that uses the placeholder and one that doesn’t.
-
☆ A M B ☆
- 476 Posts
Hey Susan,
Thank you for the idea. I was thinking about doing that as well but I guess I was wondering if T.V.’s could be introduced into the Wayfinder tpl which I couldn’t get it to do.
Thanks for your advice!
Precision Web Development ... SmashStack.com
-
☆ A M B ☆
- 476 Posts
This is how you reference a TV within a Wayfinder tpl [+template_variable_name+]
I tried that approach but with no luck. Will have to try it again.
Precision Web Development ... SmashStack.com
TVs do work in Wayfinder by default. I just tested it and it worked by simply adding [+theTvName+] in the rowTpl. I don’t think that they will work on the inner or outer tpl since these are limited to the wf placeholders.
If you cannot get them to work you can use the getField snippet in the wayfinder tpl to return a TV value.
-
☆ A M B ☆
- 476 Posts
A-ha...very interesting ... I knew there had to be a catch
Thanks for everyone’s input...will give that a spin to try it out. Thnx again!
Precision Web Development ... SmashStack.com