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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Using DynaMenu in 0.80
-
- Rank: Developer
- Registered: Sep 22, 2005
- Last visit: May 20, 2010
- Posts: 292
-
- Rank: Team Member
- Registered: Jan 02, 2003
- Last visit: Oct 21, 2009
- Posts: 800
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
.
IMHO its betterto rewrite it (or try using the core/extendedmenu block instead).
--
"He is not dangerous, he just wants to play...." -
- Rank: Developer
- Registered: Sep 22, 2005
- Last visit: May 20, 2010
- Posts: 292
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 ?
-
- Rank: Team Member
- Registered: Apr 07, 2005
- Last visit: Jan 18, 2010
- Posts: 228
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 -
- Rank: Developer
- Registered: Sep 22, 2005
- Last visit: May 20, 2010
- Posts: 292
-
- Rank: Developer
- Registered: Feb 17, 2005
- Last visit: May 21, 2010
- Posts: 684
Fantastic news Jussuf! Will be looking forward! What kind of permission scheme have you planned? -
- Rank: Team Member
- Registered: Apr 07, 2005
- Last visit: Jan 18, 2010
- Posts: 228
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
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 -
- Rank: Developer
- Registered: Sep 22, 2005
- Last visit: May 20, 2010
- Posts: 292
Which is more current for 0.76.4, trunk or branch ?
Also, if I understand the structure correctly, this installs under the Admin module ?
-
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
Old style blocks - those not associated with a module - can be placed into config/blocks.
-Mark
--
Visit My homepage and Zikula themes. -
- Rank: Developer
- Registered: Sep 22, 2005
- Last visit: May 20, 2010
- Posts: 292
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. -
- Rank: Team Member
- Registered: Apr 07, 2005
- Last visit: Jan 18, 2010
- Posts: 228
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 -
- Rank: Registered User
- Registered: Feb 23, 2005
- Last visit: Mar 30, 2008
- Posts: 11
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
- Moderated by:
- Support
