At the moment we have multiple international TLD's .ie .hk etc etc however some of our site pages aren't relevant to certain countries/TLD's so I'm looking to hide these based on the TLD visited.
We have added the Novicell Footprint plugin to our Umbraco and I've been looking at creating segments with criteria for visitors on certain TLD's, I can select the nodes I want to hide but the options for actions are limited to 'inactive' and 'send email'. What I'd like is an umbracoNaviHide action for those nodes and visitors who fall in to these segments...
Any advice or similar examples would be greatly appreciated :)
Remember: You should be careful when hiding pages. Search engines might get a bit confused in some cases. remember to have a xml sitemap for the engines to make sure all pages get indexed. :)
Hiding nodes for segmented visitors
At the moment we have multiple international TLD's .ie .hk etc etc however some of our site pages aren't relevant to certain countries/TLD's so I'm looking to hide these based on the TLD visited.
We have added the Novicell Footprint plugin to our Umbraco and I've been looking at creating segments with criteria for visitors on certain TLD's, I can select the nodes I want to hide but the options for actions are limited to 'inactive' and 'send email'. What I'd like is an umbracoNaviHide action for those nodes and visitors who fall in to these segments...
Any advice or similar examples would be greatly appreciated :)
Thanks Stuart
Hi stuart
I would implement it in the razor template instead of looking at the actions sectino.
Use
bool CurrentVisitor.IsInSegment(string segmentAlias);
and then hide the page if it is not relevant.
Remember: You should be careful when hiding pages. Search engines might get a bit confused in some cases. remember to have a xml sitemap for the engines to make sure all pages get indexed. :)
Regards Adam
Edit: Documentation is here: https://github.com/Novicell/Footprint
Thank you for this Adam, greatly appreciated
We are also reviewing how search engines may handle the hidden content from your comment above.
is working on a reply...