phaidon/LuMicuLa

Make your hook module usable for other modules

Closed this issue · 10 comments

I cannot use LuMicuLa with other modules.

It is usable for all module which has a filter hook.

But how can I add the interface (with the icons) to the content?

E.g. Dizkus:

  1. Go to the hook settings of Dizkus
  2. Add "LuMicuLa editor" to "Dizkus editor"
  3. Add Dikzus in the LuMicuLa settings.

PS: If I will find the time I will add an option that 3. is enough.

  • Have you tried it with the News module?
  • Could it be that you are using your "modified" version of Dizkus?

if I recall, teh News module hooks are a bit of a mess tho.

might try it with Clip. I think that mod's hooks are correctly implemented. Also PostCalendar 7.1.0-dev (branch)

Could it be that you are using your "modified" version of Dizkus?

Thank you for this hint. That could be possible I will check that.

In Dizkus you are calling the interace with this code:

function smarty_function_editor($params, &$smarty)
{
    if(array_key_exists('textfield', $params) ) {
        $textfield = $params['textfield'];
    } else { 
        $textfield = 'message';
    }

    if (ModUtil::available('LuMicuLa'))  {
        $args = array(
            'textfield' => $textfield,
            'mode' => 'forum'
        );
        return ModUtil::apiFunc('LuMicuLa', 'plugin', 'editor', $args);

But I think that the interface should be loaded by the hook itself.

Could it be that you are using your "modified" version of Dizkus?

No the version were identical. You should have the editor and filter hook in Dizkus, too.

smarty_function_editor is obsolet.

You mean that I can remove all LuMicuLa-related changes as mentioned here, too: zikula-modules/DizkusModule#73

  • editor-plugin
  • textarea-prefix
  • modifier