Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2014-01-22 06:01:36

kevlove92
Member
Registered: 2014-01-15
Posts: 14

Youtube sticky articles?

Okay I’m making this site, and I want to make this page have the sticky article ( the newest video i post ) at the top where the video on the page is. And at the bottom where the boxes are i want all the older videos to go there when i add new videos. is this possible ? i hope im making sense.

My code is a little chopped and screwed right now. I hope you can help.. thank you.

http://kevinmlove.com/index.php?s=video

Offline

#2 2014-01-22 12:16:06

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,356
GitHub

Re: Youtube sticky articles?

Briefly, untested:

<txp:article_custom limit="1" section="section-name" form="top-video-article-form-name" />

…for the top, and then:

<txp:article_custom offset="1" section="section-name" form="footer-video-article-form-name" />

for the footer. You could use some carousel stuff for the footer, that’d help with scrolling and layout. No need for sticky, either, if you just want the most recent one posted at the top.

Offline

#3 2014-01-22 12:19:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,315

Re: Youtube sticky articles?

Take a look at the attributes limit, offset and sticky of the two article tags.
And, if not yet done, bookmark the TXP Tag Reference.

Edit: gaekwad was faster.

Last edited by uli (2014-01-22 12:20:32)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB