LifeDesks Classification Module

4 views
Skip to first unread message

Jim Bacon

unread,
Jan 21, 2010, 12:45:09 PM1/21/10
to Scratchpads
Hi,

Should anyone want to try out this module, here is a handy tip.

The module assumes that Clean URLs (http://drupal.org/node/15365) are
being used. If they are not being used then the AJAX callbacks fail
and your imported taxonomy will not appear.

A rough fix for this is to edit the classification_init function in
the classification .module file and insert "?q=" in to the callback
paths.

My edited code appears as below:

drupal_add_js(array('classification_callback_base_url' => base_path
().'?q=classification'), 'setting');
drupal_add_js(array('classification_callback_jstree' => base_path
().'?q=classification/js_tree/'), 'setting');
drupal_add_js(array('classification_callback_jstree_viewer' =>
base_path().'?q=classification/js_tree_viewer/'), 'setting');
drupal_add_js(array('classification_callback_jstree_elements' =>
base_path().'?q=classification/js_tree_elements/'), 'setting');

I don't know if this is a complete fix but it is certainly a big help!

Reply all
Reply to author
Forward
0 new messages