XML title for a new class

Author Message

Javier Loureiro

Thursday 27 October 2005 12:48:46 pm

When I define a new class with only a XML field, called body, how can I display just the plain text as the object title?

I tried this:
<short_article|body.content.output.output_text|wash|shorter(30)>

but it does not work...

I found this bug not closed, but I want something else, I want a plain text for the name, shorter

sorry for so many questions, but I'm trying to understand well the system... thank you.

Javier Loureiro

Kristof Coomans

Friday 28 October 2005 9:40:18 am

I'm afraid that what you're trying to do is impossible with the current implementation. If you use an attribute for the naming scheme, the function <i>title</i> of the attribute's datatype is called. In case of an XML block, it will return <i>eZXMLTextType::rawXMLText( $contentObjectAttribute );</i>.

Beside that, I doubt that using an XML block for the title is a good idea.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

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