How to show a template section in only one site access

Author Message

Ville Mattila

Monday 28 January 2008 6:40:54 am

Hello readers,

I should add a small component to a template (full view of certain content class), but it should show up in only one site access, even the template is shared between multiple siteaccesses. How should I do this?

I tried

{if $access_type.name|eq('siteaccessname')}
something to show
{/if}

... but it didn't work at all, whichafter I noticed that $access_type variable is not available in content templates but in pagelayout.tpl.

Any ideas?

Ville

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.