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

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