Forums / Setup & design / Vertical Latest News Scroller

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

eZ debug

Timing: Jan 19 2025 04:43:05
Script start
Timing: Jan 19 2025 04:43:05
Module start 'content'
Timing: Jan 19 2025 04:43:05
Module end 'content'
Timing: Jan 19 2025 04:43:06
Script end

Main resources:

Total runtime1.0550 sec
Peak memory usage4,096.0000 KB
Database Queries198

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 595.9375180.8359
Module start 'content' 0.00890.9009 776.7734475.5547
Module end 'content' 0.90980.1451 1,252.3281337.5078
Script end 1.0550  1,589.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.4059210.0002
Check MTime0.00150.1383210.0001
Mysql Total
Database connection0.00130.121410.0013
Mysqli_queries0.971592.08261980.0049
Looping result0.00190.18001960.0000
Template Total1.021496.820.5107
Template load0.00270.257120.0014
Template processing1.018796.556720.5093
Template load and register function0.00020.017110.0002
states
state_id_array0.00100.099010.0010
state_identifier_array0.00110.106620.0006
Override
Cache load0.00220.2082550.0000
Sytem overhead
Fetch class attribute can translate value0.00130.118620.0006
Fetch class attribute name0.00090.082750.0002
XML
Image XML parsing0.00080.072220.0004
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00300.2867210.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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