Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 2007-12-28 01:19:56
- SebastianS
- Member
- From: Australia
- Registered: 2007-10-05
- Posts: 46
Re: "Static" Home Page displaying, but not other content.
Tim you said :-“That’s what I’m after. How did you achieve that? “
I assume you mean how did I make the popup do what I wanted it to do.
I was using categories in my “popup”, you seem to be using sections. I haven’t tried a popup with sections. Remember I have only just started using Textpattern.
I checked out your site theroadtonowhere, and yes the popup does not work.
So getting back to categories, using the link to Textbook that jstubbs posted, and the code:- <txp:popup label=“Browse” type=“c” wraptag=“p” /> I added ‘section=section_name ‘ to make ‘<txp:popup type=“c” label=“Browse” wraptag=“p” section=“articles” />’ that seemed to do the trick.
Now what you are trying to do is different because you want to use sections not categories, and I don’t know how to do that but I reckon I’d read carefully the Textbook link a few posts back.
And of course it’s so simple when you know how. ‘The road to no where” is a great name for a site, someone should write a song, “oh they have”.
Offline
#14 2007-12-28 08:18:38
- haelen
- Member
- Registered: 2007-11-13
- Posts: 14
Re: "Static" Home Page displaying, but not other content.
Hi Sebastian,
I too am new to TextPattern and am finding it quite a steep learning curve! It’s totally different to any other CMS (or similar) I’ve used.
For my menus, I’m using a plugin called “cbs_navigation_menu” which I’ve found easy to use.
What I really can’t get my head around is assigning one article to be the “static home page”.
Thanks for the comment on the site name. It refers to the fact that most of us appear to be chasing our tails all the time – which I what I feel sometimes about TextPattern :)
Best,
Tim
Offline
Re: "Static" Home Page displaying, but not other content.
Its really easy. Just create a section that should be static, then only assign one article to it, using something like <txp:article limit="1" />
See this FAQ entry for more.
Offline
#16 2007-12-28 09:53:32
- haelen
- Member
- Registered: 2007-11-13
- Posts: 14
Re: "Static" Home Page displaying, but not other content.
Thanks Jonathan.
Yes, it does look really easy!
I’ve followed the step-by-step instructions and no content is shown on my “home” page.
I’m happy to give you admin privileges so that you can check whether I have made a simple (or other) mistake.
Cheers,
Tim
Offline
Re: "Static" Home Page displaying, but not other content.
You can email me via this forum. But – you can specify the page code and the accompanying form and I can help you from here.
BTW – have you checked in the sections tab to see if the section is question is set to “On front page?”. If you are using the default page/form, that should be turned on.
Offline
#18 2007-12-28 11:04:03
- haelen
- Member
- Registered: 2007-11-13
- Posts: 14
Re: "Static" Home Page displaying, but not other content.
Thanks Jonathan:
Offline
Re: "Static" Home Page displaying, but not other content.
You mean this part?
<!-- center -->
<div id="content">
<txp:article limit=1 form="static" status="sticky" />
That outputs 1 sticky article, which are handled differently from normal articles. Sticky articles are used for static articles outside the normal flow. For example:
<---Section page, show the sticky article, then the 5 latest in this section --->
<txp:article limit=1 form="static" status="sticky" />
<txp:article limit=5 form="static" />
Offline
#20 2007-12-28 11:46:40
- haelen
- Member
- Registered: 2007-11-13
- Posts: 14
Re: "Static" Home Page displaying, but not other content.
That’s what I meant.
If the only “Sticky” article I have is the one I want to have as my static “home” page, then isn’t having:
<txp:article limit=1 form="static" status="sticky" />
all that’s required in the “static” page template ?
Offline
Re: "Static" Home Page displaying, but not other content.
Actually you don’t even need to make it a sticky article. Stickies work like in my article above – they stand out from the normal article flow, allowing you to have a static article always show up above other articles. Think of it as useful for pages where you want a consistent message displayed, like on a landing page, followed by a series of articles.
Back to your question – what is the name of your section? And what are your settings for the section? Look under “sections” tab for this.
Offline
#22 2007-12-28 15:58:15
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: "Static" Home Page displaying, but not other content.
You can also use
<txp:article_custom id="123" />
for your frontpage.
Offline
#23 2007-12-28 17:34:44
- haelen
- Member
- Registered: 2007-11-13
- Posts: 14
Re: "Static" Home Page displaying, but not other content.
section name: “about”
title: “About”
uses pages: “static”
uses style: “default”
selected by default: “No”
on front page: “Yes”
syndicate: “No”
include in site search: “Yes”
Offline
Re: "Static" Home Page displaying, but not other content.
I would changes “on front page” to “no”, then (assuming you only have one article assigned to the “about” section) change the article type from sticky to live. With that:
<!-- center -->
<div id="content">
<txp:article limit=1 />
That’s all you need.
Offline