Check either siteaccess or ip with Swark in Ez publish


/ Published in: eZ Publish
Save to your folder(s)



Copy this code and paste it in your HTML
  1. {if eq( current_siteaccess(), 'nor' )}
  2. {/if}
  3.  
  4. {def $ip_arr = array('80.64.196.182','109.189.147.151','213.158.225.162')}
  5. {if $ip_arr|contains( server('remote_addr') )}
  6. {*Contant only visible for some ip's*}
  7. {/if}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.