Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stuart Paterson 58 posts 229 karma points
    Apr 03, 2017 @ 14:59
    Stuart Paterson
    0

    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

  • Adam Peter Nielsen 18 posts 222 karma points
    Apr 05, 2017 @ 07:07
    Adam Peter Nielsen
    100

    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

  • Stuart Paterson 58 posts 229 karma points
    Apr 19, 2017 @ 12:22
    Stuart Paterson
    0

    Thank you for this Adam, greatly appreciated

    We are also reviewing how search engines may handle the hidden content from your comment above.

Please Sign in or register to post replies

Write your reply to:

Draft