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
Show or hide links on specific circumstances
-
- New Member
- Posts: 1
- Joined: Sat Jul 14, 2018 8:00 am
Re: Show or hide links on specific circumstances
You can use Smarty to conditionally hide things. Set a variable with your geolocator, e.g. {$region='croatia'} for visitors in the Croatia area, then
Documentation for Smarty conditionals is at https://www.smarty.net/docs/en/language.function.if.tpl
Code: Select all
{if $region=='croatia'}
<link to Croatian article>
{else}
<link to English article>
{/if}
Not getting the answer you need? CMSMS support options