Page 1 of 1

Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 1:02 pm
by ahmednuaman
I'm new to CMSMS so I apologise if this is a basic question. How can I make an additional 'downloads' menu or a custom menu? For example, a menu that's populated with links rather than content pages and is seperate from the main and submenus.

Re: Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 1:07 pm
by RonnyK
The easiest way is to create "new content", select in content-type "LINK" and then paste the data (link) etc.... It will end up in the menu, when "Show in menu" is checked.

Ronny

Re: Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 1:19 pm
by ahmednuaman
RonnyK wrote: The easiest way is to create "new content", select in content-type "LINK" and then paste the data (link) etc.... It will end up in the menu, when "Show in menu" is checked.

Ronny
But then how do I create a custom menu for those links?

Re: Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 1:25 pm
by RonnyK
Oh, I didn't understand that you wanted all to be styled differently.

I have created a site where different menu's are placed/styled on different places.

I create f.e. a main menu called hd-menu, one called sb-menu.

In the template I call.

Code: Select all

   <div id="menu_horiz2">
      {menu template='extra-menu'  start_page='hd-menu' show_all='1'}
   <hr class="accessibility" />
   </div>   
On another place:

Code: Select all

      <!-- Start Sub Navigation -->
      <div id="menu_vert">
         {menu template='extra-menu'  start_page='sb-menu' show_all='1'}
         <hr class="accessibility" />
      </div>
Both can now be styled seperately, like :

Code: Select all

/********************
MENU
*********************/
#menu_vert {
   padding: 0 3px;
/*   margin-left: 1em; */
}


/* third level has some padding to have it stand out */
div#menu_vert ul ul ul {
   padding-bottom: 0.5em;
}

/* menu li block */
#menu_vert li {
   list-style: none;
   margin: 0;
/*   border-bottom: 1px solid #FFFFFF; */
   display: block;
}

#menu_vert ul ul li {
   border: none;
}

div#menu_horiz2 {
/*   background-color: #B3B3B3;  /* background color for the entire menu row */*/
   background-color: #C6C5C6;
   width: 100%;
   margin: 0.1em 0 0 0;
}

/* 
the menu ul box has top and left border, 
right border is provided by the li elements 
*/
div#menu_horiz2 ul {
   margin: 0;
   padding: 0;
/*RK   border-bottom: 1px solid #4F4F4F; */
   height:2.2em;
   color: #FFFFFF;
}

Ronny

Re: Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 2:34 pm
by ahmednuaman
And how do you apply links to those menus?

Re: Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 2:36 pm
by calguy1000
If you want only files that are available for download to be in this 'sub menu' I suggest you check out the Uploads module.

Re: Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 2:37 pm
by RonnyK
You can create whatever you want inside the mentioned menus and all that entries will appear in the place you put the calling of that menu. If you just want plain entries you can also put links like on the places, with the code I gave you, you can maintain it all through content. All childs under the hd-menu will appear on that place, all childs of sb-menu will appear there.

Ronny

Re: Downloads menu (or custom menus?)

Posted: Mon Jul 16, 2007 2:52 pm
by ahmednuaman
Ok cool, thanks!