2006-08-21 16:58:35

plummerm
Plugin Author
beta

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

 

2006-08-21 19:25:56

bit
Plugin Author
delta
From: Philippines
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

 

2006-08-21 19:44:56

plummerm
Plugin Author
beta

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

 

2006-08-22 01:11:07

redbot
Plugin Author
upsilon

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

 

2006-08-24 09:19:02

sthmtc
Member
mu
Real name: Sven
From: CGN, GER
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

 

2006-08-31 09:20:02

Ace of Dubs
Member
lambda

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

 

2006-09-18 04:54:22

rawtext
Member
beta
From: Massachusetts, USA

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

 

2006-10-01 09:23:51

redbot
Plugin Author
upsilon

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

 

2006-10-11 15:04:26

jelle
Member
êta

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

 

2007-02-13 17:27:23

tinyfly
Member
lambda
Real name: Jeff Adams
From: Dallas, Texas
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

 

Powered by FluxBB