3rd Level DF Menus
- layingback
- Site Admin
3rd Level DF Menus
I'm currently playing with adding a 3rd level menu in DF.
But I only like Mega Menus - see foodnetwork.com for an example. That big pull-down with 2 levels of menus in each pull-down. Saves all that careful mouse work moving down and then across.
Here's an image from my dev site:
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- greenday2k
- Sponsor
Re: 3rd Level DF Menus
mmm you can get the double colum links using floating elements (float: left; display:inline-block) with a fixed width: example: 90px;
Those mega drops menus are pretty and usable (weel that says that guru of usability...). I'm concerned by the administration areachanges and the DB changes (if any) or are you trying to make it as another CSS menu (different admin section) and different DB table?
greenday2k please enter your server specs in your user profile!
- layingback
- Site Admin
Re: 3rd Level DF Menus
I only did this for user side. Current menus are fine for Admin, but not good enough IMHO for user side - even if they were supported.
There are very little changes, and almost no truly new code. Will post as soon as I get a chance. But basically a new Add a Label button alongside existing Add a Catgeory and Add a Link entries in Admin > CPGMMMenu, and a new db file. Code for this, and db structure, is almost same as before.
Plus a very small change to the menu display code and the CSS.
A very low cost for quite a big increase in functionality.
I do need to add the 2-column layouts - thanks for the hints. I think I'll just add odd/even calc to the HTML for use in the CSS.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- layingback
- Site Admin
Re: 3rd Level DF Menus
I've uploaded my hack for default theme and reDesign3 (very basic in both cases) to Downloads.
I was waiting until I get time to make 2-column display work, but until then, I've uploaded what I have, as I do want to make it available to DF
As always with making changes to DF Core - YMMV - caveat emptor - no responsibility - yada yada! Ie. You've been warned
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- layingback
- Site Admin
Re: 3rd Level DF Menus
OK, 8 months later...
Turns out that the changes weren't that many, but there where many attempts to go in the wrong directions first!
Revised version of MegaMenus now supports 2-column "double-wide" menus in reDesign3. (It also supports links in labels, although I wouldn't recommend them from a user interface standpoint.)
No changes for Default theme, so don't bother re-downloading if you don't use the incomparable reDeisgn3. And only changes a couple of files for reDesign3.
Download from here.
As always, enjoy, and if you make good use of this, please drop by the top-left block! TIA!
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- Madis
- Poster
Re: 3rd Level DF Menus
- layingbackOK, 8 months later...
You were looking at your Join Date
Madis please enter your server specs in your user profile!
- layingback
- Site Admin
Re: 3rd Level DF Menus
Close.
I was actually looking at the starting file date on v1. But either way a lot longer delay than I'd intended. The deal needing a megamenu fell through ...
And I've been building my Event Donations system. Pretty cool, and as the Pro_News side of it is handled entirely within the template, this opens up Pro_News for a whole bunch of stuff at the template level.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- layingback
- Site Admin
Re: 3rd Level DF Menus
Minor update to fix the alternating background color in Admin menu, and to fix the confirmation text on Delete of a label.text. In Downloads.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- layingback
- Site Admin
Re: 3rd Level DF Menus
If anyone's following...I've updated to latest reDesign3 from CVS, the one with rounded corners on the menus, and a drop shadow.
Looks great, but showed up a shortcoming in my hack, so hack duly updated.
[ If you have more than 1 top-level menu highlighted then you need this fix. ]
I've also addressed a couple of issues related to links on these new 2nd level Label entries. I don't condone using them (from a UI perspective) but if you want them they are now there.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- Jerrmin
- Poster
Re: 3rd Level DF Menus
Nice mod. But I'd like to ask whether it is compatible with the dragonfly 9.3.4.1.
Jerrmin's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Windows 2003/2.2.16/5.3.3/9.3.4.0
- layingback
- Site Admin
Re: 3rd Level DF Menus
Honestly don't know, but I can't imagine why it wouldn't be. If you wanted to be sure compare the affected modules from 9.2.1 (which I used) with the corresponding versions from 9.3.4.1. There certainly haven't been many changes.
Or just try ict. If you take backup copies of the modules ahead of time, you should be able to reverse it all out if indeed it's necessary. (The extra db file can be left around.)
One thing that I have found, is that the modified code as is will fail if the new db file is not present. So if you copy the modified code to a new site, you need to manually add the extra db file before trying to bring up the new site.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- layingback
- Site Admin
Re: 3rd Level DF Menus
- JerrminNice mod. But I'd like to ask whether it is compatible with the dragonfly 9.3.4.1.
Any feedback? Wondering if it indeed worked with 9.3.4.1?
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- rosbif
- BetaTester
Re: 3rd Level DF Menus
I've just upgraded to 9.4 and my menus have disappeared - despite me redoing all the edits. Interestingly enough the lbl table in the database seemed to have disappeared so I had to recreate it. The css menu just seems to be not even created looking at the source. what have I missed?
Its on aparc.com.
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.11/4.1.22/5.2.17/9.3.4.1
- layingback
- Site Admin
Re: 3rd Level DF Menus
Well I have mega-menus running on many of my sites, including this one, and they are all 9.4.
However I can't remember what I did - if anything - as I too get very frustrated with DF Upgrade assuming that all db changes have to be wiped out on upgrade. So i usually just download once, upgrade my dev system, on XAMPP, and then install from that (by copying). Not straightforward - the install by copying - but at least it's the same each time.
But to your problem specifically: it sounds as if you did all the steps. HOWEVER your immediate problem isn't that the menu is missing, but that the WHOLE footer is AWOL! The menu is in the footer on reDesign ...
So my guess is that you have something in the footer that is either incompatible with 9.4, or more likely broken during the update. Does the footer show when using any other theme?
Can't tell much else from here I'm afraid and there is literally nothing there to look at after the maincontainer div.
layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6.32 / 1.3 - 2.4 / 5.5 - 5.6 / 5.4 - 5.5 / 9.4
- rosbif
- BetaTester
Re: 3rd Level DF Menus
No, footer doesn't show in any theme. What would cause that?
I can't change anything in admin either because of the security error; I've corrected the line at the foot of config.php so sessions are saving correctly but still get the error, even when refreshing.
Beginning to wish I hadn't done this now!
rosbif's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.11/4.1.22/5.2.17/9.3.4.1