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