Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-10-08 15:39:15

neonchrome
New Member
Registered: 2009-10-08
Posts: 2

Headlines In a Txp Site

Hi, I’ve got some questions:

-I’m trying to figure out how to make certain articles’ titles in a “headlines” category appear on the front page of a TXP site w/ the most recent article’s title displaying first? I’ve seen something similar on Apple’s site, where the text fades in and out to each headline.

-Is there a text pattern plugin that already does this?

Cheers!

Offline

#2 2009-10-08 16:58:27

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Headlines In a Txp Site

No plugin. Just a jquery script

try something like

<txp:article_custom category="headlines" form="headlines_form" limit="999" break="li" wraptag="ul" />

and the headlines_form: <a href="<txp:site_url />category/headlines/">Hot News Headlines</a> | <txp:permlink><txp:title /></txp:permlink>

In the <head> of the document place <script type="text/javascript" src="<txp:site_url />textpattern/jquery.js"></script> and adapt this script for the fade effect.

Last edited by colak (2009-10-08 17:12:47)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2009-10-08 18:06:02

neonchrome
New Member
Registered: 2009-10-08
Posts: 2

Re: Headlines In a Txp Site

Thanks colak, I’ll give this a go! I know it takes a chunk of time to post, let alone post useful information, so thank mate!

Cheers!

Offline

#4 2009-10-09 06:19:56

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: Headlines In a Txp Site

np please post back here if you need any additional help.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB