How to show current site last update and current site section ?

Author Message

H-Works Agency

Monday 18 April 2005 10:54:05 am

Hi all

How to show current site last update in a template and current site section ?

Something like : Updated the 06-09-05
And section is "news section"

Thanx all

EZP is Great

Ɓukasz Serwatka

Tuesday 19 April 2005 2:41:18 am

Ad. 1
You can use

{$node.object.modified|l10n(datetime)}

Ad. 2
You can fetch section name for current node. Use $node.object.section_id as param for section_id
http://ez.no/ez_publish/documentation/reference/data_fetching/section/object

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

H-Works Agency

Tuesday 19 April 2005 9:35:50 am

This code is returning current node modified date not the global site one.

The question i need to answer is : "When the last time the content has been modified ?"

EZP is Great

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 19 2025 01:02:14
Script start
Timing: Jan 19 2025 01:02:14
Module start 'layout'
Timing: Jan 19 2025 01:02:14
Module start 'content'
Timing: Jan 19 2025 01:02:15
Module end 'content'
Timing: Jan 19 2025 01:02:15
Script end

Main resources:

Total runtime0.5921 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.4141152.6563
Module start 'layout' 0.00510.0040 742.070339.5078
Module start 'content' 0.00910.5813 781.5781544.2344
Module end 'content' 0.59040.0017 1,325.812512.4063
Script end 0.5921  1,338.2188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.5139160.0002
Check MTime0.00130.2122160.0001
Mysql Total
Database connection0.00070.110910.0007
Mysqli_queries0.538090.8558570.0094
Looping result0.00050.0877550.0000
Template Total0.564495.320.2822
Template load0.00190.314320.0009
Template processing0.562594.999720.2813
Template load and register function0.00010.022310.0001
states
state_id_array0.00100.174610.0010
state_identifier_array0.00080.141720.0004
Override
Cache load0.00160.2633210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.151320.0004
Fetch class attribute name0.00120.200750.0002
XML
Image XML parsing0.00100.176820.0005
class_abstraction
Instantiating content class attribute0.00000.002160.0000
General
dbfile0.00090.1551250.0000
String conversion0.00000.001740.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 17
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs