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?

Thursday 11 March 2004 4:49:29 pm - 1 reply

Modified on Thursday 11 March 2004 4:50:28 pm by Douglas Hammond

Author Message

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

You must be logged in to post messages in this topic!

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