Chapter 18 Web
Chapter 18 Web
Management
Systems
Chapter 18
3 CMS
Components 4 WordPress
Technical
Overview
5 6
Customizing
Modifying WordPress
Themes Templates
7
Creating a
Custom Post
Type
8
7
Writing a Plugin
MANAGING WEBSITES
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
Managing Websites
CMS COMPONENTS
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
CMS Components
Content Creator
• Create new web pages
• Edit existing web pages
• Save their edits in a draft form
• Upload media assets such as images and
videos
Content Publisher
• Everything a creator can do
• determine if a submitted piece of content
should be published
• they can publish immediately
Site Manager
• Everything a publisher can do
• Menu management
• Management of installed plugins and widgets
• Category and template management
• CMS user account management
• Asset management
Super Administrator
• Everything a manager can do
• Managing the backup strategy for the site
• Creating/deleting CMS site manager accounts
• Keeping the CMS up to date
• Managing plugin and template installation
MODIFYING THEMES
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
Modifying Themes
Easy in WordPress
Although pages are just a particular type of post, they are also
associated with a site hierarchy and the menu. So while they
have many essential elements of posts (described later) such as
title, author, and date, they also have:
• get_ancestors() returns an array of the ancestor pages to
the current one. They can be used to build a breadcrumb
structure.
• wp_page_menu() can be used to create submenus of pages.
Link tags are especially important for a website, since links are
the basis for the WWW. Some important ones include:
• the_permalink() contains the permanent URL assigned to
this post. It should be wrapped inside a <A> tag if it is to be
clickable.
• edit_post_link() can be included if you want editors to easily
be able to browse the site and click the link to edit a page.
This is normally used in conjunction with conditional tags
that tell us if the user is currently logged in.
• get_home_url() returns the URL of the site’s home page.
WRITING A PLUGIN
Randy Connolly and Ricardo Hoar Fundamentals of Web Development
Writing a Plugin
Getting Started
Our first act is to create the main file for the plugin,
index.php, inside our folder.
3 CMS
Components 4 WordPress
Technical
Overview
5 6
Customizing
Modifying WordPress
Themes Templates
7
Creating a
Custom Post
Type
8
7
Writing a Plugin