Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] mdp_SectionMenu

#31 2004-09-14 18:40:38

ray.williams
New Member
From: Warner Robins, GA
Registered: 2004-08-28
Posts: 5
Website

Re: [archived] mdp_SectionMenu

Ah! Thank you very much! I’m playing with the plugin now that I know how to use it. But I do have one more question: Can I get this plugin to list pages that are not a part of txp? If you look at my site, you’ll see a link called “Pictures”. It’s totally outside of txp, but I’d like it to be a part of the section list.

Offline

#32 2004-09-23 11:51:10

mattwebb
Member
From: Australia (but im in London)
Registered: 2004-06-16
Posts: 17
Website

Re: [archived] mdp_SectionMenu

Hey there !

Does anybody know what i am doing wrong with this ?? I am using the section menu… it works fine if i only apply the “id” option to it, but if i want to change the order, it only displays the “home” option and nothing else, no matter what i have in the order ???

Here is the tag i have put in the template..

txp:mdp_sectionmenu id=“nav” order=“home, contact”

Can anyone see what ive done wrong… i have mdp_lib installed and V0.3 of the plug in.

??

help please !

Matt

Last edited by mattwebb (2004-09-23 14:07:38)


Dont worry… The flash site is being re-developed with txp !

Offline

#33 2004-09-23 14:16:50

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: [archived] mdp_SectionMenu

> mattwebb wrote:

> Hey there !

> Does anybody know what i am doing wrong with this ?? I am using the section menu… it works fine if i only apply the “id” option to it, but if i want to change the order, it only displays the “home” option and nothing else, no matter what i have in the order ???

> Here is the tag i have put in the template..

> txp:mdp_sectionmenu id=“nav” order=“home, contact”

> Can anyone see what ive done wrong… i have mdp_lib installed and V0.3 of the plug in.

> ??

> help please !

> Matt

Try removing the space between the comma and the next section name. I’ll have to fix this sometime later.

Offline

#34 2004-09-23 14:36:04

mattwebb
Member
From: Australia (but im in London)
Registered: 2004-06-16
Posts: 17
Website

Re: [archived] mdp_SectionMenu

Still no go mate… ive tried every combination i can think of… it still shows nothing but the Homepage link… unless i remove “order”. :( boo hoo…

any other idea’s ??????


Dont worry… The flash site is being re-developed with txp !

Offline

#35 2004-09-23 14:41:41

hafnius
Archived Plugin Author
From: DK
Registered: 2004-09-02
Posts: 47

Re: [archived] mdp_SectionMenu

Hey Mattwebb

Have you tried taking out “Home” from the order?
/Hafnius


– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing

Offline

#36 2004-09-23 15:25:45

mattwebb
Member
From: Australia (but im in London)
Registered: 2004-06-16
Posts: 17
Website

Re: [archived] mdp_SectionMenu

Taking “home” out just makes it render nothing at all ! :-O !

any other idea’s ??????


Dont worry… The flash site is being re-developed with txp !

Offline

#37 2004-09-23 23:25:21

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: [archived] mdp_SectionMenu

> mattwebb wrote:
> Taking “home” out just makes it render nothing at all ! :-O !

Maybe try uninstalling the plugin and installing again? I try to recreate your situation but I can’t duplicate it at all.

<txp:mdp_sectionmenu id="nav" order="home,contact" /> does not work? And you are positive you have nothing in your style sheet that would make an element with id equal to ‘nav’ not appear?

Offline

#38 2004-09-24 08:42:24

mattwebb
Member
From: Australia (but im in London)
Registered: 2004-06-16
Posts: 17
Website

Re: [archived] mdp_SectionMenu

Ok. Ive sorted it…. i dont know what it was that was doing it, but i made a test with a fresh install of textpattern, and now its fixed.

wierdness hey !

While i am here.. Does anybody know how to change the default section name of “home” ? For example, what if i want it to say “bob” instead ???

Last edited by mattwebb (2004-09-24 08:42:42)


Dont worry… The flash site is being re-developed with txp !

Offline

#39 2004-09-30 08:28:21

mattwebb
Member
From: Australia (but im in London)
Registered: 2004-06-16
Posts: 17
Website

Re: [archived] mdp_SectionMenu

Hey hey !! Me again ! :)

Ive been playing around out of my curiosity to find out what was going wrong before, i have found that if you have your section names in caps, AND use the “order” option. The section menu breaks and only displays “home”.

Im not much of a PHP whizz… so i was wondering if anyone can help me. I want to do 2 things:

1) Make it so i can have my section names in caps AND use the order function.

2) find out how i can change the default “Home” to “HOME

Any clues ??

Matt


Dont worry… The flash site is being re-developed with txp !

Offline

#40 2004-09-30 14:10:50

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: [archived] mdp_SectionMenu

> mattwebb wrote:

> Hey hey !! Me again ! :)

Ive been playing around out of my curiosity to find out what was going wrong before, i have found that if you have your section names in caps, AND use the “order” option. The section menu breaks and only displays “home”.

Im not much of a PHP whizz… so i was wondering if anyone can help me. I want to do 2 things:

1) Make it so i can have my section names in caps AND use the order function.

2) find out how i can change the default “Home” to “HOME

Any clues ??

Matt

I just had an idea on how I could do that, allow user text transformations in the actual code itself. You could use the CSS property “text-transform” to do that, though. Search google for it to get some more information

Offline

#41 2004-09-30 14:25:25

mattwebb
Member
From: Australia (but im in London)
Registered: 2004-06-16
Posts: 17
Website

Re: [archived] mdp_SectionMenu

…… blasphemy

You are right ! dammit… my thoughts were so damn focused on textpattern itself, i didnt think to look in to an alternative such as that, also that is a css property i never use..

…… and it works.

champion !

CHEERS !


Dont worry… The flash site is being re-developed with txp !

Offline

#42 2005-02-04 16:38:08

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: [archived] mdp_SectionMenu

Does this plugin work when you use messy urls? Doesn’t seem to for me.

Offline

#43 2005-02-07 22:21:24

andjules
Member
From: toronto
Registered: 2004-10-20
Posts: 44

Re: [archived] mdp_SectionMenu

I made a couple of hacks in my install – urlencoding where appropriate to have section names with spaces and yet appropriate hrefs and ids.

1) changed
$tagatts[] = ($sect 'default') ? ' href="'.$pfr.'"' : ' href="'.$pfr.$sect.'"'; to $tagatts[] = ($sect ‘default’) ? ‘ href=”’.$pfr.’”’ : ‘ href=”’.$pfr.urlencode($sect).’”’;
2) changed
$tagatts[] = ‘ id=“menu_’.strtolower($sectionname).’”’;
to
$tagatts[] = ‘ id=“menu_’.strtolower(urlencode($sectionname)).’”’;
3) changed
$content = tag(ucwords($sectionname),‘span’);
to
$content = tag($sectionname,‘span’);
(i didn’t want auto-capitalization!)

thought this might help someone other than me
i also found that i had to change my section-named, extensionless text files (for clean URLs) to use ‘+’ in the name where you’d have a space

and theturninggate… yes, i had trouble with messy urls too. didn’t spend much time on it, though.

Offline

#44 2005-02-08 05:20:12

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

Re: [archived] mdp_SectionMenu

HI…I’ve been looking for a plugin which lets me do exactly things that this plugin does. Feel this should have been in the core TxP itself.
I also want the current section to be highlighted / differentiated in some way. Any ideas how I could this?
Thanks!


only change is constant

Offline

#45 2005-02-08 14:48:19

andjules
Member
From: toronto
Registered: 2004-10-20
Posts: 44

Re: [archived] mdp_SectionMenu

icubyx:
“I also want the current section to be highlighted / differentiated in some way”
this is built in to the plugin. the current section is given class=“active”… so add an .active class to your css and you’ve got your differentiated-current-section.

Offline

  1. Index
  2. » Archives
  3. » [archived] mdp_SectionMenu

Board footer

Powered by FluxBB