Hi there,
I wondering, how to add a query "?blal=bskals! to a ctools modal button?
If I use this I get problems with special characters..
...
$path = 'ctools_modal01/node/';
$path .= $row->nid;
$path .= ('?name=' .$name);
ctools_modal_text_button(t('button'), $path, t(button') );Any hints
Comments
Comment #1
yurtboy commentedany luck on this?
Comment #2
jordanmagnuson commentedI'm wondering about this as well (latest D7 dev). Specifically, I want to be able to set the query to drupal_get_destination() , to redirect users after filling out the form, if they do not have js enabled.
Otherwise, as far as I can tell, there's no way to redirect non-js users back to their original location after filling out a modal form...
Comment #3
nagiek commentedChiming in to say I don't know either, lol.
I was also looking to use drupal_get_destination(), but no luck.
Comment #4
nagiek commentedJust thinking about this a little more. @JordanMagnuson, you and I want to get the original destination, whereas the original poster wants to pass a variable to a modal (I think).
Marking this as a duplicate of #1039858: Additional configuration option for String arguments to pass URL query string to contexts and opening an issue for getting the original destination.
Comment #5
abhaysaraf commentedYou can provide query parameters using below code.