Page 1 of 1

Show or hide links on specific circumstances

Posted: Thu Aug 29, 2013 2:35 pm
by korisnik
I created few pages. I would like hide links that points to specific pages.
My site is in English, but sometimes I publish article in Croatian. I could use geo IP locator to locate where is visitor from. But how to hide links that points to Croatian pages if visitor is not from Croatia.

Re: Show or hide links on specific circumstances

Posted: Thu Aug 29, 2013 5:53 pm
by Dr.CSS
Sounds like you don't want them in the menu, in the Options tab there is check box for this, also at the bottom right is a select with 'Hide from menu' that works with the check box at the right of each page in content > pages...

Re: Show or hide links on specific circumstances

Posted: Thu Aug 29, 2013 6:13 pm
by velden
Hiding specific items from the menu can be done via the parameter:
(optional) excludeprefix="" - Exclude all items (and their children) who's page alias matches one of the specified (comma separated) prefixes. This parameter must not be used in conjunction with the includeprefix parameter.
Maybe you can use that in conjunction with the {browser_lang} tag (Extensions -> tags)

However, that would be for the menu only, not for other links in your page. You could of course make all your other links conditional by putting them inside {if some_language_condition} {/if} tags.

Re: Show or hide links on specific circumstances

Posted: Fri Aug 30, 2013 10:41 pm
by korisnik
Thank you, that will be very useful to me