Managing pages in Page Composer

October 8, 2024

Organizing your sitemap

This section shows how to organize your sitemap in Page Composer, create pages and group them using a menu labels, and add internal and external links to your top navigation bar.

About pages

Your site consists of a home page and subpages. Each page can contain predefined editable or noneditable content-items and areas (areas are placeholders defined at the template level to host content, for instance a menu, or paragraphs of text). Each area can contain one or more content items. 

A page-template applies to every page. Page templates define the structure of a page, including the position of different areas and noneditable elements, for example a navigation menu.

Creating a page in Page Composer

In Page Composer, you create a new page in the left pane.

To create a page in Page Composer:

  1. In Page Composer, click on Pages in the left pane.
  2. Navigate to the parent page below which you want to create a new page.
  3. Click the ellipsis button (...) beside the parent page. In the context menu, select New page.
    page-composer-new-page.png
  4. In the Create Page page, the options that are available depend on the site you are working on. At a minimum, provide a system name, page title, and select a page template.
    • System Name
      System name of the page. The system name is used to build the page URL. You can also define a custom URL in the SEO tab. By default, the system name is created from the page title.
    • Title
      Title of the page.
    • Template name
      The page template that defines the structure of the page, areas on the page, types of content that each zone can content, and more. The list of available page templates is specific to each site.
      page-composer-create-page.png

      Note: The list of available templates can also contain Page Models. For more information, see Creating page models.
  5. For more information entering information in Content Editor, see Using Content Editor.
  6. Click Save.

The new page displays in the page tree.

Using a menu label to group pages

A menu label enables you to group pages under a single navigation menu. The label is only for organizational purposes as site users cannot click a menu label. After you create a menu label, you can create or move pages under the label.

To create a menu label:

  1. In Page Composer, click on Pages in the left pane.
  2. Navigate to the parent page below which you want to create a menu label.
  3. Click the ellipsis button (...) beside the parent page. In the context menu, select Add>New menu label.
    page-composer-new-label.png
  4. In the Create Navigation Menu page, enter a title.
  5. Click Save.

The menu label displays in the page tree. You can now group pages under the menu label.

Specifying navigation menus for a page or menu label

You can choose to display a page or menu label only in one or more specific navigation menus. For example, if your site uses multiple navigation menus, you might want to exclude a page from one or more of the menus.

To specify navigation menus for a page:

  1. In Page Composer, open the page for editing.
  2. In Content, enable Select this option if you want to specify the menu where this item should appear.
  3. Select the menus in which to include the page or menu label.
  4. Save your changes.

Creating navigation links

The section shows you how to add links to the navigation bar that displays at the top of your page. You can add links to pages within your site and to external websites.

Creating an internal link

An internal link enables you to display a link to another page in your Jahia web project. The link displays in the top navigation menu for site users.

To create an internal link:

  1. In Page Composer, click on Pages in the left pane. Navigate to the page in which you want to create the link.
  2. Right-click and select Add>New internal link.
  3. In the Create Internal link page, enter a link title. The title is the text that displays in the navigation menu.
  4. To select destination page:
    1. Click on the Target field under Internal Link. The site tree for the current site opens.
    2. Navigate the site tree in the left pane and select the page to link to.
    3. In the main window, select the page or content corresponding to the link that you are creating. Then click Save.
  5. To specify how the links opens for users, in the Target field under Link, choose one of the following:
    • New Window (_blank)
      Links opens in a new window
    • Parent Window (_parent)
      Link opens in the same frame and site visitor leaves the current page.
    • Same window (_self)
      Link opens in a new tab
    • Topmost window (_top)
  6. Click Save.

Creating an external link

An external link enables you to display a link to an external web page. The link displays in the top navigation menu for site users.

To create an external link:

  1. In Page Composer, click on Pages in the left pane. Navigate to the page in which you want to create the link.
  2. Right-click and select Add>New external link in the context menu.
  3. In the Create Link (External)  page, enter a link title. The title is the text that displays in the navigation menu.
  4. In the URL field under Link (external) enter the URL of the external page.
  5. To specify how the links opens for users, in the Target field under Link, choose one of the following:
    • New Window (_blank)
      Links opens in a new window
    • Parent Window (_parent)
      Link opens in the same frame and site visitor leaves the current page.
    • Same window (_self)
      Link opens in a new tab
    • Topmost window (_top)
  6. Click Save.

Copying pages

To copy a page:

  1. Right-click a page and select Copy or click on the ellipsis (...) button.
  2. Open the context menu of the parent page under which you want to paste the page. Select one of the following:
    • Paste
      Copies the page and its subpages. Content is duplicated and can be modified without affecting the source page.
    • Paste one page
      This copies only the page and not the subpages

Moving a page

You can move and reorder pages by drag-and-drop or cut and paste.

When using the cut and past method:

  • Right-click a page and select Cut or click on the ellipsis (...) button
  • Select Paste to move the page and its subpages.

When using the drag-and-drop method:

  • Hold the click on the page
  • Drag it where you want to move the page:
    • a blue line represents where the page will be moved when dropping, useful for re-ordering pages
    • or drop it on a page in order to move it as a subpage

Editing the properties of a page

The contribution of content in a page is tackled in Adding content in Page Composer.

When you edit the properties of a page, you open it for editing in Content Editor. For more information on Content Editor, see Using Content Editor.

To open page for editing:

  1. In the left navigation pane, select Page Composer then select your site.
  2. At the right of the page name in the tree, click the ellipsis button (...) and select Edit.
    page-composer-edit-page.png
  3. Content Editor opens. See Creating a page in Page Composer for more information about the fields that you can edit.
When changing the template used by a page, content may not display with the new template, as the system does not know where in the page to display the content. However the content is not deleted and switching back to the initial template will return the content in your page.

Publishing pages

You can publish and unpublish a page from the publication menu at the top-right of the page. You publish in the current language.

page-composer-publication-menu.png

The publication menu has the following options.

  • Publish the page or selected items in the current language
  • Publish the page or selected items in all the site languages
  • Unpublish the page or selected items in the current language
  • Open the Publication Manager, which is a tool to manually select multiple items and launch a publication process

For more information on publishing, and publishing a specific piece of content in your page, see Publishing content.

Deleting a page

The way that you delete pages depends on whether the page has already been published or not. In both cases it is a two-step process. First you mark the page for deletion and secondly you delete it.

Deleting a page will also delete its subpages. Remember, you can unpublish a page or content so that it is no longer visible online for a selected language.

Important: When you delete pages, you cannot undo the delete.

Marking page for deletion

The first step is to mark content for deletion.

To mark a page for deletion:

  1. Right-click on the page and select Delete.
  2. In the confirmation window, click Yes. The page is dimmed in Page Composer with Deleted text indicating that the page is ready to be deleted.
    Pages marked for deletion no longer displays in Preview mode, but still displays online if it was previously published.
  3. To cancel the deletion, right-click on the page and select Undelete and click Yes.
Note: You cannot edit pages that are marked for deletion.

Deleting pages that have never been published 

To delete pages marked for deletion that have never been published:

  1. Right-click and choose Delete (permanently).
  2. In the confirmation window, click Yes.
Note: When you mark pages for deletion that haven't been published, they will be permanently deleted if they are part of a publication process, for example if the rest of the parent page is published.

Deleting published pages

Pages marked for deletion are permanently deleted in their working and live versions when being published. In other words, you must start the publication of pages marked for deletion to permanently delete them online.

Note: If you want pages to no longer display online but be editable, unpublish the pages (in the desired language if your pages exist in many languages).

Exporting and importing pages

You can export a page as a .zip file and import it under another page. For information in exporting and importing content within a page, see Managing content in Page.

Exporting a page

You can export a page to your local machine so that you can import it on a different site or server. Exporting a page also exports its subpages.

Important: If your page uses files or references content from other pages, the files and referenced content are not included in the export.

To export a page:

  1. Right-click on the page and select Export.
  2. In the Export dialog, choose from one of the following export options:
  • Export Zip
    Export the content from the workspace in a zip file
  • Export Zip with live content
    Export in a zip file the content as it is in the workspace and the content as it is online (“live content”).

The page or pages export to a .zip file on your local machine.

Importing a page

After exporting a page, you can reimport it. You typically uses page import when you want to:

  • Export a page and import under another page in the same site
Warning: If the import file contains a page or content that already exists under the page or area where the import is performed, then the imported content will override the existing content.

To import pages:

  1. Right click on the parent page where you want to import and click Import.
  2. In the Import dialog, click Choose File.
  3. Navigate the exported file and click OK. The import is performed in the background.
  4. Refresh the page to see the imported page.

 Note that the import time depends on the size of the imported file.

Note: While the Import option is available for all content items. the operation can fail if you try to import incompatible content. For instance, you can only import a page on a page.