Vertical Latest News Scroller

Author Message

Lydie Soler

Wednesday 27 July 2005 2:30:25 am

Hi again I have a question regarding the contribution.

in the Vertical Latest News Scroller contribution, it sais I have to override the article_listitem.tpl. I am using the Ez3.5 and I can't find it....

As it be renamed to something else?

I would really appreciate you help

thanks a lot

Lydie

Lydie Soler

Wednesday 27 July 2005 3:01:28 am

well I suppose the file I am searching is:
article_listitem design/base/override/templates/listitem/article.tpl
which is n override of /node/view/listitem.tpl

I have another question: can someone give me the exact code I have to put in the 2 files to override because it doesn"t not work at all (I don't have anything...)

What I have done so far:

I create an override for node_list.tpl where I exactly copy what is in the node_list contribution file. Am I right?
If I do that my latest new box is empty..... So I suppose I am doing something wrong

and same question for the listitem file. Do I have to replace all the code with the new one or only some parts? and in this case which part????

THanks a lot for your help
Lydie

Lydie Soler

Wednesday 27 July 2005 4:03:01 am

well I may I found my problem... It may be because the news it try to list not only contains article but also other class (I have a file class for instance)
How can I limit to only articles?

thanks

Lydie Soler

Wednesday 27 July 2005 4:17:46 am

so I have added file and link to the exluding list:

let node_list=cond( $treelist_check|eq( 'yes' ),
fetch( content, tree, hash( parent_node_id, $parent_node,
limit, $limit,
class_filter_type, exclude,
class_filter_array, array( 'folder','file','link'),
sort_by, array( $sort_by, false() ) ) ),
fetch( content, list, hash( parent_node_id, $parent_node,
limit, $limit,
class_filter_type, exclude,
class_filter_array, array( 'folder','file','link'),
sort_by, array( $sort_by, false() ) ) ) )}

but then If I look at the code generated in my html file I have:
['/metarisk2/index.php/site_unite_metarisk/membres/soler_lydie/test','','_blank']

and if I look at the example site there is:
['/index.php/2gt/news','Get all the latest news from Two Garden Court Chambers here...','_parent']

-> there is _parent and not blank and there is something in the second string...
anyone can help please

Lydie Soler

Thursday 28 July 2005 6:43:24 am

I have changed my EZpublish version to 3.6.1.
And the scroller doesn't work.

If I look at the html code I have:

v_content=[
<a href="/metarisk2/index.php/site_unite_metarisk/media_files/realplayer_demo">Realplayer demo</a> , <a href="/metarisk2/index.php/site_unite_metarisk/media_files/asf_demo">ASF demo</a> , <a href="/metarisk2/index.php/site_unite_metarisk/contacts/people/jane_doe">Jane Doe</a> , <a href="/metarisk2/index.php/site_unite_metarisk/media_files/quick_time_movie">Quick time movie</a> , <a href="/metarisk2/index.php/site_unite_metarisk/contacts/people/john_doe">John Doe</a>
];

instead of something like:

['/index.php/2gt/news','Get all the latest news from Two Garden Court Chambers here...','_parent']

Any idea??

Thanks for your help

NB: it used to work on 3.5.1

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 31 2025 06:26:01
Script start
Timing: Jan 31 2025 06:26:01
Module start 'layout'
Timing: Jan 31 2025 06:26:01
Module start 'content'
Timing: Jan 31 2025 06:26:02
Module end 'content'
Timing: Jan 31 2025 06:26:02
Script end

Main resources:

Total runtime1.7191 sec
Peak memory usage4,096.0000 KB
Database Queries61

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 588.1328151.2109
Module start 'layout' 0.00800.0029 739.343836.6484
Module start 'content' 0.01101.7073 775.9922893.7109
Module end 'content' 1.71830.0008 1,669.703111.8516
Script end 1.7191  1,681.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.1978160.0002
Check MTime0.00140.0823160.0001
Mysql Total
Database connection0.00150.089210.0015
Mysqli_queries1.655696.3075610.0271
Looping result0.00060.0371590.0000
Template Total1.662496.720.8312
Template load0.00220.125120.0011
Template processing1.660296.573320.8301
Template load and register function0.00150.090010.0015
states
state_id_array0.00200.115410.0020
state_identifier_array0.00270.159420.0014
Override
Cache load0.00190.1091550.0000
Sytem overhead
Fetch class attribute can translate value0.00060.032110.0006
Fetch class attribute name0.00230.132150.0005
XML
Image XML parsing0.00010.006910.0001
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00290.1668100.0003
String conversion0.00000.000540.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/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: 29
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs