Skip navigation
Currently Being Moderated

Dreamweaver Dynamic Menu

Oct 21, 2008 8:55 AM

Hi folks,

I hope someone can kick me into the right direction with this.

I want to make a dynamic menu with Dreamweaver using php/mysql, is there a method for doing this with the Developer Toolbox? or just Dreamweaver?

A user should be able to create a menustructure like this:

Main category 1
-->Subcategory 1
---->Subcategory 1.1
---->Subcategory 1.2
-->Subcategory 2
---->Subcategory 2.1
---->Subcategory 2.2
Main category 2
etc..

Any help is appreciated :)

kind regards,
Symvar
 
Replies
  • Currently Being Moderated
    Oct 21, 2008 11:22 AM   in reply to (symvar)
    yes you can try out the nested repeat region wizard
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 21, 2008 6:51 PM   in reply to (symvar)
    Hi symvar.
    To continue from where Miguel left off, I have a number of sites using Spry Menus and use ADDT's Nested Repeat Region SB to list the links and then turn that into a dynamically created XML file that feeds Spry Menus. My sites so far only have 2 levels of navigation.
    Initially there is a lot to it and includes:
    1. The database design, specically the table for the site content. I use a single table for basic site data which is something like the following:
    - id_pag - the primary key for the table and used to identify the top level page
    - idpag_pag - a self foreign key which identifies the second lavel page. The default is NULL except when a second level page is required
    - -menuLink_pag - essentially the label used in the menu
    - filename_pag - the file to be used by this page
    - banner_pag - the banner image for that page
    - metaTitle_pag - the meta title for the page
    - pageHeading - the heading in the page's content area
    - pagecontent_pag - the actual content for the page
    - metakeywords_pag - the list of keywords
    Also included in the table are the meta description , is this page included in the site navigation, is the page "Active" and the Order in the menu list.

    I use ADDT's Dynamic Lists and Forms together with the Master/Detail lists to manage the data/content.

    The next thing to consider is the creation of an XML file for the Spry Menu and I use the ADDT Nested Repeat Region SB to generate a list of the menu links from the page table referred to above. I then adapt this into a dynamic XML file that will contain the elements of the menu and setup a Spry nested data set and spry menu to consume the XML and display the menu.

    Lastly, I have elected to use ADDT's Server Side Includes from Table SB. This is not necessary and I have not been able to make this work as advertised, but is good enough for my purposes.

    An example of a site using this approach is www.kv.com.au

    The approach outlined here only caters for two levels of navigation but may be of some help to you if you need to take this a step further and support unlimited levels.

    Hope this has been of some help.
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 22, 2008 5:37 AM   in reply to (symvar)
    Hi Symvar
    Please read this tutorial to learn how to build dynamic dropdown menues with dreamweaver and addt, also it guide you to learn how to make a relation between a number of tables together by using the dependent dropdown menu server behavior.

    http://www.developer-online.com/tutorial_details.php?id_tut=65
     
    |
    Mark as:
  • Currently Being Moderated
    Oct 22, 2008 3:46 PM   in reply to (symvar)
    Hi Symvar
    Well, your code looks indeed intesting. Wish I could add more.

    Overnight I have been thinking about the Nested Repeat Region SB and have not come to grips on using it for more than 2 levels. I think another approach is required that may use a many to many table. One day I will explore this further. Ulimately there are two challenges: the database design and the menu code. I wonder how Joomla manages this......

    The Holy Grail would be to design a dynamic menu system that supports unlimited levels. Wouldn't it be great if ADDT had this in the next release ! Oh well, we can but dream.

    In the meantime, I can offer what I used for inspiration.

    Firstly, It may be worthwile reading the Spry docs on data sets, etc in the Spry Docs and Spry Samples pages. Start here: http://labs.adobe.com/technologies/spry/docs.html This is needed to be able to figure out how to use Spry Menus dynamically.

    Next, Interakt still have online the Tutorials and invaluable "How To" examples for the old MX Kollection here: http://www.interaktonline.com/Documentation/MXKollection/mx_kollectio n.htm Many of these are very useful in developing strategies for site designs situations.

    And also the Tutorials and How To examples for the old MX CSS Menus here: http://www.interaktonline.com/Documentation/MXCSSMenus/ - These I found very valuable.

    I might add in closing that using dynamic spry menus has its downsides. Most notable is the significant overhead of >200KB of javascript code needed to manage the spry datasets.
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 20, 2008 2:07 AM   in reply to (symvar)
    Hi all, please I need your assistence here. I'm exactly on the same problem right now. Need to create a dynamic menu and my deadline is really close!! I will start reading the informations available here, but please, can I post back here any issues? I think this is the correct post for doing it, since I'm on exactly the same scenario. :s

    Thanks
    Márcio
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2008 2:17 AM   in reply to (symvar)
    Symvar.
    I will do exactly the same thing. I'll have to leave the dynamic thing for now. :(

    Maybe in the future we can discuss or menus, and put back the guidelines to create them from sketch.

    Thanks for your reply,
    Márcio
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 21, 2008 5:12 PM   in reply to (symvar)
    Hi Symvar and Marcio
    As I mentioned above, I have previously had some success with using SPRY menus and PHP/MySQL. However, the downside of my solution was the additional 200KB of SPRY Javascript needed to make it work.

    Eventually, I decided to drop that and I have reverted back to the old Interakt CSS Menus - I firmly believe this is the absolute best thing out there. Unfortunately it is no longer sold. I just hope that when the next version of ADDT arrives it includes a replacement for the Interakt CSS Menu. The combo of Interakt CSS Menus (or SPRY/PHP/MySQL for that matter) and ADDT Includes from Table allows a very nice CMS to be created in very short time.

    In the meantime, you might like to have a look at this example which is very useful. I have not tried it yet.
    http://www.finalwebsites.com/tutorials/dynamic-navigatio-list.php

    Regards,
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 25, 2008 2:05 AM   in reply to (symvar)
    Thanks a lot WollombiWombat for your comments.

    Do you know a way, or are you using, the MX CSS Menu with dreamweaver CS3 ?

    I've read something in the past about this, and I know its possible, but I believe it needs a little "hacking" around to make it work. I just can't find that post anymore. :s It was on the old interakt forum.

    Thanks,
    Márcio

    ps- I believe there's no license restrictions about this. The only issue is that, it's not official.
     
    |
    Mark as:
  • Currently Being Moderated
    Nov 25, 2008 12:49 PM   in reply to (symvar)
    Marcio
    I use DW8 to create the CSS Menu and then do the rest of the development work in DWCS3/ADDT. If I need to make chnages to the CSS Menu I either make them manually or open the site up in DW8 again.

    As far as I know, the CSS Menu's Extension cannot be installed to DWCS3.

    Hope that helps. / Cheers
     
    |
    Mark as:
  • Currently Being Moderated
    Dec 4, 2008 12:46 AM   in reply to (symvar)
    Found this in another post:

    http://www.interaktonline.com/Documentation/MXKollection/#096000_howto nestedhome.htm
     
    |
    Mark as:
  • Currently Being Moderated
    May 5, 2010 7:01 AM   in reply to (symvar)

    Guys, I do have here a short tutorial on how to make dynamic menus in Dreamweaver. The menus are not CSS based, but you get the menus done in 10-15 minutes, of course, using an extension.

     

    Are you still using the InterAKT's CSS menus? They were done after I left so I don't remember exactly how they worked.

     

    Thanks,

    Cristian

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)