Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-05-02 09:20:54

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

Help me to get back on track

Greetings everybody,

I have turned away from textpattern for about two years and now I’m trying to get into the whole thing again.

Thanks to it design, the basic things came back very easily, but now I’m stuck with the whole <txp:XXX />. There is a nasty voice in my had teasing me all the time “you know you did it before, its easy”, yet i just can’t get it anymore.

Gosh I even don’t understand what I wrote two years ago in this forum. ;)

What I need right now is a mighty kick into the right direction and then I’m sure everything will come back right away!

OK, here is the problem I’m working on:

I have structured my project like this:

3 Sections
  • Chapter 1
  • Chapter 2
  • Chapter 3
Category 1
  • Intro (Every Section or Category2 has ONE intro article)
  • Article (Every Section or Category2 may have many of them)
Category 2 Start
  • Chapter 1
    • Chapter 1.1
    • Chapter 1.2
  • Chapter 2
    • Chapter 2.1
    • Chapter 2.2
      • Chapter 2.2.1
        • Chapter 2.2.1.1
    • Chapter 2.3
  • Chapter 3
    • Chapter 3.1

All articles in a specific Chapter are related to a section with the same number.

Examples:

The article “Intro 2.2” Title=“Intro 2.2” Cat1=“Intro” Cat2=“Chapter 2.2” is related to section 2).

Intro 1 (cat1=“Intro” cat=“Chapter 1”) or Intro 2 (cat1=“intro” cat2=“Chapter 2”), are Intro articles for Section 1, Section 2, etc…

Start (cat1=“Intro” cat2=“Start”) is intro for the default homepage

Question: Do you think this s a good way to organise things, or would you refrain from doing it this way? If so why?

Now I would like to create a “simple” nested Navigation list.

<ul> <li>Link to Section 1 <ul> <li>Link to Intro Article Chapter 1.1 in Section 1</li> <li>Link to Intro Article Chapter 1.2 in Section 1 </li> </ul> </li> <li>Link to Section 2 <ul> <li>Link to Intro Article Chapter 2.1 in Section 2 </li> <li>Link to Intro Article Chapter 2.2 in Section 2 </li> <li>Link to Intro Article Chapter 2.3 in Section 2 </li> </ul> </li> <li>Link to Section 3 <ul> <li>Link to Intro Article Chapter 3.1 in Section 3 </li> </ul> </ul>

Note: I don’t want to have Chapter 2.2.1 or Chapter 2.2.1.1 in this list. I’m only interested in the first two levels of the strucure.

I would greatly appreciate, if somebody would lend me a hand here (or a foot…).

Greetings,

pepebe

Last edited by pepebe (2008-05-02 09:36:16)

Offline

#2 2008-05-08 18:36:26

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

Re: Help me to get back on track

Sorry for bothering folk here. Im beginning to get the hang on it again and it feels realy good.

Txp gives me so much control over markup and semantics. It’s a dream really!

One thing that was really helpful, was to buy a BOOK! I recommend “Textpattern Solution” to all newbies and I think, that even among advanced users there will be more than a tiny bit of new insights into the topic.

Greetings,

pepebe

Offline

#3 2008-05-08 19:05:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: Help me to get back on track

If this is really something like a book, and you don’t have to use sections for totally different functions and layouts, I’d recommend using only one section. You plan to work a lot with categories, stw_category_tree is an ideal tool for creating lists of nested categories. It’s got a maxlevel attribute. Quote: maxlevel. The deepest level you’d like displayed.
There is even an improved version by Björn Schwenzer, that lets you sort articles without the hassles of renaming category titles. If you can’t find one around here, I can send you a copy.

Last edited by uli (2008-05-08 19:09:37)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB