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}
  4. {def $ip_arr = array('','','')}
  5. {if $ip_arr|contains( server('remote_addr') )}
  6. {*Contant only visible for some ip's*}
  7. {/if}

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.