Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-12-19 09:22:16
- Kosmo
- Member
- Registered: 2005-10-06
- Posts: 22
A way to handle articles as pages
I want a way to handle some of my articles as pages, like Wordpress does.
Is there a plugin to do this? It would help me so much if there was a way to do this.
Offline
Re: A way to handle articles as pages
You can use different sections to handle “static” content.
Offline
#3 2005-12-19 10:39:16
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
#4 2005-12-19 12:30:20
- Kosmo
- Member
- Registered: 2005-10-06
- Posts: 22
Re: A way to handle articles as pages
Works nicely, but when I sticky the article that should be on the section main page, it doesn’t show. So do I need to make it live for it to show?
Offline
Re: A way to handle articles as pages
From <a href=“http://textpattern.net/wiki/index.php?title=Write_Subtab”>TextBook</a>:
<blockquote>A sticky article is also considered live; however, it won’t show up with your other live articles in normal article flow (such as those output with <code><txp:article /></code>), nor will it appear in any article output lists you might have. The sole purpose of making an article sticky is to give it the status (or rather the appearance) of being static on a page.</blockquote>
For a sticky article to show, you need to specify <code>status=“sticky”</code> in your templates.
Last edited by Elenita (2005-12-19 16:30:46)
Offline
#6 2005-12-19 20:53:28
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Offline
#7 2005-12-20 07:20:18
- Kosmo
- Member
- Registered: 2005-10-06
- Posts: 22
Re: A way to handle articles as pages
Thank you Sencer, Elenita and Zem for your answers.
I apologise for asking stupid questions, but the TXP information and manuals are way too scattered to be useful for your average user that doesn’t have time to go through several different sites and articles to gather information.
Oh and one more question. Are stickied articles treated the same when filed in categories? I can’t seem to get my sticky articles to show on my category listing.
Last edited by Kosmo (2005-12-20 07:26:45)
Offline
Re: A way to handle articles as pages
the TXP information and manuals are way too scattered to be useful for your average user that doesn’t have time to go through several different sites and articles to gather information.
You are welcome to help out with documentation. Since you currently have the “view” of a beginner, I am sure your additions would be helpful. Suggestions for the FAQ you can direct to zem or me; If you would like to participate in the wiki please get in touch with Destry who’ll be glad to add an account for you and who has always been very interested in user feedback – the more constructive the more helpful it is.
Offline
#9 2005-12-20 10:13:18
- Kosmo
- Member
- Registered: 2005-10-06
- Posts: 22
Re: A way to handle articles as pages
Well, I’ll see what I can do.
But on to my problem, I noticed that when I have articles stickied in one section, nothing is presented when I go to the section, just an empty page. But when I put the status=“sticky” all the articles in the section are on the first page, which is not my goal. But when I put the article I want to show on the section page as a “live” article, it is posted there. Is this a valid method to do this?
Offline
Re: A way to handle articles as pages
Whether articles go on the front-page or not has nothing to do with them being sticky or not. These are two totally seperate issues. Zem already linked to:
http://textpattern.com/faq/45/which-articles-go-on-the-front-page
Each section has a setting that controls whether or not its articles will be shown on the front page by default. Go to textpattern > presentation > sections, and select On front page? appropriately for each section.
It looks like for you the difference results from the attributes you use on the article-tags in the different templates.
And no, you do not have to use stickies for static pages. If you only ever assign a single article to a section, it doesn’t matter whether it’s sticky or not (but the article-tag has to of course reflect this). The “stickiness” helps as soon as you start assign more articles to that section (either on purpose or by accident), because you can put those in a diffferent place on the page, without any resulting changes to the stickied article.
In case you are confused, here is a simple explanation:
- txp:article will display (depending on the url) a list of articles or a single article. It is “context-sensitive” which means it takes section, category, id etc. information from the url and morphs its output accordingly.
- if you set an article to sticky, it is pulled out of the regular article flow (won’t apear in lists). And it can be displayed either individually (with article_custom [with the id], which always displays exactly what you tell it to; it’s not context-sensitive), or you can use
txp:article status="sticky"
which disregards the regular article flow, and only shows stickied articles. The latter is the preferred way, simply because the resulting page template is more portable across different sections.
Offline
#11 2005-12-20 11:01:05
- Kosmo
- Member
- Registered: 2005-10-06
- Posts: 22
Re: A way to handle articles as pages
But the problem is or rather was, that I have several articles per section. But when I have all the articles in the section stickied, and go to that section, it doesn’t display any articles, just the template.
So I figured out that when I put the article that I want to display on the section page as live it is displayed when I go to the section page (e.g. /page/) and the rest of the pages, or sub pages if you will are displayed in their own pages (e.g. /page/article)
This works fine. The only problem I was facing was that when I wanted to have links by category, the articles that were stickied, didn’t show in the category_list so I have to manually link to each article, but that is easy since the “path” is just the URl-only title.
Offline
Re: A way to handle articles as pages
The only problem I was facing was that when I wanted to have links by category, the articles that were stickied, didn’t show
That is exactly what the stickies were made for: so that they don’t show in lists.
Also you’ve completely lost me, as you seem to be talking about navigation and categories now, whereas you were talking about sections, stickies and the frontpage earlier. But as long as you have achieved the results you want, I guess that’s ok… ;)
Offline