Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] mdp_SectionMenu
if you right click and “save target as” onto your desktop then you can use TXP’s admin plugin menu to upload the file
Refresh Dallas and other Refreshing Cities.
Offline
#17 2004-07-09 14:07:30
- DC
- New Member
- Registered: 2004-05-29
- Posts: 7
Re: [archived] mdp_SectionMenu
I must be blind, but I am unable to find any listing for this plug-in’s tags. How would I invoke it in a page template?
Offline
Re: [archived] mdp_SectionMenu
<txp:mdp_sectionmenu noshow=“blog” order=“home,about,projects,photos,archive” />
All the documentation is included in the plugin when you install it. I’ve decided to switch to only having the documentation available that way, because it reduces the number of places to update.
Offline
#19 2004-07-09 23:40:25
- DC
- New Member
- Registered: 2004-05-29
- Posts: 7
Re: [archived] mdp_SectionMenu
That’s where I first looked (and again just now). I’ve got the plug-in routines, but no documentation.
EDIT — I just reinstalled the plug-in and the documentation now appears as it should. whew!
Last edited by DC (2004-07-09 23:46:20)
Offline
#20 2004-07-13 15:50:15
- mapu
- Member

- From: Munich, Germany
- Registered: 2004-03-16
- Posts: 141
Re: [archived] mdp_SectionMenu
Great plugin. It works so far, but with one exception (although I don’t know if this is maybe wanted like that).
I’d like to see the “Home”-Link active, when I’m on the “/”-page of my site. It’s working for all other sections except the “Home“page.
U can take a look here (below the headline).
Edit: In the meantime I changed my menu-structure so that the problem is obsolete now.
Last edited by mapu (2004-07-19 09:56:28)
Offline
#21 2004-07-29 18:17:58
- humanoid
- Member

- Registered: 2004-06-24
- Posts: 17
Re: [archived] mdp_SectionMenu
Hi, I do not get any output from the plugin when I put
<code>
<txp:mdp_sectionmenu noshow=“home”/>
</code>
in my template.
I noted that the Example in the overview of the plugin also doesn’t contain any text. It says: Example and then nothing and two lines later it starts with Produces: and then the list Home, About etc.
Anything someone can think of I’s have to check? (BTW – yes, I uplaoded the mdp lib)
Thanks, Edwin
Offline
Re: [archived] mdp_SectionMenu
Since we are all dreaming up feats here is another I’d like to see (it works great as it is but …. :)
When I am in the category (for instance about) the id of the link should be menu_about_selected or simular meaning i can have the link look different when I am in that category ..
Love the FIR support (which I am using ;).
Cheers
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [archived] mdp_SectionMenu
Hello
Anyone suggest a way of outputting this (custom section menu) as a popup rather than a list?
Thx
Offline
#24 2004-09-05 22:22:24
- hafnius
- Archived Plugin Author

- From: DK
- Registered: 2004-09-02
- Posts: 47
Re: [archived] mdp_SectionMenu
Hi all
Regarding the mdp_sectionmenu. I would like to not have all my menu items wrapped in SPAN. I can see that this can come in handy but i have no use for them – how can i turn them of?
/Klaus b
– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing
Offline
Re: [archived] mdp_SectionMenu
hafnius: You could edit the code, but otherwise I didn’t include any switch.
On a side note, this will be buried under the noise but anyways, I won’t be able to do any updating or very much for about a week because my computer’s HD decided that this was the end. Data and stuff should still be recoverable, but I just can’t actually turn on my computer for fear of losing the ability to get any data off of it.
Offline
Re: [archived] mdp_SectionMenu
hi,
It’ll be usefull if we could tell the plugin to don’t show the current section.
That how I’m doing it:
————————
$noshow = explode(‘,’,$atts[‘noshow’]);
// new code <<<<
if ($atts[‘skipcurrent’] && $_GET[‘s’]) $noshow[] = $_GET[‘s’];
// >>>> end of new code
$sections = get_sections();
————————
however I’m almost sure the way I’m detecting the current section (using the URI) won’t work in many cases :(
I just started using Txp yesterday so I don’t yet know the innerworkings. Any help on this on will be welcome :)
ciao,
ivan
Last edited by DrSlump (2004-09-09 19:42:28)
Offline
Re: [archived] mdp_SectionMenu
DrSlump,
$_GET['s'] will only work in messy mode, not in clean. There is a global variable called $s that you can use or use the code $currentSection = gps('s') instead.
Last edited by obeewan (2004-09-09 21:41:15)
Plugins: ob1_advanced_search 1.032b, ob1_search_score 1.0, ob1_pagination 2.5, ob1_title 4.1, ob1_modified 2.1
“Let your plans be dark and as impenetratable as night, and when you move, fall like a thunderbolt.”
— Sun Tzu
Offline
Re: [archived] mdp_SectionMenu
thanks for the reply obeewan.
I’ve been looking at the source code and I think the solution is the $pretext global. $pretext[‘s’] returns the section even when reading an article with an url like index.php?id=3
ciao,
ivan
Offline
Re: [archived] mdp_SectionMenu
I’m not really sure how to change the code to be able put the section links in the order that I want. I’ve looked at the plugin code and read the bit on my installed plugins page, but I don’t know PHP at all so I’m lost.
Here’s what one of the options are:
<code>noshow=“comma seperated strings”
This is a comma seperated list of sections you do not want to appear in the menu. Example “error,blog” would not display the \“error\” and \“blog\” sections.</code>
And here’s code from the plugin itself:
<code>$noshow = explode(‘,’,$atts[‘noshow’]);</code>
Will someone tell me where and what part of the code actually needs changing? Thanks.
Offline
#30 2004-09-14 13:39:33
- Gabe
- New Member
- Registered: 2004-09-06
- Posts: 5
Re: [archived] mdp_SectionMenu
noshow is for the ones you do not want on the page, and ordering is done with the ‘order’ attribute; so my section menu is <code> <txp:mdp_sectionmenu noshow=“article,author,main,results” order=“home,about,FAQ,database,copyrights” /></code>
which specifies those to eliminate and the correct order – no need to change the PHP code.
Offline