Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-13 10:05:50

mfos
Member
Registered: 2008-12-11
Posts: 34

News Tickers that work in TXP

Hi,

I would like to incorporate a News Ticker that pulls a certain word count from an article and displays it on a page. Very similar to the one on the BBC news site. Is there a plugin, JS or flash/XML that could do this for me and work well in TXP.

Any advice would be great.

Cheers
mike

Offline

#2 2009-01-13 11:08:58

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,729
Website

Re: News Tickers that work in TXP

Can you show an example of the kind of news ticker you mean?

As far as I remember, Manfre’s plugin mem_filter allows you to obtain the wordcount of an article.

You can then use jquery’s jquery.newsticker or LiScroll newstickers with a normal unordered list output using the normal txp:article_custom.


TXP Builders – finely-crafted code, design and txp

Offline

#3 2009-01-15 18:13:23

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: News Tickers that work in TXP

Hi,
I’m using the jquery plugin and I have it working to an extent but can’t understand how to out the titles of the the 4 most recent news titles. Can you help?

I have this in one of my pages:
<txp:article_custom limit=“1” form=“news_ticker” pgonly=“0” section=“news” sort=“Posted asc” status=“4” />

and then the form “news_ticker” which contains:

<ul id=“news” class=“newsticker”>
<li>This the first news article</li>
<li>This the second news article</li>
<li>This the third news article</li>
<li>This the forth news article</li>
</ul>

(I’ve removed JS code as its not important for this explanation)

What should I be putting between the >li> tags to show the titles of news articles which can then be clicked on?
Apparently I have to declare a <li> for each bit of news to show on the ticker, so I have 4 to show the 4 most recent.

Any help would be great.

Cheers
Mike

Offline

#4 2009-01-15 18:27:22

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: News Tickers that work in TXP

This should do it and doesn’t require a form since you’re only outputting the title.


<ul id="news" class="newsticker">
<txp:article limit="4" section="news" sort="Posted asc" status="4" break="">
<li><txp:title /></li>
</txp:article>
</ul>

My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#5 2009-01-16 10:07:23

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: News Tickers that work in TXP

Thats great. Works a treat.
Cheers

Offline

#6 2009-01-16 13:33:33

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: News Tickers that work in TXP

Hi,
Seem to have a slight problem.
The news title that fades in is randomly displaying on the next line. Sometimes it does it sometimes it doesn’t. A bit annoying.
The first news title to appear is always on the correct line but the ones that fade in after that sometimes appear on the next line.
I have even made efforts to force the containing divs to a certain height but this has no effect.

You can see the issue here:
http://www.lightbulb-moment.com/whitley/test
The problem appears to happen in Safari 3.x. You may need to refresh a few times to get it to drop down a line.
On IE the ‘News’ text drops a pixel??

Is there anything I can do to stop this from happening?

Any help would be cool.

Cheers
Mike

Offline

#7 2009-01-16 16:43:53

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: News Tickers that work in TXP

Looks ok in IE but I don’t have Safari. I really like that ticker.


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

#8 2009-01-16 16:49:48

mfos
Member
Registered: 2008-12-11
Posts: 34

Re: News Tickers that work in TXP

I swapped it out for a better one which is what you can see.

You can check it out here:
http://www.makemineatriple.com/2007/10/bbcnewsticker/

Cheers
m

Offline

Board footer

Powered by FluxBB