Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-03-08 18:44:01
- xrussox
- Member
- Registered: 2006-03-05
- Posts: 21
still trying to wrap my head around how this works.
i dabbled in MT so the idea of “separate blogs” each having their own sub-sections made sense to me..
im having a realllllly hard time understanding how txp does it business.
ive ready dozens of ppl’s explanations, the semantics wiki, jdueck’s article, ive goodled it 100 times
and now i am more confused than ever.
here is an example of what i might have, and am looking to do..
and i have no idea if i should use catagories, sections, or how to do “sub” sections
• section1: blog
with subsections for: reviews, adventures, playlists, soapbox
• section 2: portfolio
doesnt need subsections, will be limited
• section 3: photos (nice and simple a la textism.com)
subsections for: nature, pets, vacations, random, cellphone pix
sorry if this is a redundant noob faq item, but without specific examples im going bonkers over here..
MANY THANKS in advance for any input…
russo
—
edit: am i just approaching the organization structure of this the wrong way?
i see people use “categories” as ways to pull similar content from multiple sections but on a site like mine it wouldn’t work?
Last edited by xrussox (2006-03-08 18:49:22)
Offline
Re: still trying to wrap my head around how this works.
TXP does not currently support sub-sections (coming soon, evidently).
However you can approximate sub-sections by using categories, and conditionals Is there some specific reason why your site could not use the “categories as sub-sections” approach?
You can use sgb_url_handler for clean urls in the format /section/category
I’ve done this on several sites, and it works well.
Offline
#3 2006-03-08 20:19:31
- xrussox
- Member
- Registered: 2006-03-05
- Posts: 21
Re: still trying to wrap my head around how this works.
hmm sounds like a good workaround, thank you.
at the same time it seems like a bit of a band-aid approach for such a simple idea
i dont care if they are called “subsections” or “categories” per say, just wondering if i am trying to use txp in the wrong way..
is there an easier way to go about what i want to do?
i will check out that plugin in the meantime
thank you VERRRRY much!!!!
at the same time i still have no clue how to go about even the basic organization of this stuff
someone needs to break one of these categories-vs-sections wikis down into plain english with a simple example
Last edited by xrussox (2006-03-08 20:29:19)
Offline
Re: still trying to wrap my head around how this works.
No Problem,
- Set up your sections in the sections tab.
- Blog
- Portfolio
- Photos
- In the organize tab to set up your categories
- reviews
- adventures
- playlists
- soapbox
Then write articles, assign them sections and categories.
The basic <code><txp: article /></code> tag is extremely versatile, and issection and category aware. So if your navigation calls http://yoursite.tld/blog/soapbox (assuming you have section/category based urls enabled), the article tag will display articles of the section “blog” and the category “soapbox”.
If you want to display articles differently for a section/category or a list thereof, you can use if_section or if_category.
Like this:
<code><txp:if_section name=“Blog,Photos”>
<txp:article form=“mySpecialForm”/>
<txp:else />
<txp:article form=“myOtherForm” />
</txp:if_section>
</code>
You can do similar with if_category.
You can also apply a different page for each section, although I find using conditionals with one default page to be the most efficient approach.
Hope that helps
Offline
#5 2006-03-08 22:13:59
- xrussox
- Member
- Registered: 2006-03-05
- Posts: 21
Re: still trying to wrap my head around how this works.
AH-HA, that was a HUGE help…
thank you this is starting to settle in….
So i basically create all the “subsections” i will potentially be using as CATEGORIES, regardless of what sections they may end up underneath?
Thank you so much for your patience and help.
Last edited by xrussox (2006-03-08 22:14:32)
Offline
Re: still trying to wrap my head around how this works.
xrussox wrote:
So i basically create all the “subsections” i will potentially be using as CATEGORIES, regardless of what sections they may end up underneath?
Precisely. The beauty of this approach is that it allows to share an article in multiple sections.
Knock yourself out…
Offline
#7 2006-03-08 22:34:02
- xrussox
- Member
- Registered: 2006-03-05
- Posts: 21
Re: still trying to wrap my head around how this works.
BRILLIANT! Thanks again!
See ya in a week or two for the conditional tags ;)
Offline