Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2006-04-14 03:48:38
- Galaga
- New Member
- Registered: 2006-04-14
- Posts: 7
Archive To Accomplish This?
Hello All
New to Textpattern and having a major headache already dum dum noob :D
With exception of my news section, I will be using Textpattern for a “static” site. My site is for a band and I have set up a section for “gigs” and have set up categories for the years1984-2006 (each year being a category). What I want seems like it should be very simple to implement but for the life of me I can’t figure it out! I want some “static” content on the page with navigation to the categories on the right. I think I am off in the right direction by using the rdi plugin to list each category (1984-2005) in the sidebar. And this is where I get lost. When I go to 1984 for example, all of the articles posted under that category are there as they should be. But how do I set it up so that when you click on a category you see a list of all articles in that section category by title only rather then the full post? Should I be following the directions for an “archive” page?? I’m so confused! I’ve read thru the forum and the FAQ but obviously I am missing something. I thought the rss-suparchive was the answer, but I’m not sure where to put it since that would only apply to the “category” – arghh!!! All of my sections will follow the same layout – with info about the section as the main content of the page with navigation to the categories in the sidebar. If someone could point me in the right direction it would be much appreciated.
Thanks!
Last edited by Galaga (2006-04-14 03:50:22)
Offline
Re: Archive To Accomplish This?
The secret is forms. You’ll need to create an article form called, say “name.” then in this form just put <txp:permlink><txp:title /></txp:permlink>
When you’re creating your list, include form="name"
inside the tag that’s creating the list and you’re set to go.
Yes, I have tried turning it off and on.
Offline
#3 2006-04-14 05:04:27
- Galaga
- New Member
- Registered: 2006-04-14
- Posts: 7
Re: Archive To Accomplish This?
alesh wrote:
The secret is forms. You’ll need to create an article form called, say “name.” then in this form just put
<txp:permlink><txp:title /></txp:permlink>
When you’re creating your list, includeform="name"
inside the tag that’s creating the list and you’re set to go.
Thank you alesh – that’s exactly what I wanted and it works – YAY!!
Based on the Threshold State info for managing static pages I thought that was the direction I needed to go in but I wasn’t sure. Textpattern is beginning to make sense and I think that once I get everything set up my life will be much easier :)
Thanks again – now can stay up all night posting my articles :)
Offline
#4 2006-04-14 23:49:24
- Galaga
- New Member
- Registered: 2006-04-14
- Posts: 7
Re: Archive To Accomplish This?
Ahh, so close . . . I have a “new” related problem :)
I was using the cbs_category_list plugin in the sidebar and it worked the way I wanted (goes to the category page showing only the article titles). Since I have so many categories it looked a bit funky so I tried using the txp popup type=“c” or just the default “browse”. However, when I use either of those the category page show the full posts. I’m assuming because it’s not calling from the section page?? Any ideas how to correct this? Do I need to wrap it some sort of tag?
Thanks
edit: actually, when i use browse the page is blank – no articles at all :(
back with another edit/question:
currently the section page is listing article titles too – how can i make that “static”?
hmm, why did i think learning this stuff would be easy? tonight i feel like scrapping it all and making a zillion SECTIONS :)
Last edited by Galaga (2006-04-15 06:06:29)
Offline
Re: Archive To Accomplish This?
Yeah . . . TXP takes a few weeks of struggle before you get the model down. It sounds like you’re using the words “section” and “category” interchangeably; they’re very different, and using them incorrectly will cause you headaches down the road. Read this about sections and categories.
Otherwise, I’m not sure what exactly you’re trying to do, but I’m not sure you need the plugins just yet. Have you tried <txp:category_list />
? What, exactly, do you want to achieve?
Yes, I have tried turning it off and on.
Offline
#6 2006-04-16 04:13:17
- Galaga
- New Member
- Registered: 2006-04-14
- Posts: 7
Re: Archive To Accomplish This?
alesh wrote:
Yeah . . . TXP takes a few weeks of struggle before you get the model down. It sounds like you’re using the words “section” and “category” interchangeably; they’re very different, and using them incorrectly will cause you headaches down the road. Read this about sections and categories.
Otherwise, I’m not sure what exactly you’re trying to do, but I’m not sure you need the plugins just yet. Have you tried <txp:category_list />
? What, exactly, do you want to achieve?
Hi alesh – thanks for the reply. I’m pretty clear on sections vs. category and understand the difference but getting a good grasp on how textpattern handles everything is taking a bit longer than I expected. I’m so used to being able to make a page for whatever I want using html. I stated that it would be easier to set all of my pages up as sections because that way each section has it’s own page template – just seems to be easier – but I would end up with way too many due to the nature of my site. Of course I could hand code all of my links but that seems to make using textpattern kind of irrelevant . . . or maybe not.
What I want should be easy, I just can’t seem to get there :)
Ordinarily I would have a page, lets say it’s called concerts.html. On that page I have some “static” content about ticket sales etc. and in the sidebar would be my sub navigation which is the concert year (my band site keeps tack of previous concert dates and setlists). If you click on 1984 in the sidebar you would see a list of all concerts in the year 1984 with each tour date linking to separate page that lists the setlist for that concert.
In textpattern I have set up a section called gigs and all of the years are set up as categories. This seems to work fine and I have everything the way I want except that I can’t figure out how to have the section page “static” and category pages remain the way they are – as a list of the articles. (I used your previous response and got that all working)
So, here is what I need
Gigs – section page with some “static “ content
blah blah blah blah
Sidebar (this is a list of my categories 1984, 1985, 1986 etc etc ) <——- when you click on any of these links I want you to see a list of the articles without the actual article post – which I have achieved.
My problem now is figuring out how to “style” it so that the section shows just one article which I could write my “about” stuff in. Currently, what I’m getting is a list of all of my posts from every category on the section page and that’s not what I want. Maybe I need to use a sticky?? The sticky could be my “content” for that section page.
In my section page template I am using this:
txp:article limit=300 form=“static_article” listform=“static_list” sortdir=“asc”/
The forms are set to show just the article titles/body
(Sorry – I haven’t figured out how to post the tags on the forum yet either!!!)
Am I making any sense?? And if so, it should be simple right? So why can’t I figure it out!!! I just totally missing something here. This would be so much easier if I could have page template for categories :)
I’ll keep reading the forum and the FAQ. I’m sure I will get there – one of these days :)
Thanks for the reply.
Offline
#7 2006-04-16 10:46:21
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Archive To Accomplish This?
What about this? Give your ‘about’ article status ‘sticky’.
<code>
<txp:if_category name=”“>
<txp:article limit=300 form=“static_article” listform=“static_list” sortdir=“asc” />
<txp:else / >
<txp:article limit=1 form=“static_article” status=“sticky” />
</txp:if_category>
</code>
(How do I post tags and code on the forum?)
Last edited by els (2006-04-16 10:47:03)
Offline
#8 2006-04-16 19:45:37
- Galaga
- New Member
- Registered: 2006-04-14
- Posts: 7
Re: Archive To Accomplish This?
Els wrote:
What about this? Give your ‘about’ article status ‘sticky’.
<code>
<txp:if_category name=”“>
<txp:article limit=300 form=“static_article” listform=“static_list” sortdir=“asc” />
<txp:else / >
<txp:article limit=1 form=“static_article” status=“sticky” />
</txp:if_category>
</code>
(How do I post tags and code on the forum?)
Hi Els – thank you for the reply. When I use your suggestion – the sticky artlice is not appearing on the section page. When I click on the category, I have my list but when you click to go to the article – it’s not there. Also, when I go to the cateogry page I am getting the following error meesage:
<code>
tag_error <txp:else / >
<txp:article limit=1 form=“static_article” status=“sticky” /> -> Textpattern Warning: unknown_tag
</code>
I am sooo frustrated!!
Offline
#9 2006-04-17 11:30:08
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Archive To Accomplish This?
Okay, I’m sorry, the <txp:else / >
in my example has a space that shouldn’t be there… It should of course be <txp:else />
. Does that make any difference?
Offline
#10 2006-04-18 04:39:27
- Galaga
- New Member
- Registered: 2006-04-14
- Posts: 7
Re: Archive To Accomplish This?
Els wrote:
Okay, I’m sorry, the
<txp:else / >
in my example has a space that shouldn’t be there… It should of course be<txp:else />
. Does that make any difference?
Hi Els –
Sorry for being such a pain!!
OK I fixed the space and the sticky is now working. BUT, now the articles aren’t showing up. I tought they were but my connection is slow tonight and when I went back to check again and refreshed – they are not showing so I am editing my 3rd post to you tonight :D
Do I need to add the individual article tag somewhere in there??
If I can just get this to work I will be set as all of my pages will use the same format.
Thanks for your help!
Last edited by Galaga (2006-04-18 05:00:41)
Offline
#11 2006-04-18 06:40:49
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Archive To Accomplish This?
Galaga wrote:
Do I need to add the individual article tag somewhere in there??
I must have been sleeping… :(
Add
<code>
<txp:if_individual_article>
<txp:article form=“whatever” />
</txp:if_individual_article>
</code>
(Normally the part after <txp:else />
would take care of the individual article, but not of course when you’re calling a sticky article there…)
Offline
#12 2006-04-18 12:49:04
- Galaga
- New Member
- Registered: 2006-04-14
- Posts: 7
Re: Archive To Accomplish This?
PERFECT – thanks!
Last edited by Galaga (2006-04-18 12:49:50)
Offline
Pages: 1