Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2009-05-19 20:37:40
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Live and Sticky article in article list
Hello,
i tried to solve this problem on my own, but now i need your help :)
I got for example 2 live articles and 3 stickies.
The 2 live show up in my list <txp:if_article_list>
but the 3 stickies wont show up in the list, it just show up in <txp:article form="sticky" limit="3" status="5" />
Is there a way, to show up in the article list both status?
Thanks so much in advance
Offline
Re: Live and Sticky article in article list
take a trip to smd_query until a charitable dev decides to allow the “status” attribute for the article tag to handle multiple items, ie status="live,sticky"
.
Offline
#3 2009-05-19 20:56:13
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Live and Sticky article in article list
So there is no way right now?
No hack?
Offline
#4 2009-05-19 20:58:04
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Live and Sticky article in article list
If you don’t mind that the sticky articles will be displayed before the live ones (or vice versa), you can use two article tags:
<txp:article form="sticky" limit="3" status="sticky" />
<txp:article form="sticky" limit="3" status="live" />
Offline
#5 2009-05-19 21:03:44
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Live and Sticky article in article list
hmm its not possible to show them together and not seperated in list?
And another question is:
I got for example “Parentcat1” and inside of it “Childcat1” and “Childcat2”.
If i click on a sticky of “Childcat1” then i dont see anymore the sticky of “Childcat2”.
So my question is, is it possible to show all stickys of “Parentcat1” even if i click on “Childcat1”?
Hard to explain :D Sorry
Offline
#6 2009-05-19 21:12:31
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Live and Sticky article in article list
lous wrote:
hmm its not possible to show them together and not seperated in list?
Not without smd_query as mrdale suggested.
If i click on a sticky of “Childcat1” then i dont see anymore the sticky of “Childcat2”.
Do you mean that you want to show the sticky article in ‘Childcat2’ on the individual article page of the sticky article in ‘Childcat1’?
So my question is, is it possible to show all stickys of “Parentcat1” even if i click on “Childcat1”?
I’m not sure I understand what you want to achieve. Do you want this on a category page or on an individual article page? Can you post the code you are using now?
Offline
Re: Live and Sticky article in article list
a charitable dev decides to allow the “status” attribute for the article tag to handle multiple items, ie
status="live,sticky"
.
My favourite chorus – I’ll even grab some pom-poms and dance around for that!
TXP Builders – finely-crafted code, design and txp
Offline
#8 2009-05-19 21:19:18
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Live and Sticky article in article list
jakob wrote:
I’ll even grab some pom-poms and dance around for that!
I’d love to see that, if I could code I’d code it for you :)
Offline
#9 2009-05-19 21:20:47
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Live and Sticky article in article list
Ya i just want, that i can see also on top the sticky of childcat1 if i click on childcat2, both of parentcat1 :)
Offline
#10 2009-05-19 21:27:20
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Live and Sticky article in article list
Sorry, I still don’t get it. Do you mean something like this?
Offline
#11 2009-05-19 21:32:46
- lous
- Member
- From: Germany
- Registered: 2009-01-04
- Posts: 57
Re: Live and Sticky article in article list
No :) I already got a category list on the left side of my page.
Hmmmmmm i how i could explain it.
Again an example:
“Childcat1” got Article1 and Article2 | “Childcat2” got Article3, Article4 and Article 5
Article2 is a sticky article. If i click now on Childcat2 then i cant see anymore Article2 on top, where normally all stickys should be. But when i click on “Childcat1” then i can see again Article2 on the top of my site.
Offline
Re: Live and Sticky article in article list
pompoms at the ready, wet?
Offline