Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2004-08-07 03:28:34
- Remillard
- Plugin Author
- From: Lenexa, KS
- Registered: 2004-05-16
- Posts: 169
[plugin] [ORPHAN] mdn_set_section
I’m tempted to do a Twilight Zone parody here, but frankly I’m too tired.
So, in short, here is a plugin that changes the section context for a portion of the page.
Usage:
<code>
<txp:mdn_set_section section=“sectionname”>
Enclosed content here is parsed also so it can contain other tags.
</txp:mdn_set_section>
</code>
At the moment, it’s pretty raw. It doesn’t check against known sections. Additionally, plugins and other tags can get the section name from a variety of places, so there could be some unpredictable behavior. I’ve tested it against my own mdn_if_section conditional and it seems to work. It also sort of worked with the akw_archive plugin (though there was some unpredictable behavior.)
Regards,
Remillard
Offline
Pages: 1