Publisher does not support the Fluid field type. Please do not contact asking when support will be available.

If you purchased an add-on from expressionengine.com, be sure to visit boldminded.com/claim to add the license to your account here on boldminded.com.

Ticket: Just a tip

Status Resolved
Add-on / Version Publisher
Severity Trivial
EE Version

Rein

Mar 21, 2013

Hi there,

I just saw on this page (http://boldminded.com/add-ons/publisher/url-translations) that you are creating an hook in structure by yourself. I know that this is a feature coming hook, but i found an other way to hook into the reorder proces.

For my extension ‘structure_url_alias’ i hook into the cp_js_end hook and add the code below.

(function($) {
$(function() {
$('#structure-ui').children('ul.page-ui').bind( 'nestedstructurestop', function( event, ui ) {
var url = url;
//set a timeout because this must fire after the reorder of structure
setTimeout(function(){
$.get(url, {entry_id:ui.item.attr('id').replace('page-', '')});
  }, 200);
  });
});
})(jQuery);

The code will bind to the ‘nestedstructurestop’ event of the jQuery reorder plugin. With the timeout in place this ajax call will be fired right after Structure reorder the tree with the ajax call.

I`m not using your module, but i think might be useful for you.

Rein

#1

BoldMinded (Brian)

Rein, thanks for the tip. Thats a creative way to go about it.

Login to reply