You are not logged in.
Hi, I do not get any output from the plugin when I put
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)
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 ;).
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?
– Nobody puts Baby in the corner !
Johnny Castle, Dirty Dancing
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.
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 :)
Last edited by DrSlump (2004-09-09 19:42:28)
$_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)
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
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.
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.