Remove a <p> Tag, How?

Author Message

SathishKumar Subramanian

Thursday 11 December 2003 3:45:55 am

Hi,

How can I get the "Read More..." link at the end of the Intro text itself? The <p> tag of the intro text is shipping the "Read More..." link to the next line.

How can I remove a <p> Tag of a Intro text while publishing the contents in a page? My requirement is to publish the intro text similar as the "News Publications" demo page of ezpublish but without <p> tag

Pls Help! Thanx in Advance!

Sathizh

Claus Jensen

Thursday 11 December 2003 6:17:07 am

Hello,
What template are you talking about here? You must specify what template you are talking about or else we cant help you.

Check the setting:
[TemplateSettings]
# Use either enabled to see which template files are loaded or disabled to supress debug
Debug=enabled

like that so you can see what template is beeing used. Then you got to edit that template removing the <p>-tags.

regards,
claÜs

Marco Zinn

Thursday 11 December 2003 12:28:42 pm

I think, the intro is rendered in a <p>-block, as all XML attributes are.
Either you could change this at some central place, where XML-fields are rendered (i don't know more precisely) OR you could try to position the "more" with some CSS magic.

Marco
http://www.hyperroad-design.com

SathishKumar Subramanian

Thursday 11 December 2003 10:11:39 pm

Thanks Claus & Marco!

Claus,
Actually I am trying to publish the article's Intro text to my webpage with a link "More...". The article's Intro text was received using the {attribute_view_gui attribute=$content_version.data_map.intro} .

Once the user clicking on the "More.." link then I am showing the Article's full content.

My requirement is to publish the Intro text with the "More.." link on the same line. But the Intro text is coming with the <p> tag. So the "More.." link is skipping to the next line.

I have enabled the debug settings of the Templatesettings in site.ini.
Check the setting:
[TemplateSettings]
# Use either enabled to see which template files are loaded or disabled to supress debug
Debug=enabled

This helped me to get the template name. Its using the ezxmltext.tpl . I have gone through template in design/standard/templates/content/datatype/view/ezxmltext.tpl

The <p> tag is not used inside the template. May be I am wrong in somewhere. Please help to get my requirement.

Marco,
I have gone through the design/stylesheets and I have added a CSS statement for p tag in my stylesheet and removed the space height in between the article's intro and "More.." link (But unable to remove the breaking).

Thanks.

Sathizh

Claus Jensen

Friday 12 December 2003 12:12:31 am

You could try to write it out in other ways. I cant find the page in the documentation pages, but if its xml text field try.
.content.output.output_text or data_text.

or: http://ez.no/developer/ez_publish_3/forum/developer/why_is_ez_outputting_paragraph_tag_instead_of_p
or maybe this helps: http://ez.no/developer/ez_publish_3/documentation/customization/custom_design/template_variables_set_by_ezpublish

by the way...did you clear your cache after editing that file? And if through the admin area, try to do it manually, because there is a bug in the Clear all caches function, at least for some versions.

regards,
claÜs

SathishKumar Subramanian

Friday 12 December 2003 2:09:56 am

Thanks Claus,

Instead {attribute_view_gui attribute=$content_version.data_map.intro} I have used the
{$content_version.data_map.intro.data_text} and this publishing the required intro text with the 'More...' link on the same line.

Sathizh

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 04:29:12
Script start
Timing: Jan 31 2025 04:29:12
Module start 'layout'
Timing: Jan 31 2025 04:29:12
Module start 'content'
Timing: Jan 31 2025 04:29:12
Module end 'content'
Timing: Jan 31 2025 04:29:12
Script end

Main resources:

Total runtime0.0149 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.0055 588.0078151.1953
Module start 'layout' 0.00550.0026 739.203136.6172
Module start 'content' 0.00810.0054 775.820394.0938
Module end 'content' 0.01350.0014 869.914137.9922
Script end 0.0149  907.9063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002617.3882140.0002
Check MTime0.00117.3702140.0001
Mysql Total
Database connection0.00085.305310.0008
Mysqli_queries0.002516.752630.0008
Looping result0.00000.100610.0000
Template Total0.00107.010.0010
Template load0.00095.754010.0009
Template processing0.00021.172210.0002
Override
Cache load0.00063.984510.0006
General
dbfile0.00138.686180.0002
String conversion0.00000.054340.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