Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2005-05-03 08:41:14

t0ma
Member
From: On the edge of arctic circle
Registered: 2005-04-28
Posts: 24
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

I have problem with order attribute with this plugin. It seems that with revision 329 I can´t get any sections showing with order attribute.
My code looks like:

txp:rdt_section_menu wraptag=“ul” break=“li” order=“Home,Activities,Sectors,Organization,Archives,Links,Contact” home=”“

I also found out that rdt_dynamenus can´t read my site URL right from admin preferences. I am currently updating my work website and have installed textpattern at http://mysite.net/txp . All the links from rdt_section_menu are pointing to http://mysite.net/section when it should be http://mysite.net/txp/section . I am using clean URL mode. I think this is also the reason why I can´t get rdt_article_menu to show articles from my active section as it can´t recognize active section (because of the wrong URL).

Any help?

Last edited by t0ma (2005-05-03 09:13:09)


“The role of art is to make a world which can be inhabited.”

Offline

#38 2005-05-17 20:50:22

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,726
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

Hi rdtietjen,

Now that we have section ‘name’ and section ‘title’ most of my above hacks are unnecessary. Any chance of you updating rdt_section_menu to use section title for display and section name for the url and the id? mary’s handy little upm_section_title plug-in shows how to retrieve the new field. That would be just excellent :-)


TXP Builders – finely-crafted code, design and txp

Offline

#39 2005-05-18 02:14:48

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

I would second that, jakob. :)

EDIT: See below: Yaeh!

Last edited by soulship (2005-05-18 02:51:39)

Offline

#40 2005-05-18 02:39:35

rdtietjen
Archived Plugin Author
Registered: 2005-03-04
Posts: 31
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

> jakob wrote:

> Now that we have section ‘name’ and section ‘title’ most of my above hacks are unnecessary. Any chance of you updating rdt_section_menu to use section title for display and section name for the url and the id? mary’s handy little upm_section_title plug-in shows how to retrieve the new field. That would be just excellent :-)

I’ve incorporated the title into my plugin and will soon post it to my site and announce it here. I want to make sure that the plugin remains backwards compatible first.


TV? Buglight for humans.

Offline

#41 2005-05-18 17:06:51

rdtietjen
Archived Plugin Author
Registered: 2005-03-04
Posts: 31
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

> t0ma wrote:

> I have problem with order attribute with this plugin. It seems that with revision 329 I can´t get any sections showing with order attribute.
My code looks like:

> txp:rdt_section_menu wraptag=“ul” break=“li” order=“Home,Activities,Sectors,Organization,Archives,Links,Contact” home=”“

Huh… is there a problem because of upper case letters?

> I also found out that rdt_dynamenus can´t read my site URL right from admin preferences. I am currently updating my work website and have installed textpattern at http://mysite.net/txp . All the links from rdt_section_menu are pointing to http://mysite.net/section when it should be http://mysite.net/txp/section . I am using clean URL mode. I think this is also the reason why I can´t get rdt_article_menu to show articles from my active section as it can´t recognize active section (because of the wrong URL).

maybe try Jakob’s idea of sticking $pfr=hu; at the top of the plugin code
But, rdt_article_menu doesn’t use $pfr, it uses TXP functions permlinurl or formatPermLink

Is your admin -> preferences -> site url correctly set?


TV? Buglight for humans.

Offline

#42 2005-05-18 17:11:22

rdtietjen
Archived Plugin Author
Registered: 2005-03-04
Posts: 31
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

> TheodoreG wrote:

> It seems to create clean URLs even when I’m in messy mode.

> Also the “Home” link points to /my_webserver_root/home? Shouldn’t that be just /my_webserver_root/?

It doesn’t do this as you wish but I think it should let you present the default section as Home. I think I’ll add a default=‘Home’ attribute and deprecate the home attribute. but later.


TV? Buglight for humans.

Offline

#43 2005-05-23 20:36:12

rdtietjen
Archived Plugin Author
Registered: 2005-03-04
Posts: 31
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

Announcement: rdt_dynamenus plugin v0.6 now uses section titles and the default section as home. Learn more at Publishing Pipelines or read the documentation.

I’ve updated the rdt_dynamenus plugin to take advantage of the new title field in the txp_sections table. the section title now displays in the rdt_section_menu while the section name field continues to serve for the URL of the link. No more tricks with hyphens to emulate spaces; sort order is decoupled from display text. Judiciciously named sections may even obviate the use of the order attribute and thus preserve better dynamism.

Also, I’ve added a new default attribute named after the so-called default section that supplies a display title and simultaneously places it at the beginning of the section menu as the home page. The old home attribute is deprecated now in favor of default.

Backward compatibility is maintained I believe at least back to rc2, maybe even rc1.

Thanks to Jakob R for testing and suggestions.

Last edited by rdtietjen (2005-05-24 11:49:04)


TV? Buglight for humans.

Offline

#44 2005-05-23 20:43:34

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

Great job! I found no bugs and this will really help with those elusive cat titles. Thanks for all the extra work to update this. It is very handy indeed.

Offline

#45 2005-05-24 10:08:01

andreas
Member
Registered: 2004-02-28
Posts: 453
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

rdtietjen, the first link is broken, you forgot the http:// part.

Thanks for this update!

Offline

#46 2005-05-24 10:49:13

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

rdtitjen,thanks a lot for this plugin update,much appreciated,I’ll grab now to see how goes:))

regards,marios

Last edited by marios (2005-05-24 10:49:38)


⌃ ⇧ < ⌃ ⇧ >

Offline

#47 2005-05-25 08:13:15

t0ma
Member
From: On the edge of arctic circle
Registered: 2005-04-28
Posts: 24
Website

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

Thank you Rdtietjen.

Now everything seems to be working.

Best regards, Topi


“The role of art is to make a world which can be inhabited.”

Offline

#48 2005-05-28 03:50:38

icubyx
Member
From: India
Registered: 2004-12-16
Posts: 21

Re: [plugin] [ORPHAN] rdt_dynamenus - automatic section and article menus

I have installed my txp RC3 in a subdirectory and can’t get the sections to display. The paths always go to:

//localhost/section
and not
//localhost/subdir/section

I tried placing the $pfr=hu at the begining, but it doesn’t help.

on manually entering the correct url, the section shows correctly! :(


only change is constant

Offline

Board footer

Powered by FluxBB