1

I created a custom content pane, however, I'm having some issues trying to hide the title on the page and was wondering if anyone knew of a module for this?

Here's the quick breakdown:

I created a new custom content pane:

Custom Content Pane

Above I have given the custom content pane no title, however, this is how it shows up:

No Title

I'd really like to make it look more descriptive.

If I add a title it will show on the variants > content page (image below), but unfortunately, it also shows up on the actual page as well.

Test Title

Live page:

enter image description here

Any and all help would be greatly appreciated. Thank you!

1

Have a look at:

ctools_custom_content_type_admin_title

/**
 * Callback to provide the administrative title of the custom content.
 */
function ctools_custom_content_type_admin_title($subtype, $conf) {
  $settings = ctools_custom_content_type_get_conf(ctools_custom_content_type_content_type($subtype), $conf);

  $output = t('Custom');
  $title = !empty($settings['admin_title']) ? $settings['admin_title'] : $settings['title'];
  if ($title) {
    if ($settings['custom_type'] != 'fixed') {
      $output = t('Custom: @title', array('@title' => $title));
    }
    else {
      $output = $title;
    }
  }

  return $output;
}

If the admin title is used, and the custom content type is not set to 'fixed' (see ctools_custom_content_type_get_conf), it will use your user input admin title for admin display there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.