You are not logged in.
Oh, and about the lft and rgt- those are not really important for users… I copied it from the category/subcategory code. That is just a nice way of storing how the sections/subsections are built so that the tree is displayed faster.
Offline
Well, it seems that I got it right with if(isset($s) && $root == "?") $root = $s; then. :-P
Actually, it should be more like:
<code>
if($root = ‘?’) {
$root = isset($s) ? $s : ‘Default’;
}
</code>
For the adventurous, this snippet is inserted right after extract($pretext); in the mtp_section_tree function. Setting the attribute, root, to ‘?’ will make the current section the root of the tree. It also gives the nice safeguard of only doing that when a current section is actually set. (Or is this even necessary? Is ‘Default’ the current section in TxP when no section is selected?)
Thanks for the great plugin!
Last edited by bit (2006-08-21 19:26:55)
“The neighboring marshmallow factory fared no better, having been unable to absorb the incredible pressure wave.”
Offline
Hi Bit,
Yeah, that’s a nice method if you don’t mind diving into the code. I may incorporate it or something similar in the next release.
Offline
plummerm wrote:
redbot-
it is absolutely possible. I did that the “easy” way on my TXP by replacing the stock textpattern section_list function with the section list function that is already in the plugin. However, this is a hack, so I didn’t include it with the plugin. If you want to know more, I can tell you in a few days when i have better computer access.
Thank you for your answer plummerm. So I suppose this is not doable with the plugin, which is what I was hoping for. Anyway I’m still interested, even if I have to hack some txp code (I always try to avoid it) because i’m still convinced this would be a very useful feature.
When you have the possibility I’ll be happy to learn more, thanks again.
Offline
This is an awesome plugin with a lot of potential. Great job! It works just fine on my TXP install
+1 more request for clean URL scheme
(sorry had to slip that in there) :)
Offline
So this plugin gives you subsection but you can’t reach them like /parent/sub ? only /sub ?
I got it installed and it seems to work, although I don’t see the sub section in the output list I created.
Offline
Hello Matt,
Just two questions:
1) will the plugin be compatible with txp 4.04?
2) Do you plan to release a new version?
I know I’m getting annoying but I’m already using this plugin on a site and I can’t wait to see a new version with new features (section/subsection url etc.). This plugin would definitively change the way I (and many others I think) build TxP sites.
Untill now I used to rely on a section/categoriy scheme for simulating subsections though I never liked it because – in my opinion – categories were not intended for this and furthermore they sometimes allow less experienced user to mess things up (i.e. assigning an article to a section and to a ‘wrong’ category).
…I hope not to be too much insistent with this request.
Regards and thanks again
Offline
Matt – GREAT plugin! I’ve been wanting something like this since I started using textpattern, never bothered to search the forum for it. :) Hope you keep on developing it.
Redbot – I’ve just installed this plugin on a 4.04 release candidate 2. It works like a charm.
rawtext – have you set your endlevel? add endlevel=“2” for to your tag for example.
Offline
Just wondering if development is still going on with this? Add me to the list of those who would love to see the subsections in the URL.
Refresh Dallas and other Refreshing Cities.
Offline