I am trying to pass a parameter from the link page to the target page, which opens in a dialog box. I tried with a url parameter on the target path ?node=9091 below, but though I can pick this up with drupal_get_query_parameters() when I open the target page directly, nothing appears when the target is opened as a pop-up
$args = array(
'text' => 'Click Me To See The Dialog',
'path' => 'sd3/target-page/?node=9091',
'selector' => 'load-this-element',
'title' => 'My Dialog Title',
'options' => array(
'width' => 900,
'modal' => FALSE,
'resizable' => FALSE,
'position' => array('center', 60) // can be an array of xy values
),
The documentation says that the 'selector' property is the way to go - as per the placeholder text - but when I change this from 'load-this-element', nothing shows in the pop-up.
What is the right way to pass a parameter to the dialog box so that the module code for that page can load some data ? Thanks.
Comments
Comment #2
peterk900 commentedSorry, I now really I was talking rubbish. I was confusing this with a Ctool or Colorbox pop-up. I now realise that you specify the content you want in the pop-up in the parent (calling) page and this gets loaded into the pop-up via Ajax. Once again, apologies.
Comment #3
peterk900 commented