is there any underline tag to be used in the xml text field

Author Message

M Farhan

Saturday 28 June 2003 4:13:00 am

Hello Everyone,

Is there any underline tag that could be used for underlining the text in the xml text field. I know i can use the custom tag for this functionality, but then again the reason i want to avoid the custom tag is becaz it places the content following it in the next line which i dont want, i want the text following the <content> tag to be in the same line.

Thanks in advance.

MF

laurent le cadet

Saturday 28 June 2003 7:39:47 am

Hi,

We seem to have the same "problem". I'm also working on forms and xml fields.
I don't have the repply to your answer but maybe you could help me.

Here's :

I'm trying to display a checkbox in a form but I don't have the correct syntax.
What I use : {attribute_view_gui attribute=$node.data_map.myidentifier}

But I have only YES or NO if the box is checked or not when I crate the form.

May I have the correct syntax or more generally a tutorial for the different objects ?

Paul Forsyth

Saturday 28 June 2003 8:24:57 am

In 3.1 the xml datafield supports the use of css classes. From the docs an example:

<em [class="foo"]>emphasize text. Attribute 'class', which used to classify the tag, is optional.</em> (alias to emphasize)

so, just use a 'text-decoration: underline;" statement in the appropriate class.

paul

M Farhan

Tuesday 01 July 2003 12:44:36 am

Paul,
Isn't there a way of doing the same thing in 3.0.2.

Thanks in advance.

MF

Paul Forsyth

Tuesday 01 July 2003 1:24:59 am

I think we are going round in circles here at the moment about this...

In the 3.0x series of ez the amount of html you could put into a xml data field was very limited. 3.1 has improved on this by popular demand :) Sorry, but there doesn't seem to be too many ways around this except by css and logic.

You could use a text field to put html into but you can't add related objects to this...

paul

Wenyue Yu

Tuesday 01 July 2003 4:38:11 am

Hi,

You actually can use custom tag now since 3.1 support both inline and block(default) custom tag. Just remember in content.ini add following lines:

AvailableCustomTags[]=underline
IsInline[underline]=true

Then it will be handled without linebreak.

Regards,
wenyue

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 00:40:14
Script start
Timing: Jan 31 2025 00:40:14
Module start 'layout'
Timing: Jan 31 2025 00:40:14
Module start 'content'
Timing: Jan 31 2025 00:40:15
Module end 'content'
Timing: Jan 31 2025 00:40:15
Script end

Main resources:

Total runtime0.9893 sec
Peak memory usage8,192.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0045 588.3906151.2422
Module start 'layout' 0.00450.0038 739.6328220.7500
Module start 'content' 0.00830.9801 960.38284,513.5000
Module end 'content' 0.98840.0008 5,473.882811.7813
Script end 0.9892  5,485.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3452160.0002
Check MTime0.00120.1249160.0001
Mysql Total
Database connection0.00060.062310.0006
Mysqli_queries0.902491.2191700.0129
Looping result0.00060.0614680.0000
Template Total0.948895.920.4744
Template load0.00210.212120.0010
Template processing0.946795.696520.4733
Template load and register function0.00130.135710.0013
states
state_id_array0.00100.097810.0010
state_identifier_array0.00090.089320.0004
Override
Cache load0.00180.1814400.0000
Sytem overhead
Fetch class attribute can translate value0.00180.180040.0004
Fetch class attribute name0.00170.175070.0002
XML
Image XML parsing0.00180.182740.0005
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00180.1811160.0001
String conversion0.00000.000640.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs