
Theo
Project Manager
/ Moderator

Oct 20, 2006, 3:53 PM
Post #11 of 22
(7010 views)
Shortcut
|
|
Re: [ColinW-O] Two questions before upgrading..
[In reply to]
|
Can't Post
|
|
Colin, Setting up the script itself is pretty independant of Article Manager. It's just a simple matter of publishing that newstickerdata.xml. 1) Create a new articleList template called "newstickerTemplate.xml". It should look something like this:
<newsticker> <parameters>
<registration_code>dpre53erac</registration_code> <movie_width>600</movie_width> <movie_height>22</movie_height> <bgcolor>EEEEEE</bgcolor> <border_color>000099</border_color> <font>Arial</font> <font_size>12</font_size> <font_color>000000</font_color> <font_bold>yes</font_bold> <mouseover_font_color>CC0000</mouseover_font_color> <text_align>center</text_align> <left_margin>0</left_margin> <right_margin>0</right_margin> <top_space>1</top_space> <underline>no</underline> <pause_time>40</pause_time> </parameters> <content> <!-- template insert : $articleList$ --> <!-- templatecell : articleRow --><subitem> <but_text>$article.title:textOnly$</but_text> <but_link>$published.articlePage.url$</but_link> <but_target>_self</but_target> </subitem><!-- /templatecell : articleRow --> </content> </newsticker> Upload this template to your [program dir]/templates/articleLists/ folder. 2) Create a publishing rule to generate your newsticker.xml file. - Go into Admin > Publishing. Click "Create" (at the bottom right) to create a new publishing rule. - Name your new rule "Newsticker", and description "Headline file for newsticker script", Placeholder Set Name of "newsticker". - Select "a list of articles" for type and your new articleLists/newstickerTemplate.xml template from the template pulldown. - For "Published As", you want a Master List of articles, and the filename should be newsticker.xml - Choose an appropriate number of headlines. - Click "save", then click "publish" for your new publishing rule. 3) Configure the newsticker script as normal, and have it look for the newstickerTemplate.xml file in your publish folder. You can then paste your newsticker code (generated by the form in newsticker.html) into the appropriate templates. Does this make sense? My new newstickerTemplate.xml is very simplified from Artman 1, and of course doesn't require any kludgey embedded search queries or publishcron magic. :) Theo Wiersma Project Manager
(This post was edited by Theo on Oct 21, 2006, 11:08 AM)
|