"Read more..." in ezwebin

Author Message

Frédéric Peyron

Monday 10 November 2008 12:46:20 pm

Hi,
How can I display the "read more..." link at the bottom of the article summary, when (and only when) a body exists. Indeed, it is not really evident for the users that the article is bigger and they must click on the title to view the body.
Also I would like translate this link ("lire la suite..." in french)
(I am using the ezwebin package)

Thanks for your help
Fred

Martin Ulrich

Thursday 13 November 2008 3:39:23 am

   {section show=$node.data_map.body.content.is_empty|not}
        <div class="attribute-link">
            <p><a href={$node.url_alias|ezurl}>{"Read more..."|i18n("design/base")}</a></p>
        </div>
    {/section}

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

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 10:35:48
Script start
Timing: Jan 18 2025 10:35:48
Module start 'layout'
Timing: Jan 18 2025 10:35:48
Module start 'content'
Timing: Jan 18 2025 10:35:49
Module end 'content'
Timing: Jan 18 2025 10:35:49
Script end

Main resources:

Total runtime0.9040 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0092 587.9063152.6250
Module start 'layout' 0.00920.0071 740.531339.4453
Module start 'content' 0.01640.8860 779.9766486.3125
Module end 'content' 0.90240.0016 1,266.28918.3203
Script end 0.9040  1,274.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4047160.0002
Check MTime0.00150.1708160.0001
Mysql Total
Database connection0.00150.165510.0015
Mysqli_queries0.859595.0759540.0159
Looping result0.00060.0656520.0000
Template Total0.859695.120.4298
Template load0.00210.227020.0010
Template processing0.857594.858420.4288
Template load and register function0.00030.032110.0003
states
state_id_array0.00160.172510.0016
state_identifier_array0.00190.214320.0010
Override
Cache load0.00160.1773110.0001
Sytem overhead
Fetch class attribute can translate value0.00070.077820.0004
Fetch class attribute name0.00110.125120.0006
XML
Image XML parsing0.00040.044620.0002
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00080.0834100.0001
String conversion0.00000.001640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs