Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2004-10-27 08:38:47

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Hie Stanton,

i did get the 0.5 version of your plugin and installed it on rc1 on my local host. i did start with the prefix form. But no luck to get it work. so i went through the whole thread and followed akb tests.

<code><?php global $spc_section_alias_hash; print_r($spc_section_alias_hash); ?></code> doesn´t throw out anything at all.

the plugin is aktive. another plugin i tryed, works fine.

would be great, if you could help.

thx alex

Offline

#38 2004-10-27 17:52:50

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Alexandra,

Double check your page source and make sure the place where you put that test line is really empty. Does it display anything at all? If that test failed, it means that the alias function is not setting the data correctly in your prefix header.

Can you tell me more about your site? What does your prefix header look like?

Offline

#39 2004-10-27 18:58:58

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Hie Stanton,
i get this:

<code>Array ( [default] => Array ( [tags] => Array ( [name] => Site News [title] => Stuff about this site [description] => Articles about changes to the site go here. Read all there is to know about how this place has changed over time. [inactive] => 0 [section] => tags ) ) )</code>

i did take your pre fix form obviously.

ps: i am off for a couple of days, will come back next week

Last edited by alexandra (2004-10-27 20:34:43)

Offline

#40 2004-10-27 20:32:48

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Ok… Can you confirm that you’re using a tag that looks something like this:

<code>
<txp:spc_section_alias_name section=“tags” />
</code>

Last edited by spchampion (2005-08-25 14:43:15)

Offline

#41 2004-10-27 20:43:12

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:

> Ok… Can you confirm that you’re using a tag that looks something like this:

i did use <code><txp:output_form form=“section_prefix” /></code> which did not work.

With this tag
<pre>
<code>
<txp:spc_section_alias_name section=“tags” />
</code>
</pre>

it works.

i´m sorry, if i did bother for nothing. i followed you instructions.

Offline

#42 2004-10-27 21:26:40

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Right! Doing the output_form thing again only reloads the section settings.

Glad it works! Good luck!

Offline

#43 2004-10-27 21:41:26

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Thx Stanton, for your help. i will take further steps on your very helpful plugin next week. perhaps i have to consult you again :)
best regards – alex

Offline

#44 2004-10-29 06:57:27

humanoid
Member
Registered: 2004-06-24
Posts: 17

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

hi,
I like this plugin a lot, and try to use it like this:

<txp:article_custom limit="5" category="leftlinks" section="<txp:spc_section_alias_article_section />" />

the outcome is however not what I would expect, it doesn’t seem to work

Also tried

<txp:article_custom limit="5" category="leftlinks" section="<txp:spc_section_alias_section />" />

without luck.

Using just
<txp:spc_section_alias_section />
works ok in the rest of the page.

Hope someone can help me.

Offline

#45 2004-10-29 18:59:39

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

humanioid,

Are you doing this as part of an iterate call or is this just in a page template? If you’re doing this in a page template, then my plugin isn’t even necessary here. article_custom will use the current section without any extra help.

Offline

#46 2004-10-29 20:22:07

humanoid
Member
Registered: 2004-06-24
Posts: 17

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Hi,

within a page template. However – article_custom took all articles from category “leftlinks”, no matter what section I am in.

Only when I explicitly tell article_custom which section to show I can make the proper selection.

Does that mean something is wrong in my txp install? Someone else also told me that sections are completely segragated and you do not see articles from one section in another one, but extensive testing showed that is not the case.

Hmm, maybe I should not ask it here then.

But the answer is “no” I assume? I cannot use it like this even if I wanted to for some weird reason? ;-)

Last edited by humanoid (2004-10-29 20:46:26)

Offline

#47 2004-10-29 21:12:55

spchampion
Archived Plugin Author
Registered: 2004-06-10
Posts: 62

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

I would post that functionality as a bug. Also, you might try:
<code><txp:section /></code>

Use that in place of my function, and see if that works.

Last edited by spchampion (2005-08-25 14:43:38)

Offline

#48 2004-10-30 07:05:20

humanoid
Member
Registered: 2004-06-24
Posts: 17

Re: [plugin] [ORPHAN] spc_section_alias - Section renaming and management plugin.

Hi,

I tried

<txp:section />

but that also didn’t work because it is meant to be used inside an article form.

What I will do now is to solve it with a lot of pages, one for each section and then do an article_custom call with the required section in it.

I will try to file a bug report also

Best regards, Edwin

Offline

Board footer

Powered by FluxBB