====== How to create, edit, and delete content ======
===== Types of content pages and when to use each =====

There are four types of content pages: normal Content pages, Area pages, Agent Landing pages, and a Home page. They share some common functionality, but are also specialized for different uses. Click the appropriate links in the table of contents to the right for details on the use cases for each type of page.

===== Common Elements =====
==== Basic Fields ====

The following options are common between content, area, and home pages.

  * //Title//: Short blurb that appears in the title bar of the browser and as the first line of Google search result.
  * //Meta description//: A longer blurb that appears as the second part of a Google search result.
  * //Meta keywords//: A comma-separated list of keywords, also for use by search engines.

{{:google_metas.jpg|}}

  * //Content//: The "meat" of the page. Can contain a wide variety of elements including headers, paragraphs of text, links, lists, and images. For a detailed explanation, see [[content_wysiwyg|editing content fields using the WYSIWYG editor]].

The following fields are common to both Content and Area pages, but are not applicable to Home pages.

  * //Anchor Text / Page Name//: The name of the page as it will appear when linked to from another page.
  * //Slug//: The last part of the URL of the page. For example, http://www.example.com/something/something-else/**this-is-the-slug**. This field is automatically derived from the **Anchor Text / Page Name**, so you don't need to worry about it unless you want to configure it manually.
  * //Parent//: For (optionally) organizing pages in a hierarchy. For example, imagine if you wanted to organize some of your content pages like this:
    * yoursite.com/**sports_and_rec**/ - general information about sports and recreational activities available in your area
      * yoursite.com/sports_and_rec/**golf**/ - information about golf courses
      * yoursite.com/sports_and_rec/**tennis**/ - information about tennis courts
    * In the above example, the **sports_and_rec** page is at the top of the hierarchy, so it shouldn't have a parent selected. On the other hand, both the **golf** and **tennis** pages are under **sports_and_rec** in the hierarchy, making that page their parent. In addition, child pages can themselves have children and so on to form a treelike organizational structure.

==== Advanced Options ====

The advanced options for a page are near the bottom. They are initially hidden or collapsed, so they must first be expanded:

{{:expand.jpg|}}

=== Sidebar and Footer Options ===

Sidebars and Footers work similarly for sharing common content between multiple pages. You can pick a sidebar (and/or footer) from a drop-down list. These will appear on the side or at the bottom of every page that uses the given sidebar or footer. You can create a new sidebar (or footer) by clicking the green plus.

{{:sidebar_footer.jpg|}}

=== Property Display Search Options ===

This is handy for displaying custom-tailored property listings on a page. To do this, define a search by specifying the desired number of results, one or more criteria, and a sort order. Optionally, you can specify a header to appear above the property listings.

Let's change the search criteria by remove the foreclosure restriction (1) and adding another criterion (2) specifying the minimum number of bedrooms (3):

===== Content Pages =====
Content pages can contain arbitrary content, but for your convenience, we've provided a few handy templates for common use cases.

==== Default ====
A basic page with arbitrary content, with all of the options listed under [[#common_elements|Common Elements]].

==== Default with Search ====
Like a [[#default|Default content page]], but with a property search form above the main content.
==== Foreclosure Page ====
Same as [[#default_with_search|Default with Search]], but with a foreclosure search instead.

==== Featured Property Page ====
Similar to [[#default|Default content page]], but [[#property_display_search_options|property listings]] are split into as many pages as necessary. The number of properties on each of these pages is determined by the //Number of Properties// field under [[#property_display_search_options|Property Display Search Options]].
==== About Page ====
About pages are handy for listing your agents, and possible linking to their [[#agent_detail_page|Agent Detail pages]]. There is also a special field to list testimonials.
==== Agent Detail Page ====
Use this page for providing detailed bios of your agents.
===== Area Pages =====
An Area page is essentially a content page dedicated to a geographical area. You can set up area pages for regions, cities, or neighborhoods. The search form at the top of an area page is narrowed down to just the area specified in the **Area name** field.

It can be advantageous to organize Area pages in a hierarchy, for example:
  * San Diego Coastal
    * Downtown
    * La Jolla
  * San Diego Central
    * Linda Vista
    * Logan Heights

To accomplish this, use the **Parent** drop-down as described at the bottom of the [[#basic_fields|Basic Fields]] section.

===== Agent Landing Pages =====

An [[agent_landing_pages|Agent Landing page]] is a Content Page that can have an agent assigned to it.  When a new user arrives at an Agent Landing Page and then signs up, the new lead will bypass the normal round robin assignment process.  The new lead will be assigned directly to the agent and idle lead reassignment will not be applied.
===== Home Page =====

The Home page is the first page that's displayed at yoursite.com. Obviously, there should be only one Home page.
===== Deleting pages =====

  - [[finding_pages|Find]] the page you'd like to delete
  - Scroll to the bottom of the page
  - Click the Delete link
  - **Important**: Read the confirmation message to make sure you're deleting the right page, and not inadvertently deleting a child page (in case of hierarchical organization).

{{:delete.jpg|}}

You can also delete one or more pages in bulk.
  - [[finding_pages|Locate]] the pages as before, but instead of clicking on them, tick the checkboxes next to the pages you'd like to delete
  - Choose "Delete selected [...]" from the drop-down labelled **Action**
  - Click the **Go** button

{{:bulk_delete.jpg|}}
