Hi, I recently posted this thread asking about the best way to deploy a basic tagging navigation system. I’m now trying to add these tags to a layout but due to the nature of multitext metadata fields, am having a little trouble.
This works when there’s one keyword only: %asset_metadata_tag^replace:%asset_metadata_tag%:<a href="./search?%asset_metadata_tag%">%asset_metadata_tag%</a>%
But when there’s multiple keywords, the output (as predicted) appears like so: <a href="./search?hazard; workplace safety; risk">hazard; workplace safety; risk</a>
I then thought something like ^tag:a^replace:;:</a> would do the trick to at least get the hrefs in place. That way it’d wrap all words in <a></a> but then configuring the actual hrefs seemed impossible.
I’m not very familiar with keyword replacements, I’m probably way off the mark. Does anyone have any tips? Puhleease?
Hmm, this seems like it could be difficult using keyword modifiers.
Is javascript an option for you? If so, that is the route I would go.
[quote]
Is javascript an option for you?..
[/quote]
I wish it was, but unfortunately these are critical nav elements so I don't think we could get away with js. Although I do think it's getting more and more acceptable to depend on js. Do you think it's even possible without js?
[quote]
I wish it was, but unfortunately these are critical nav elements so I don't think we could get away with js. Although I do think it's getting more and more acceptable to depend on js. Do you think it's even possible without js?
[/quote]
No, I don't think it is possible using keyword modifiers.
Thanks Nic. I'll make a workaround.
Is this method of tagging really not an off-the-shelf possibility in Squiz CMS? It's such a common form of navigation these days it deserves a place in this solid CMS (hint, hint, devs) 
[quote]
Is this method of tagging really not an off-the-shelf possibility in Squiz CMS? It's such a common form of navigation these days it deserves a place in this solid CMS (hint, hint, devs) 
[/quote]
Well, the method that I use is the one that I posted in your other thread. I used this workaround because sadly using actual tags wasn't as flexible as I wanted.