inline elements in template

Author Message

akiL Mussa

Monday 20 December 2004 7:28:15 am

Hello,

Can anybody explain me how to remove line break between 2 elements in template?
I would like to have the intro text of an article followed by the published date of this article, without line break.

Something like:
...intro text.[20.12.2004]

and not:
...intro text.
[20.12.2004]

I'm trying something like this, but isn't working:

{set-block scope=root variable=is_block}false{/set-block}
     {attribute_view_gui attribute=$node.object.data_map.intro}
     [{$node.object.published|datetime(custom,"%d-%m-%Y")}]
{set-block scope=root variable=is_block}true{/set-block}

Can anybody help me with this?
akiL

Roy Bøhmer

Monday 20 December 2004 11:59:59 am

Hi akiL!

I think what you experience is that xmltext-attributes by default is surrounded by <p>-tags. There is a way to override the template. Take a look at this:
http://ez.no/community/forum/suggestions/default_paragraph_in_an_ezxmltext_datatype

Roy

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 19 2025 01:07:35
Script start
Timing: Jan 19 2025 01:07:35
Module start 'layout'
Timing: Jan 19 2025 01:07:35
Module start 'content'
Timing: Jan 19 2025 01:07:36
Module end 'content'
Timing: Jan 19 2025 01:07:36
Script end

Main resources:

Total runtime0.7612 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.1563152.6250
Module start 'layout' 0.00540.0026 741.781339.4453
Module start 'content' 0.00790.7520 781.2266463.1328
Module end 'content' 0.76000.0012 1,244.35948.4766
Script end 0.7612  1,252.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4119160.0002
Check MTime0.00140.1850160.0001
Mysql Total
Database connection0.00070.089310.0007
Mysqli_queries0.722194.8643540.0134
Looping result0.00050.0641520.0000
Template Total0.735096.620.3675
Template load0.00200.262120.0010
Template processing0.733096.292920.3665
Template load and register function0.00020.020710.0002
states
state_id_array0.00080.100510.0008
state_identifier_array0.00080.104820.0004
Override
Cache load0.00160.2116200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072320.0003
Fetch class attribute name0.00110.141120.0005
XML
Image XML parsing0.00020.028520.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00070.0931100.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs