Page 1 of 1
[solved] What is the "Additional Parameters" field for?
Posted: Sun Mar 11, 2012 3:25 pm
by valgibson
When adding an "Internal Page Link" under edit: content, the field "Additional Parameters" is visible. What is it for and how can I use it? I have searched the docu, but haven't become any wiser. Anyone else?
Re: What is the "Additional Parameters" field for?
Posted: Sun Mar 11, 2012 6:06 pm
by Wishbone
It's probably something you can use in the menu manager.. Something like $node->additional.
Try this. Fill out the field for your internal link menu item. In your menu template, do: {$nodelist|print_r} and see if your text is somewhere in there, and in which field.
Re: [solved] What is the "Additional Parameters" field for?
Posted: Sun Mar 11, 2012 8:32 pm
by valgibson
Thanks for your quick pointer! So this is what I found out: you can use the "Additional Parameters" field to send variables to your server. The variables are stored in your menu-node, as part of the url-value of your node-array. Like this:
stdClass Object
(
[url] => "
http://www.blahblah.com/index.php?page=news&fruit=apple
)
You can use the superglobal $_GET array to retrieve the variables.