Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-07-31 01:38:00

hamsteralliance
Member
Registered: 2007-12-13
Posts: 10

Make a sectionless article (nevermind)

Hi. :)

I want to create a page that is either:

1. Not bound to a section, thus not appearing in any section, but reachable by going to it’s link or using the site search. It would also show up in search engine searches.

Or,

2. If the article has to be bound to a section, have it be invisible in that section except for through the aforementioned methods.

EDIT: I’ve decided to just cave in and make hidden sections for these solitary static articles. I would rather not, but in thinking about it more, it seems like that’s the answer I would get. :P

Last edited by hamsteralliance (2008-07-31 02:07:48)

Offline

#2 2008-07-31 13:25:30

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Make a sectionless article (nevermind)

You can also make it a sticky article, and use

<txp:if_individual_article>
<txp:article status="sticky" />
</txp:if_individual_article>

to display it. And use the searchsticky attribute to include it in the search.

Offline

#3 2008-08-02 14:51:35

merz1
Member
From: Hamburg
Registered: 2006-05-04
Posts: 994
Website

Re: Make a sectionless article (nevermind)

hamsteralliance: Yep, you are right with your ‘edit’. Just create a section (or more) which does not show up (in RSS, on homepage, in navigation). Sometimes it is e.g. good to have such a hidden ‘draft’ or ‘pipeline’ section.

Els: ‘Sticky’ is an article attribute which is making an article ‘not live’ in the sense that the article will keep on the top of lists. I (read: TXP logic) would not recommend the attribute ‘sticky’ to make an article invisible or ‘sectionless’.


Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML

Offline

#4 2008-08-02 19:00:06

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: Make a sectionless article (nevermind)

Markus: to be honest I don’t see why not. Sticky articles don’t appear in article lists, and you can display them as individual articles and include them in the search. Why would a hidden section be better?
The only thing that would be a bit out of place when used like this is the name ‘sticky’…

Offline

Board footer

Powered by FluxBB