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.

eZ debug

Timing: Jan 31 2025 06:29:58
Script start
Timing: Jan 31 2025 06:29:58
Module start 'layout'
Timing: Jan 31 2025 06:29:58
Module start 'content'
Timing: Jan 31 2025 06:29:58
Module end 'content'
Timing: Jan 31 2025 06:29:58
Script end

Main resources:

Total runtime0.0135 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1328151.2109
Module start 'layout' 0.00460.0025 739.343836.6484
Module start 'content' 0.00700.0049 775.992290.1406
Module end 'content' 0.01200.0014 866.132829.9922
Script end 0.0134  896.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002216.6026140.0002
Check MTime0.00107.2905140.0001
Mysql Total
Database connection0.00064.824310.0006
Mysqli_queries0.002317.178430.0008
Looping result0.00000.088610.0000
Template Total0.00118.210.0011
Template load0.00096.332110.0009
Template processing0.00021.798310.0002
Override
Cache load0.00064.184810.0006
General
dbfile0.00139.910980.0002
String conversion0.00000.051440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs