I want 'Read more' at the end of the intro text

Author Message

Mark Overduin

Wednesday 27 August 2003 3:02:36 am

'Read more' is not directly at the end of the intro text...

Example:
- - - - -
This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article.

READ MORE >>
- - - - -

I want 'Read more' (I have an image for it; an arrow) to be at the end of the intro text of an article.

Like this:
- - - - -
This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. This is my article. READ MORE >>
- - - - -

I tried to do it in line_article.tpl, but that's not the 'problem'. ezP3 automatically adds '<p>' and '</p>' to the intro text (and by doing that, it's applying a design). I don't want that. How do I change it?

I think ezP3 should not be involved in design. Using html tags is creating a design.

-- Mark

bisk

Wednesday 27 August 2003 4:21:28 am

I understand what you're trying to do. I don't know how to remove the p tag.

But I have another suggestion if you have just one paragraph in the intro(s). If you have, you can move the read more link code in the template into the intro div. And after that you can use css to set the <p> of the intro <div> to inline instead of block. That way the other inline element the a tag of the 'read more' will flow behind it instead of under it.

Something like this:
.intro p {display: inline;}

Also if you don't want the p's maybe you can change the intro field from a XML Text field to a Text Field (which I assume doesn't generate the p tag).

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Mark Overduin

Wednesday 27 August 2003 4:35:53 am

Thanx!

".intro p {display:inline;}" does the trick. Now it looks exactly the way I want it to look :D

-- Mark

Bjørn Kaarstein

Wednesday 27 August 2003 11:15:07 am

Hi Mark.

Probably your intro is an XML textfield, and then EZpublish automatically uses a bunch of different templates (ezxmltext & ezxmltags) from the standard design folder.

If you turn on
[TemplateSettings]
Debug=enabled

- you'll see which ones are used. Then you also have the possibility to remove paragraphs from these templates.
You can also override these templates, just by placing them in the right folder in the yourdesign/override/ folder.
Regards Bjørn

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 18 2025 22:13:30
Script start
Timing: Jan 18 2025 22:13:30
Module start 'layout'
Timing: Jan 18 2025 22:13:30
Module start 'content'
Timing: Jan 18 2025 22:13:30
Module end 'content'
Timing: Jan 18 2025 22:13:30
Script end

Main resources:

Total runtime0.5330 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0469152.6406
Module start 'layout' 0.00520.0021 740.687539.4766
Module start 'content' 0.00730.5241 780.1641551.3516
Module end 'content' 0.53150.0015 1,331.515612.1250
Script end 0.5330  1,343.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5702160.0002
Check MTime0.00120.2260160.0001
Mysql Total
Database connection0.00060.115210.0006
Mysqli_queries0.487191.3936620.0079
Looping result0.00040.0803600.0000
Template Total0.510195.720.2550
Template load0.00180.341120.0009
Template processing0.508395.353420.2541
Template load and register function0.00010.027610.0001
states
state_id_array0.00020.042210.0002
state_identifier_array0.00070.123320.0003
Override
Cache load0.00150.2837360.0000
Sytem overhead
Fetch class attribute can translate value0.00070.122330.0002
Fetch class attribute name0.00080.147740.0002
XML
Image XML parsing0.00030.061030.0001
class_abstraction
Instantiating content class attribute0.00000.001440.0000
General
dbfile0.00130.2515100.0001
String conversion0.00000.001340.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
4content/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
6content/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: 22
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs