Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
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 …
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
Re: section after section_list
Yes, I tried the latest release candidate and it is like I want it to work.
Thank you.
Offline
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
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
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
Pages: 1