• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Show or hide links on specific circumstances
PostPosted: Sat Jul 14, 2018 9:02 am 
Offline
New Member
New Member

Joined: Sat Jul 14, 2018 8:00 am
Posts: 1
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


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: Show or hide links on specific circumstances
PostPosted: Sat Jul 14, 2018 2:31 pm 
Offline
Dev Team Member
Dev Team Member
User avatar

Joined: Wed Feb 25, 2009 4:25 am
Posts: 340
Location: Victoria, BC
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
Code:
{if $region=='croatia'}
<link to Croatian article>
{else}
<link to English article>
{/if}


Documentation for Smarty conditionals is at https://www.smarty.net/docs/en/language.function.if.tpl

_________________
Not getting the answer you need? CMSMS support options


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
HostPapa CMS Made Simple hosting