Textpattern Forum

You are not logged in. Register | Login | Help

#41 2006-08-21 16:58:35

plummerm
Plugin Author
Registered: 2006-06-19
Posts: 22

Re: [archived] mtp_subsections

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

#42 2006-08-21 19:25:56

bit
Plugin Author
From: Philippines
Registered: 2005-02-14
Posts: 65
Website

Re: [archived] mtp_subsections

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

#43 2006-08-21 19:44:56

plummerm
Plugin Author
Registered: 2006-06-19
Posts: 22

Re: [archived] mtp_subsections

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

#44 2006-08-22 01:11:07

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,399

Re: [archived] mtp_subsections

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

#45 2006-08-24 09:19:02

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

Re: [archived] mtp_subsections

first of all, thanks for your work. appreciated!
are you working on a clean url scheme to reach the content in the subsections? like /sectionparent/sectionchildren etc?
that would be awesome!

Offline

#46 2006-08-31 09:20:02

Ace of Dubs
Member
Registered: 2006-04-17
Posts: 446

Re: [archived] mtp_subsections

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

#47 2006-09-18 04:54:22

rawtext
Member
From: Massachusetts, USA
Registered: 2006-09-13
Posts: 21

Re: [archived] mtp_subsections

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

#48 2006-10-01 09:23:51

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,399

Re: [archived] mtp_subsections

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

#49 2006-10-11 15:04:26

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: [archived] mtp_subsections

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

#50 2007-02-13 17:27:23

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [archived] mtp_subsections

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.

Offline

Board footer

Powered by FluxBB