Fork me on GitHub

Using DynaMenu in 0.80  Bottom

  • In 0.76.x dynamenu is installed into includes/blocks

    includes/blocks doesn't exist in 0.80

    Is there an equievalent place in 0.8, or will dynamenu have to be rewritten ?




    edited by: ccandreva, Jul 27, 2007 - 08:12 PM
  • Usually in >=.8 all blocks have to be assoiciated to a module. This resulted in a rewrite of all core blocks plus moving them to a module where they belong to or, if nothing fits, they have been moved to the Blocks module itself.

    I must admit I never tried such an old style block. You can try to move it to system/Blocks/pnblocks, but there is no garuantee for success icon_smile .

    IMHO its betterto rewrite it (or try using the core/extendedmenu block instead).



    --
    "He is not dangerous, he just wants to play...."
  • If Extended Menu supported nested UL blocks (for nested menus) it would work.
    That is what my sites use DynaMenu for, and frankly I would prefer a CSS approach over the javascript.

    In fact I was planning on working on adding a CSS mode to DynaMenu after moving my sites to 0.80 -- but seeing Extended menu I would be more inclined to add multi-level to that.

    But it looks like I'll have to do one or the other before moving those sites to 0.80 . Do you know if multi-level was left out because by decision, or just isn't implemented yet ?
  • ccandreva: in about one week I'll finish new menu block - menutree, which will allow to build nested ul/li menus.
    Currently version for pn764 is almost ready (its available ins SVN at http://noc.postnuke.com/projects/bianor/). Version for pn800 will be ready about a week.
    I hope this block will combine Extended Menu convenient interface (drag&drop management) and DynaMenu possibility to build nested menus (but generated menu can be simple and clean HTML unordered list).

    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi
  • Great ! Is the SVN version at a point I could checkout and test ?
  • Fantastic news Jussuf! Will be looking forward! What kind of permission scheme have you planned?
  • ccandreva

    Great ! Is the SVN version at a point I could checkout and test ?

    Yes - present SVN version is supposed to work correctly and ready for testing. I would be appreciated for any feedback icon_smile

    dits: permissions are quite the same as in core menu - you can set permission to block or single link (by block title or link name). Due to tree-like structure of menu each sub element inherits parent element permissions.

    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi
  • Which is more current for 0.76.4, trunk or branch ?

    Also, if I understand the structure correctly, this installs under the Admin module ?
  • Old style blocks - those not associated with a module - can be placed into config/blocks.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • Mark, thanks I have it working except for the language file. under 0.76.4 that is placed in
    includes/language/blocks/eng/dynamenu.php

    I tried the obvious config/languages/eng/dynamenu.phponfig/languages/blocks/eng/dynamenu.php,
    and neither worked.
  • ccandreva

    Which is more current for 0.76.4, trunk or branch ?

    Also, if I understand the structure correctly, this installs under the Admin module ?

    Branch - in trunk I'll be working on version for pn8.

    And yes - this block is associated with Admin module because I haven't found another way to write block in new style (API and pnRender compliant ).


    --
    Polish Zikula Team
    Bianor Works - my Zikula works on CoZi
  • I followed merkwest post and now dynamenu works
    - copy what was in includes/blocks to config/blocks
    - replace includes/blocks with config/blocks in dynamenu.php
    - moved modules/Xanthia/plugins/function.dynamenu.php to config/plugins

    I also replace in dynamenu.php line 214

    Code

    $blockcol = & $pntable['blocks_column'];

    with

    Code

    $blockcol = & $pntable['blocks_column'];
            $blockcol[position] = 'pn_position';


    It's a dirty patch but it works.

    Hope this helps



    edited by: emathieu, Aug 06, 2007 - 08:15 PM

This list is based on users active over the last 60 minutes.