17
Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

  • View
    219

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

Drupal Presentation - MenusCS 275 – Intro to Databases

• Fahmy Mohammed

• Spencer Forell

• Max Mueller

Page 2: 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

Page 3: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

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

Page 4: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

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

Page 5: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

PK mlid

FK1, I2, I1, I3 menu_name

I2 plid

link_path

router_path

link_title

options

module

hidden

external

I2 has_children

I2 expanded

weight

debth

customized

I1 P1

I1 P2

I1 P3

I1 P4

I1 P5

I1 P6

I1 P7

I1 P8

I1 P9

updated

menu_links

PK menu_name

tile

Description

menu_custom

PK path

load_functions

to_arg_functions

access_callback

access_arguments

page_callback

page_arguments

I1 fit

number_parts

I2 tab_parent

tab_root

title

title_callback

title_arguments

type

block_callback

description

position

weight

file

menu_router

Page 6: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

Menu_Custom Table

• Attributes:-Menu Name (Primary key)-Title-Description

• Menu Link is a weak entity of Menu custom

Page 7: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

Menu_link Table

• Attributes:-Plid (Primary Key)-Menu name (Foreign key)-Link path-Router path-Link title-Options-Module

-Hidden-External-Has children-Expanded-Weight-Depth-Customized

Page 8: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

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

Page 9: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

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

Page 10: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller
Page 11: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

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

Page 12: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller
Page 13: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

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

Page 14: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller
Page 15: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller
Page 16: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

Expanded – makes the menu permanently expanded

Enabled – Determines if menu is accessible or not

Features

Page 17: Drupal Presentation - Menus CS 275 – Intro to Databases Fahmy Mohammed Spencer Forell Max Mueller

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