Hi, I am working on a site that relies heavily on Panel pages, and your module does not work because you are adding critical javascript and css in the hook.

If someone is using Panels to load node types, your preprocess_node hooks are not invoked. So the accordion or tabs are not created when you visit the Panel page because no js or css ever acts on these elements.

I ended up having to create a custom module that invokes your modules js and css with hooks_init() like this :

function XXX_hooks_init() {
  // Add the wysiwyg_tools_plus js and css
  drupal_add_js(drupal_get_path('module', 'wysiwyg_tools_plus') . '/js/tab_builder.js');
  drupal_add_css(drupal_get_path('module', 'wysiwyg_tools_plus') . '/css/wysiwyg_tools_plus.css');
}

So as a feature, I suppose I am requesting that you please get this module to work a little better with Panels / Panel pages. Thanks

Comments

federicoc’s picture

Issue summary: View changes

adding feature request.

pradeep22saini’s picture

Issue summary: View changes
StatusFileSize
new1.25 KB

Updating patch with hook_init

pradeep22saini’s picture

Status: Active » Needs review