Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-01-26 18:28:53
- marflow
- New Member
- From: Munich, Germany
- Registered: 2006-01-26
- Posts: 3
Problem with sticky articles
Hi everybody,
I guess I have a beginners question concerning “sticky articles”:
My site has different sections, and I have a sticky article for every section that should remain in a left column no matter what is displayed in my main column. This works fine as long as all categories in the section are shown, and it´s fine if only a certain category in the section is chosen. But as soon as I click on the permlink of an article, this article is shown twice: it´s in the main content area and it is replacing the sticky article as well.
I have integrated the sticky articles like this: txp:article form=“sticky” id=“1” limit=“1”. (The form “sticky” is just a txp:body).
Thanks a lot for helping me with this!
Offline
#2 2006-01-26 20:43:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Problem with sticky articles
Does it help if you replace <txp:article />
with <txp:article_custom />
? Keep the attributes the same.
Offline
#3 2006-01-26 20:53:07
- marflow
- New Member
- From: Munich, Germany
- Registered: 2006-01-26
- Posts: 3
Re: Problem with sticky articles
Hello Doggiez,
great – this works perfect! (Although I can´t understand it completely since txp:article has the status attribute as well?)
Never mind – thank you very much!
Offline
#4 2006-01-26 21:19:40
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Problem with sticky articles
marflow wrote:
(Although I can´t understand it completely since txp:article has the status attribute as well?)
…and it has the id as well. I can’t really explain why it doesn’t work, has something to do with <txp:article />
being context sensitive, so on an individual article page it can behave differently from what you expect sometimes ;) If the one tag doesn’t work, I just try the other.
Offline
#5 2006-01-26 21:34:42
- marflow
- New Member
- From: Munich, Germany
- Registered: 2006-01-26
- Posts: 3
Re: Problem with sticky articles
… i should try to think more flexible then …;-) Thanks again!
Offline
Pages: 1