Forums / Setup & design / inline elements in template

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

eZ debug

Timing: Jan 19 2025 01:18:31
Script start
Timing: Jan 19 2025 01:18:31
Module start 'content'
Timing: Jan 19 2025 01:18:31
Module end 'content'
Timing: Jan 19 2025 01:18:31
Script end

Main resources:

Total runtime0.0208 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 590.2734180.8359
Module start 'content' 0.00900.0046 771.109493.8828
Module end 'content' 0.01360.0067 864.992270.7031
Script end 0.0203  935.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002712.8398120.0002
Check MTime0.00146.5043120.0001
Mysql Total
Database connection0.00083.890410.0008
Mysqli_queries0.005727.537040.0014
Looping result0.00000.105620.0000
Template Total0.006430.610.0064
Template load0.00094.299110.0009
Template processing0.005526.319010.0055
Override
Cache load0.00062.975510.0006
General
dbfile0.00031.4981100.0000
String conversion0.00000.048230.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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