should i extend article type in content class?

Author Message

Manu Gupta

Saturday 29 November 2003 3:22:02 am

hi, i am in design phase and learning EZ:

i would like to capture extra information when creating an article. (like country of origin, references, author2, etc) i go to setup->classes -> content->article and have added the extra details. now, in the templates i need to show the extra information. is this the correct way to do this?

should i create a new object type? or extend the article object type?

thanks
manu

Marco Zinn

Saturday 29 November 2003 5:11:16 am

You are doing perfect :)
Extend the article class with the attributes, that you need. They will appear in the admin site automatically, because the admin site uses no template and thus, ez just prints all attributes.
For the user site, you need to insert your new attributes in the templates for your article class.
go for Templates /node/view/full -> article and /node/view/line -> article and have a look at "attribute_view_gui".
Hope, this helps.

Marco
http://www.hyperroad-design.com

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