Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#91 2005-08-25 14:46:24
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Well it looks like “pre” stopped working. Great… I’ve changed all of my posts so that all of the examples are wrapped in code /code, but I have no idea if that’s right or wrong here. If something doesn’t look right, let me know.
Offline
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
I know this is probably not possible, but still…
I have a large list of sections, shown with spc_section_alias_iterate. What I need is to NOT show some of the sections in that list.
At first I thought to create a new section_prefix form that includes only the sections I want to list. But I don’t know how to make the _iterate to use this new section_prefix form… Any advice appreciated!
Offline
#93 2006-10-18 13:03:07
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
In the section information, set inactive=“1”. With this set, iterate will simply ignore the section entirely.
Offline
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Thanks, that worked.
But I have another case now. Similar list of sections and some of them have to appear in the navigation, others – not. But all of them have to show Name and Description in the appropriate sections, so I cannot ignore them.
What I did is set group=“1” to the ones I need in the navigation, then iterate only group=“1”. And that worked just fine. Here’s the problem. I have spc_section_alias_article_link with group=1 in the header of the site, to show a link to the section the current article is in. But this link does not show in sections, that are not in the 1 group…
Offline
#95 2006-10-19 14:29:32
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
You can add more than one group in a list with the group= statement. So you can do group=“1,2” or something like that. The plugin will look through every group in the list for the section you want.
Offline
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Yah, that’s what I tried at first, but I couldn’t get it working, so I kinda worked my way around the problem with some if_sections. Of course, it’s never that easy, as now it seems ob1_title does not work with your plugin anymore :) I went and hacked support for it (using the code from 1.4 in 2.x with some rewriting), but I cannot pass group parameter to ob1_title…
Anyway, it’s never easy with TXP and I’m kinda used to this – constant tinkering in the source needed…
Thanks for your help.
Offline
#97 2006-10-23 16:40:49
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
it’s never easy with TXP
That’s one of the reasons I don’t hang around here so much anymore…
Offline
#98 2007-02-03 08:25:11
- azw
- Member
- Registered: 2007-01-29
- Posts: 279
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Hey, SPChampion. What are you using now instead of TextPattern? I’m still up in the air about what to use. I really need something that can handle sections easily for a organization’s news and forum site. Your plug-in could help, but it’s discouraging to think that it may be damaged by future upgrades to Txp.
Last edited by azw (2007-02-03 08:26:06)
Offline
#99 2007-02-17 20:44:55
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Hi azw, I’m still using Textpattern at the moment but I need to make an upgrade to something else pretty quick. I only recently became aware of the security hole in g1.19, but a few of the plugins I use do not work with 4.0.4. Specifically, no new version exists for akw_date_aware and there are no suitable replacements for it in any form.
Seeing as how I’m going to have to redesign my site completely to get away from akw_date_aware, I’m more or less going to have to start over with Textpattern. That means that I’m not really bound to it and can consider other packages.
Sadly, I think my current issue with Textpattern is true for all blogging software: an over reliance on plugins. I’m stuck with g1.19 now and forever because of plugin hell, so that’s it for that. I’m not sure how to avoid the use of plugins, but in all honesty I think there’s something to be said for designing open source software communities in a way that encourages patching instead of plugins.
I liked TXP back in the day and I still consider it the coolest light weight CMS available. I love the section approach, and while I’ve disagreed with some of the decisions made recently about configuration files (I think some of the admin configuration options really do belong in a flat text file and not in the database), I still like the nature of the tool. I just wish the plugin situation was more straightforward, and I fear that the depth of plugin hell with TXP was made much much worse with the creation of admin plugins and by encouraging people to write hot patches for key library files as opposed to just patching the source itself. All of these things make me fear, as a blogging software user, that Textpattern’s future development is not scalable.
Offline
#100 2008-09-01 10:46:39
- danieljacoby
- New Member
- Registered: 2008-08-12
- Posts: 3
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
I get the following error, even though there is a section_prefix form:
Tag error: <txp:output_form form=“section_prefix” /> -> Textpattern Notice: Form not found: “section_prefix” on line 1437
What can I be doing wrong?
Offline