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

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