Managing Pages within WCM

This section describes how to create a page within CQ WCM and then create content on that page.

Note

Your account needs the appropriate access rights to create or edit pages.

Creating a New Page

Unless all pages have been created for you in advance, before you can start creating content, you must create a page:

  1. From the Websites console, select the level at which you want to create a new page.

    In the following example, you are creating a page under the level English - shown in the left pane; the right pane shows pages that already exist at the level under English.

    file
  2. In the New... menu (click the arrow next to New...), select New Page.... The Create Page window opens.

    Clicking New... itself also acts as a shortcut to the New Page... option.

     

  3. The Create Page dialog allows you to:

    • Provide a Title; this is displayed to the user.
    • Provide a Name; this is used to generate the URI.
    • Click the template you want to use to create the new page.
      The template is used as the basis for the new page; for example, to determine the basic layout of a content page.
    file
  4. Click Create to create the page. You return to the Websites console where you can see an entry for the new page.

    file

    This provides information about the page (for example when it was last edited and by whom) which is updated as necessary.

Editing a Page

After the page has been created, you can edit its content. When you first create a page, the page includes only the text and elements from the template. You add content by double-clicking or dragging and dropping components onto the page.

Opening a page

You can open the page to be edited by one of several methods:

  • From Websites console, you can double-click the page title to open it for editing.
  • From Websites console, you can right-click the page item, then select Open from the menu:
  • After you have opened a page, you can navigate to other pages within the site to edit them by clicking hyperlinks.

Inserting a new paragraph

After you open the page, you can start to add content. You do this by adding paragraphs (also called components).

To insert a new paragraph:

  1. There are several methods of selecting the type of paragraph you want to insert:

    • Double-click the area labeled Drag components or assets here... - the Insert New Component toolbar will open. Drag a component from here.
    • Drag a component from the floating toolbar (called sidekick) to insert a new paragraph.
    • Right-click on an existing paragraph and select New... - the Insert New Component toolbar will open. Drag the required component from here.
    file
  2. In both the sidekick and the Insert New Component toolbar you see a list of the available paragraph types. These may be split into various sections (for example, General, Columns, etc) which can be expanded as required.

    Depending on your production environment, these choices may differ. For complete details on components, see Default Components.

  3. Insert the component that you want on the page. Then double-click on the paragraph, a window opens that allows you to configure your paragraph and add content.

Editing a paragraph

To edit an existing paragraph, do one of the following:

  • Double-click the paragraph to open it. You see the same window as when you created the paragraph with the existing content. Make your changes and click OK.
  • Right-click the paragraph and click Edit.
  • Click twice on the paragraph (a slow double-click) to enter the Inplace Editing mode. You will be able to directly edit the text on the page, instead of inside a dialog window. In this mode, you will be provided with a toolbar at the top of the page. Just make your changes and they will be automatically saved.

Moving a paragraph

To move a paragraph:

  1. Click the paragraph you want to move. CQ WCM highlights the paragraph:

  2. Drag the paragraph to the new location - CQ WCM indicates where paragraphs can be moved to with a green checkmark. Drop it in your desired location:

  3. Your paragraph is moved:

Deleting a paragraph

To delete a paragraph:

  1. Select the paragraph and right-click:

  2. Select Delete from the menu. CQ WCM requests confirmation that you want to delete the paragraph as this action cannot be undone.

  3. Click OK.

Note

If you have set your User Properties to show the Global Editing Toolbar you can also perform certain actions on the paragraphs by using the Copy, Cut, Paste, Delete buttons available.

Various keyboard shortcuts are also available.

Find & Replace

A Find & Replace menu option allows you to search for, and replace multiple instances of a string, within a section of the website.

  1. Select the root page, or folder, where you want the find and replace action to take place.

  2. Select Tools then Find & Replace:

    file
  3. The Find & Replace dialog will:

    • confirm the root path where the find action should start
    • define the term to be found
    • define the term that should replace it
    • indicate whether the search should be case-sensitive
    • whether only whole words should be found (otherwise substrings will also be found)

    Clicking Preview will list where the term has been found. You can select / deselect specific instances to be replaced:

    file
  4. Click Replace to actually replace all instances. You will be asked to confirm the action.

The default scope for the find and replace servlet covers the following properties:

  • jcr:title
  • jcr:description
  • jcr:text
  • text

The scope can be changed using the Apache Felix Web Management Console (for example, at http://localhost:4502/system/console/configMgr). Select CQ WCM Find Replace Servlet (com.day.cq.wcm.core.impl.servlets.FindReplaceServlet) and configure the scope as required.

Note

In a standard CQ installation Find and Replace uses Lucene for the search functionality.

Lucene indexes string properties of up to 16k in length. Strings in excess of this will not be searched.

Copying Pages

When copying, you can copy either:

  • a single page
  • a page together with all subpages
  1. From the Websites console select the page you want to copy.

    Note

    At this stage it is irrelevant whether you want to copy a single page or the underlying subpages.

  2. Click Copy.

  3. Navigate to the new location and click:

    • Paste - to paste the page together with all subpages
    • Shift + Paste - to paste the selected page only

    The page(s) will be pasted at the new location.

    Note

    The page name might be automatically adjusted if an existing page already has the same name.

Moving or Renaming Page

The procedure to move or rename a page is the same. You do not need to do both: you can rename a page without moving it or vice versa.

CQ offers you the functionality to update internal links to the page being renamed or moved. This can be done on a page by page basis to provide full flexibility.

To move or rename a page:

  1. From the Websites console, click to select the page, then select Move.... Alternatively, you can also select the page item, then right-click and select Move....

    The Move window opens; here you can either specify a new location, a new name for the page, or both.

    The page also lists any pages that reference the page being moved. Depending on the status of the referencing page it will offer the possibility to adjust those links on and/or republish the pages.

  2. Fill in the following fields, as appropriate:

    Move

    Specify the page to be moved - this is usually filled in by default, depending on how and where you started the move action.

    to

    Use the sitemap (available via the drop-down selector) to select the location where the page should be moved to.

    If you are only renaming the page, ignore this field.

    Rename to

    The current page label displays by default. Specify the new page label, if required.

    Adjust

    Update the links on the page listed that point to the moved page: for example, if page A has links to page B, CQ adjusts the links in page A in case you move page B.

    This can be selected/deselected for each individual referencing page.

    Republish

    Republish the referencing page; again this can be selected for each individual page.

  3. Click Move. CQ WCM confirms that you want to move or rename the current page. Click OK to confirm.

Deleting a Page

  1. You can delete a page from various locations:

    • Within the Websites console, click to select the page, then right-click and select Delete from the resulting menu.
    • Within the Websites console, click to select the page, then select Delete from the toolbar menu.
    • Within sidekick use the Page tab to select Delete - this deletes the page that is currently open.
  2. After you have selected to delete a page you must confirm the request - as the action cannot be undone.

    Note

    After deletion, if the page has been published you can restore the latest (or a specific) version, but this may not have exactly the same content as your last version if further modifications had been made. See How To Restore Pages for further details.

Creating, Comparing and Restoring Page Versions

Versioning creates a "snapshot" of a page at a specific point in time. With versioning, you can perform the following actions:

  • Create a version of the page.
  • Compare the current version of the page with a previous version: texts, titles and images that have been added or deleted are marked with a specific style.
  • Restore the page to a previous version; for example, to undo a change that you made to a page.

Creating a New Version

To create a new version of a page:

  1. In your browser, open the page for which you want to create a new version.

  2. In the Sidekick, select the Versioning tab, then the Create Version sub tab.

    file
  3. Enter a Comment (optional).

  4. To set a label to the version (optional), click the More >> button and set the Label to name the version. If the label is not set, the version is an automatically incremented number.

  5. Click the Create Version button. A greyed message is displayed on the page; for example:
    Version 1.2 created for: Products

Note

A version is automatically created when the page is activated.

Comparing with a Previous Version

To compare the current version of the page with a previous version:

  1. In your browser, open the page for which you want to compare with a previous version.

  2. In the Sidekick, select the Versioning tab, then the Restore Version sub tab.

    file
  3. Check the version for which you want to compare and click the Diff button.

  4. The differences between the current version and the selected version are displayed as follows:

    • a text that has been deleted is red and strikedthrough.
    • a text that has been added is red and underlined.
    • an image that has been added or deleted is red framed.
    file
  5. In the Sidekick, select the Restore Version sub tab and click the <<Back button to display the current version.

Note

This feature is available for the text, the image, the text-image and the title components.

Restoring to a Previous Version

To restore the page to a previous version:

  1. In your browser, open the page for which you want to restore to a previous version.
  2. In the Sidekick, select the Versioning tab, then the Restore Version sub tab.
  3. Check the version for which you want to restore and click the Restore button.

Setting Page Properties

Page Properties define the various properties of the page, such as titles, when they appear on the website and others.

  1. Open the page you want to edit.

  2. In the sidekick open the Page tab then select Page Properties... - a dialog with multiple tabs will open.

  3. Make the changes you require (see below) then click OK to save.

Basic

file
Title

The page title - as appears in the Websites tab list.

Tags/Keywords

Here you can add, or remove tags from the page by updating the list in the selection box:

  • A completely new tag can be entered by typing the name in an empty space in the selection box.
  • With the drop-down functionality you can select from existing tags.
  • An x appears when you mouse-over a tag entry in the selection box; this can be used to remove that tag for this page.

Hide in Navigation

A toggle switch to indicate whether the page is shown or hidden in the page navigation.

More Titles and Description

Page Title

A title to be used on the page.

Navigation Title

A title for the page for use within the navigation map. Often shorter than the full title.

Subtitle

A subtitle for use on the page.

Description

A description of the page to be used as you require.

On/Off Time

On Time

The date and time at which the published page will be activated. When published this page will be kept dormant until the specified time. Leave these fields empty for pages you want to publish immediately (the normal scenario).

Off Time

The time at which the published page will be deactivated. Again leave these fields empty for pages you want to publish immediately.

Vanity URL

Vanity URL

Allows you to enter a vanity URL for this page. That allows you to have a shorter and more expressive URL.

For example, if the Vanity URL is set to welcome to the page identified by the path /v1.0/startpage for the website http://example.com, then http://example.com/welcome would be the vanity URL of http://example.com/content/v1.0/startpage.

Note

Vanity URL must be unique so you should take care that the value is not already used by another page.

Redirect Vanity URL

Indicates whether you want the page to use the vanity URL.

Advanced

file
Language

The page language.

Redirect

Indicate the page to which this page should automatically redirect.

Design

Indicate the design to be used for this page.

Alias

Specify an alias to be used with this page.

Tracking

External Provider

The provider who is generating the analytical statistics.

ID/Snippet

The ID or code snippet to be included on the page.

Closed User Group

Enabled

Enables (or disables) use of closed user groups (CUGs).

Login Page

The page to be used for login.

Admitted Groups

Groups eligible for login to the CUG.

Realm Name

Realm name for the CUG.

Segments

Segments

Here you can assign or remove this page from predefined segments.

Images

Use this tab to load an image that can be used to represent this page.

file

Analytics

Define properties for connecting CQ with SiteCatalyst and Test&Target analytics solutions.

file

Blueprint

Define properties for a Blueprint page within multi-site management. Controls the circumstances under which modifications will be propagated to the Live Copy.

file

Live Copy

Define properties for a Live Copy page within multi-site management. Controls the circumstances under which modifications will be propagated from the Blueprint.

file

Showing Page References

CQ lets you view which pages are linked to the page you are currently working on.

To show page references:

  1. In the CQ sidekick, select the Page tab icon.

    file
  2. Select Show References... CQ opens the References window and displays which pages refer to the selected page, including their paths.

    file