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.
Show or hide links on specific circumstances
Re: Show or hide links on specific circumstances
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
Hiding specific items from the menu can be done via the parameter:
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.
Maybe you can use that in conjunction with the {browser_lang} tag (Extensions -> tags)(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.
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
Thank you, that will be very useful to me