Forums / General / Remove a <p> Tag, How?

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

eZ debug

Timing: Jan 18 2025 16:09:28
Script start
Timing: Jan 18 2025 16:09:28
Module start 'content'
Timing: Jan 18 2025 16:09:28
Module end 'content'
Timing: Jan 18 2025 16:09:29
Script end

Main resources:

Total runtime1.0811 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 589.0313180.8516
Module start 'content' 0.00740.9353 769.8828616.4688
Module end 'content' 0.94270.1383 1,386.3516337.0938
Script end 1.0810  1,723.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.3884210.0002
Check MTime0.00160.1443210.0001
Mysql Total
Database connection0.00100.090610.0010
Mysqli_queries1.000792.56282050.0049
Looping result0.00230.21152030.0000
Template Total1.052797.420.5264
Template load0.00190.178920.0010
Template processing1.050897.197720.5254
Template load and register function0.00020.022510.0002
states
state_id_array0.00110.104010.0011
state_identifier_array0.00110.106220.0006
Override
Cache load0.00170.1529520.0000
Sytem overhead
Fetch class attribute can translate value0.00150.143140.0004
Fetch class attribute name0.00160.151470.0002
XML
Image XML parsing0.00100.095440.0003
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00200.1815270.0001
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
11content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs