Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2007-06-30 00:52:06
- hhriebe
- New Member
- From: West Vancouver, BC, Canada
- Registered: 2007-06-20
- Posts: 8
Front page should show sticky, not live articles
Excuse me if this is in the FAQ or the forum, but I have searched and not found anything useful.
I want my site to have a landing page as the default page (i.e. for “www.site.com”), which is Txp’s front page. So I have a sticky article in it’s own section, set that to appear on the front page and wow Txp goodness makes it happen! Except that my journal/blog/live entries also appear, which I don’t want. Searching around I did some several possibilities:
- Take the journal entries off the front page (Front Page = No for their section). Great! Except now nothing shows up when I try listing the articles in a category. Viewing the debug output, the SQL query excludes all the “front page = no” sections from the category search. Bummer.
- As suggested in the FAQ, suppress the live articles with
if_article_list
. Beautiful! But now search results won’t show up either, since Front Page, Search, Categories are all viewed through the default section – so suppressing the list output isn’t a good idea.
So I’ve been going around in circles for quite some time and I’ve come to the conclusion that I can’t completely remove the live articles from the front page, without losing other functionality. Actually I did plan to have excerpts on the front page, but in a sidebar. But now I’m concerned that when I list the articles in a category, they’ll end up as excerpts in the sidebar too since their both just lists of live articles using the same section and therefore the same page template.
Have I missed a magical combination somewhere? How can I take control of my site’s default page?
Henning Riebe
Embracing Emptiness
HenningVision
Offline
#2 2007-06-30 02:21:53
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Front page should show sticky, not live articles
- FAQ: ‘sticky’
- Textbook: article
- Textbook: if_search
- Textbook: if_category
Offline
#3 2007-06-30 03:06:44
- hhriebe
- New Member
- From: West Vancouver, BC, Canada
- Registered: 2007-06-20
- Posts: 8
Re: Front page should show sticky, not live articles
I was about to say that I had already read all that, when I thought, “okay, I must have missed something in if_category
” – example 2 in the Textbook article does the trick! Now I can create a different look for the front page articles and “list all posts for category x” even though they’re both going through the default page. I already used if_search
to do the same thing, but missed that if_category
without a name would differentiate between category and non-category pages.
Many thanks!
Henning Riebe
Embracing Emptiness
HenningVision
Offline