Drupal Presentation - Menus

Post on 15-Jan-2016

45 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

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 - PowerPoint PPT Presentation

Transcript

Drupal Presentation - MenusCS 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

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

Menu_Custom Table

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

• Menu Link is a weak entity of Menu custom

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

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

Expanded – makes the menu permanently expanded

Enabled – Determines if menu is accessible or not

Features

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

top related