Posted By

gerhardsletten on 08/09/10


Tagged

ezpublish


Versions (?)

Check either siteaccess or ip with Swark in Ez publish


 / Published in: eZ Publish
 

  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  

You need to login to post a comment.