[solved] What is the "Additional Parameters" field for?
[solved] What is the "Additional Parameters" field for?
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?
Last edited by valgibson on Sun Mar 11, 2012 8:28 pm, edited 1 time in total.
Re: What is the "Additional Parameters" field for?
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.
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?
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.
stdClass Object
(
[url] => "http://www.blahblah.com/index.php?page=news&fruit=apple
)
You can use the superglobal $_GET array to retrieve the variables.
Last edited by Dr.CSS on Mon Mar 12, 2012 6:11 pm, edited 1 time in total.
Reason: Please use double quotes on fake links so they aren't clickable...
Reason: Please use double quotes on fake links so they aren't clickable...