allow sticky and live in the same article flow

Registered by mrdale on 2008-01-16

Right now Sticky and Live have to be handled in separate article tags, which is just asinine. What if you want the first article to be styled with one form and the following articles to be styled with another form. You do want a way to pin an important article to the top of that one flow on occasion.

Just allowing a status="sticky,live" would allow this quite greacefully.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

I have a patch for this

— guiguibonbon

--

ggbb> how does is it get implemented from a user perspective?

I imagined it to work like... <txp:article status=“sticky,live” limit=“1,4” /> would produce a list with one sticky article at the top followed by four live articles.
http://forum.textpattern.com/viewtopic.php?pid=144397#p144397

— mrdale

--

I thought of <txp:article status=“sticky,live” sort="status desc" />

To be honest, I hadn't thought of the idea to limit the # of stickies. In my scenario, stickies would all just be at the top, no matter how many there are. In your scenario, how would it behave on page 2 in the archive ?

Another question is if we should have a stickyform attribute (like with searchform and listform - if these still exist) or a <txp:if_article_status> one. Or both? I personally would be against endlessly adding attributes to tags.

— guiguibonbon

I would assume that there'd be no stickies on the second page under my scenario as it would be the same list.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.