Forums / General / How to show a template section in only one site access

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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