Hi, I have setup colorbox with custom image link, but the inline content seems not working.

See http://dev.camplist.com.au/?q=Products.

Under Ruck Sacks region -> 'measurements (?)'? Could anyone see the problem here? Thanks!

Comments

smiletrl’s picture

Btw, this is the code:

    $option = array(
      'query' => array(
        'width' => 500,
        'hight' => 500,
        'iframe' => true,
      ),
      'fragment' => 'ruck_sacks_measurement_help',
      'base_url' => '',
      'external' => TRUE,
      'attributes' => array(
        'class' => array("colorbox-inline"),
      ),
    );

    //$markup = '<a class="colorbox-inline" href="?width=500&height=500&inline=true#ruck_sacks_measurement_help">measurements (?)</a>';
    $markup = l(t('measurements (?)'), '', $option);
    $form['ruck_sacks']['exact_fit']['help_click'] = array(
      '#markup' => $markup,
    );

    // Popup text for measurement explaination.
    $help_node = node_load(1);
    $help_text = $help_node->body['und'][0]['safe_value'];
    $form['ruck_sacks']['exact_fit']['help_text'] = array(
      //'#markup' => '<div id="ruck_sacks_measurement_help" class="text-hidden">' . $help_text . '</div>',
      '#markup' => '<div style="display: none;"><div id="ruck_sacks_measurement_help">' . $help_text . '</div></div>',
    );
smiletrl’s picture

Status: Active » Closed (won't fix)

Anyway, this problem is solved with colorbox plugin directly~