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.