It seems it is almost impossible to do anything with CKEditor. I am frustated.
You need to instantiate a new plugin after adding it to config. Checkout my implementation of ckeditor_addons on github, it allows you to extend the config server side.
@Ismayil Khayredinov how can i use this to my add/blog page ?
Absolutely.
The only thing to keep in mind is if the plugin supplying the js is deactivated then there will be nothing to load. If this is something that's required then you can declare the second plugin as being dependent on the first in the manifest.xml
It'll look something like this:
<requires>
<type>plugin</type>
<name>js_provider_plugin</name>
<version>1.3</version>
</requires>
Thanks Matt, then I'm doing something wrong in one of my plugins. I'll try to find my error.
If you're printing the menu yourself, you can define the order by passing in the "sort_by" parameter:
echo elgg_view_menu('page', array('sort_by' => 'priority'));
If you're modifying an existing menu, you can use the 'prepare', 'menu:<menu name>' hook to modify the menu items before they are printed.
First register the plugin hook handler like this: https://github.com/Elgg/Elgg/blob/1.8/engine/lib/admin.php#L305
And then implement your own sorting function like has been done here: https://github.com/Elgg/Elgg/blob/1.8/engine/lib/admin.php#L384
(I changed the topic title to be more decriptive.)
Hi Juho,,,
Thanks for your quick response.
This works!!!, but I changed this option in sidebar.php (added to my plugin).
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.