Re: finalizeATCTSchema, _at_rename_after_creation, and title

J Cameron Cooper <jccooper-/awGbKECNgO/3pe1ocb+swC/[email protected]>
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Message-ID <[email protected]>
rowan wrote:

>   A couple questions, probably pretty simple too.
> 
>   I want the title of my archetype to have a different label and
> description on its widget. What's the correct way of overriding this?
> 
>   If I simply define a new field 'title' in my schema then instead of
> having its short name changed to that, it just (presumably as some kind
> of default) gets the name of the portal.

Due to the old DublinCore interface, title has a non-AT-style accessor: 
'Title' instead of 'getTitle'.

If you create a field 'title' yourself, you must account for this. 
However, as you saw later, it's generally better to change the title 
field in the schema.

		--jcc

-- 
"Building Websites with Plone"
http://plonebook.packtpub.com/

Enfold Systems, LLC
http://www.enfoldsystems.com


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.