170 likes | 393 Views
Drupal Presentation - Menus. CS 275 – Intro to Databases. Fahmy Mohammed Spencer Forell Max Mueller. What are Menus?. A collection of links (menu items) used to navigate a website Bridge different parts of the website together. Types of Menus. Three types: Navigation
E N D
Drupal Presentation - Menus CS 275 – Intro to Databases • Fahmy Mohammed • Spencer Forell • Max Mueller
What are Menus? A collection of links (menu items) used to navigate a website Bridge different parts of the website together
Types of Menus Three types: Navigation -Main interactive menu for any site -Usually contains personalized links for authenticated users and is often not visible to anonymous users Primary Links -Show the major sections of a site Secondary Links -Used for pages that play a lesser role than primary links
Why do we need Menus? Menus are important because they act as the tool the user uses to navigate the website. Bridges different parts of the UI Without menus: -Users will feel lost -Would not support a good user friendly Interface -Hard to get where you want on the site
Menu_Custom Table • Attributes: • -Menu Name (Primary key) • -Title • -Description • Menu Link is a weak entity of Menu custom
Menu_linkTable • Attributes: • -Plid (Primary Key) • -Menu name (Foreign key) • -Link path • -Router path • -Link title • -Options • -Module • -Hidden • -External • -Has children • -Expanded • -Weight • -Depth • -Customized
Menu_router Table • Attributes: • -Path (Primary Key) • -Load Functions • -To arg functions • -Access callback • -Access arguments • -Page callback • -Page arguments • -Fit • -Number parts • -Tab parent • -Tab root • -Title • -Title callback • -Title arguments • -Type • -Block callback • -Description • -Position • -Weight • -File
Uses We can use menus in drupal for: -Accessing links through drupal -Accessing links via the web -Organizing how users navigate the webpage You can make your own web pages using php + html and link to them using menus For example: -assignment6
Different Menus Navigation is the main menu used by drupal -contents already created for you -can be edited any way you want Primary and Secondary links are initially empty Custom Menus
Features Utilize the navigation menu to customize the interface Add – Make an additonal menu Drag – Arrange menus into sub menus Delete – Drop a menu Edit – Change the description of a menu
Features Expanded – makes the menu permanently expanded Enabled – Determines if menu is accessible or not
Menu Functionality The most interesting feature is the way we can organize the menus Menu -> Navigation Primary links show up at the top of drupal