Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
hi there,
don’t know if this one is still active… Anyway…
just can’t understand / make the plugin work
I would like to use your plugin to assign id’s to customize a section list wrapped in li elements.
I followed the example you provide in this thread
created a form named section_prefix with:
txp:spc_section_alias section=“1” title=“aaa” name=“bbb” description=“xxx”
to output something on my default page added
txp:output_form form=“section_prefix”
and…nothing happens…Might be obvious for you…but i’m lost by the lack of basic docs and my newbie status… So if you could give me a push i would appreciate…
Thanks
Last edited by hablablow (2005-03-01 15:27:23)
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
#77 2005-03-09 11:20:01
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
anyone noticed funny behaviour with RC3? I’m on about rev 175 or so
tags aren’t outputting the alias ID or alias title for me — and I’ve checked the obvious user errors (forgetting to call it at the top of the page, etc)
Offline
#78 2005-04-25 05:46:11
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Allow me just to warm up this a little.In any case this seems like a very complex plug in.
I had been experimenting with some more simple plugins in order to achieve what I want.
rdt_dynamenus did not work for me since it lacks in flexibility of adapting the template to the sections (each relying on conditional stuff)
What I am trying to achieve is having the same page template for all sections,but still have the flexibilty to display what ever I want.
I have been trying also with Remillards mdm_sectionlink, but that has two problems.
1)will not allow you to display the section name in the URL
2)appends additional sections that reiside in the admin panel solely as links.
I’ll try now with ako_nav to see what I get,but my question is this:
I s that plugin suitable for having a selection of section being displayed
and does it work with if conditionals in form tags for articles ?
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
hablablow
I think this is one of the most useful plug-ins available. It is a little intensive to get it set up the first time, but after that you have a working “template” to copy/paste from to get you jump started if you re-use it on another site. The key here that gets overlooked is that you have to have the tag txp:output_form form=“alias” just under your boy tag in your page template.
And then where you want the nav on the same page place the *txp:spc_section_alias_iterate form=“section_list” wraptag=“ul” break=“li” * tag.
So you’ll have 2 forms:
section_list=
*txp:spc_section_alias_link *
and
alias=
*txp:spc_section_alias section=“default” title=“Home” name=“Home”
description=“Home”*
*txp:spc_section_alias section=“Portraits” title=“Portraiture” name=“Portraiture”
description=“Portraiture” *
*txp:spc_section_alias section=“Weddings” title=“Weddings and Bridal” name=“Weddings and Bridal”
description=“Weddings and Bridal” * etc.etc.etc.
You can see it working great <a href=“www.studioqphotography.com”>here</a>… for long section names.
Nardo I have rev 297 working with this and 307 and I have’nt seen any problem creep up on those. You might want to update if you’re having problems.
and
marios
I have this working with conditionals on a site without a problem, but I’m not sure I understand exactly how you are using them. I have found that they can be touchy with some plugins. I could’nt get several things working right with glx_if, but mdn_if? worked fine.
Jamie
Offline
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
What I did was save a little txt file with all of my basics for the necessary forms along with my copy of the plugin, so that when i went to re-use it I had a nice head start.
Offline
#81 2005-04-25 16:48:15
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Soulship ,many thanks,in any case link in your post returns a 404 ,that is because the URL is appended mistakenly to the forum URL,
jBut ust to return to the topic.
My Idea is this, with all that super flexibility of tp ,I had the Idea that using one page template will save you a lot of page reloads,which seemed to be important to me for several reasons.
Second, the sections son’t need to by dynamic like in rdt_dynamenous for example,but I want to achieve full flexibility in the way I use articles through sections and conditional form tags.
So one major thing I think is the ability to apply an active class to the list items,depending on the section,and second the ability to cross display articles in all variety of manners thinkable,like lists excerpts with so many word count here,so many there, stuff like that.
If there is something available that can do that I don’t know yet.
(rdt_dynamenous can do active state eg)
But if ther isn’t I might attempt at some point to hack something like that in.
mdp_sectionmenu doesn’t do active.
But I’m sure that ob1_if section would be a pretty convenient combination with one of the the previous mentioned plugins.
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Hmmm that is a mighty tall order. I will have to play around with one of my installs on this. I does sound feasable, not to mention practical. So you want aliasing of section names, within a menu, that will reflect “you are here” style active state. I think I understand what you’re shooting for now at any rate.
Jamie
Offline
#83 2005-04-27 20:27:26
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
I think that what I have dreamed of is not achievable yet.I tried now allso with mdp_sectionmenu ,but I am getting errors from some other plugins.
and I can not get the articles to get displayed correctly.(I am getting double display) styled and unstyled.
Of course it is still to early for me to fiddle around with the code.
But I will continue my research on all available plugins and try different combinations.
So far so good,it doesn’t work as I thought but at least I gain some experience.
ragards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#84 2005-04-28 14:49:42
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
Hi everyone! I’ve not been around for a while on account of applying to grad school and everything. Actually, I got in (I start at Cornell in the fall). That and I sort of figured that Textpattern was dead since it hasn’t been updated in like 7 months (and I might add that RC1 was really broken for me). Quite honestly, I’m shocked that people are still here.
Marios, I’m not sure I understand what you’re asking for, but I think you want to investigate the groups and “this” tag syntax. Look at “Quick Note #2” in my original post on page one and see if that makes sense. You might also review how groups are handled so that you can create you own arbitrary lists of section names. I think, if I understand what you’re saying, that will solve both of your problems.
Last edited by spchampion (2005-04-28 14:52:56)
Offline
#85 2005-04-28 16:41:35
- alexandra
- Member

- From: Cologne, Germany
- Registered: 2004-04-02
- Posts: 1,370
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
> spchampion wrote:
>Actually, I got in (I start at Cornell in the fall)
Congrats Stanton. Hope everything works out fine for you at Cornell!
Offline
#86 2005-04-28 16:59:33
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
> alexandra wrote:
> Congrats Stanton. Hope everything works out fine for you at Cornell!
Thanks! I’m really excited about it!
Offline
#87 2005-04-29 00:20:15
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
spchampion,
thanks,for your reply and congratulations allso for cornell.
Well it seems,I have been silly or brain lazy or something.Since I only have semantic template changes, I do actually not need just to use one page template for all sections.I can use a range of templates(All the heavy stuff ,like png files CSS and so on doesn’t change anywhay,I mean the layout)
Just get’s fetched from browser cache and finito (In my case).
So I have been reverting back to rdt_dynamenus for now, it will allso allow me to hide certain sections on page templates, and I can still combine all that conditional stuff that I like,may be even with your plugin.
I haven’t had a look into yours yet because I couldn’t find any practical examples,how you form the tags.
(You see, I am still a newbee with textpattern ).
So for now it seems my problem is temporary solved.(Well,until something stop’s working, I guess).
I’m on revision 328 right now and it seems to run good.
Had a look at your site allso, reading some interesting stuff there about php and security,
regards, marios
(I will keep your plugin on my test install and try that one later once I’m through the hard stuff)
Last edited by marios (2005-04-29 00:22:04)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
I get for every undefined variable an error message: Error 8 Undefined variable: group in spc_section_alias(), /usr/local/apache2/htdocs/textpattern/lib/txplib_misc.php(351) : eval()’d code line 28
If I change the plugin code, i.e.: <code> if(!$group || ($group == “”)) { $group = “default”; }
</code> into <code>
if(!isset($group) || ($group == “”)) </code> the error disappears.Is it me, txp 1.0rc3 or my php 4.3.11 configuration, that the original code doesn’t work?
Offline
#89 2005-07-11 05:28:17
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
> tranquillo wrote:
> Is it me, txp 1.0rc3 or my php 4.3.11 configuration, that the original code doesn’t work?
Well… Using isset is definitely semantically cleaner (I’m a C person — can you tell? :> ). However, that plugin has worked for almost 10 months now for a lot of people.
I will say this: I’m running a patched version of PHP 4.3.10, so there could be a problem that was introduced with 4.3.11.
Can anyone else add anything?
BTW, somehow, the code you referenced above got eaten. There should be two equal signs in one of those if() clauses.
Offline
#90 2005-08-25 14:30:55
- spchampion
- Archived Plugin Author
- Registered: 2004-06-10
- Posts: 62
Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.
What the heck happened to all my examples? I am so out of the loop these days, so I have no idea what’s going on around here… Grad school does that, I guess. Can someone give me a quick howto on making my examples return to the page? I’m sure it’s some combination of pre and code, but it looks like textile is stripping out the example XHTML tags…
Offline