Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-01-17 20:17:33

Krifitze
New Member
From: Germany
Registered: 2009-01-17
Posts: 9
Website

section after section_list

Hi,

First I call <txp:section /> and it outputs the current section what it should do according to the docu.
But after this I do something like this:

@<ol> <txp:section_list default_title=’<txp:text item=“home” />’ break=“li” exclude=’<txp:section />’> <txp:section link=“1” title=“1” /> </txp:section_list>

<li><txp:section link=“1” title=“1” /></li> </ol>@

With that I want to achieve that the current section is displayed at last.
The strange thing however is that <txp:section /> displays some random section (seems to me) but not the current one.
It seems to me that txp:section is rather some kind of “pointer”, which is manipulated by txp:section_list &hellip;

Or is there any better approach on what I wanna do (displaying the current section as the last item)?

Thanks for your upcoming help ;)
Markus

Last edited by Krifitze (2009-01-17 20:22:16)

Offline

#2 2009-01-18 01:00:30

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: section after section_list

I would guess that what you are seeing is the fact that section_list in 4.0.7 leaves the current section set to that one set by section_list, rather than the actual current section. I believe this has been fixed in the soon to be released 4.0.8 version.

Offline

#3 2009-01-18 17:52:12

Krifitze
New Member
From: Germany
Registered: 2009-01-17
Posts: 9
Website

Re: section after section_list

Yes, I tried the latest release candidate and it is like I want it to work.
Thank you.

Offline

#4 2009-01-18 19:36:16

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: section after section_list

Thanks folks, for posting about this problem.

I used this lovely DL based nav and when it worked fine but a subsequent txp:section command produced weird results, I assumed it was me or perhaps the nav (I now know it’s a 4.0.7 bug).

My only question, given how much I would like to use txp:section_list with the form attribute, would it be impolite to ask how long until 4.0.8 is officially out, or to ask where I go to ask this question, if not here or to ask how ‘safe’ it is generally thought to be to use pre-release (in this case, pre-release 4.0.8)?

Thanks lots in advance for any comments.

Cheers, -Alan


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

#5 2009-01-18 19:42:44

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,447
Website GitHub

Re: section after section_list

alanfluff wrote:

how ‘safe’ it is generally thought to be to use pre-release (in this case, pre-release 4.0.8)?

Since 4.0.8 is very imminent, I’d say that rc2 is safe-tastic. Having section_list back again is worth trying it alone!

I’ve been hammering this release for a couple of days now and it’s holding up extremely well.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2009-01-18 19:54:27

alanfluff
Member
From: Ottawa, Canada
Registered: 2008-09-15
Posts: 222
Website

Re: section after section_list

Thanks Stef!

Once again I read, too late, the answer to a question I asked – one day I’ll learn to read more before asking, sorry.

And thanks lots for your view – most helpful. 4.0.7/8 is a lovely breath of fresh air – SO grateful to all concerned :D


At LAST I’ve cheerfully donated to the core devs at #TXP. I only wish I were able to give more. Thanks to the devs and ALL fellow TXPers. -A

Offline

Board footer

Powered by FluxBB