Forums / Setup & design / How do I make an template that only some fields are editable and othes viewable?

"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 do I make an template that only some fields are editable and othes viewable?

Author Message

Douglas Hammond

Thursday 11 March 2004 4:49:29 pm

How do I make an template that only some fields are editable and othes viewable?

Douglas Hammond

Friday 12 March 2004 1:50:36 pm

try this

{section show=eq($ContentObjectAttribute:item.contentclass_attribute.identifier,'id_id') }
{attribute_view_gui attribute_base=$attribute_base attribute=$ContentObjectAttribute:item}
{section-else}
{attribute_edit_gui attribute_base=$attribute_base attribute=$ContentObjectAttribute:item}
{/section}

replace id_id with the attribute identifier