Retired Documentation:  You are using the documentation for version 1.7.3 which was retired in 2013. Go here for the latest version documentation or check here for your available upgrades to the latest version.

Displaying Page Content

Displaying Page content is as easy as displaying normal weblog entries. The primary difference is that when a Page URI is requested, the URL segments do not correlate to a template group and template, as that is determined by the template that the particular "page" entry was assigned to use on the Pages tab of the Publish form.

Additionally, the page will automatically be treated as a single entry page for that page entry, so other tags on the template will need to use the dynamic="off" parameter (if available) to display other content.

Displaying Page Content with a Weblog Entries Tag

On the template assigned to a Page entry, use a normal Weblog Entries tag with any parameters and variables that you desire to display the entry, e.g.:

{exp:weblog:entries weblog="personnel"}
   <h2>{title}</h2>

   <h3>Position</h3>
   {position}

   <h3>Background</h3>
   {background}

   <h3>Telephone Extension</h3>
   {extension}
{/exp:weblog:entries}

Parameters

The Pages Module adds the following parameters for use in the {exp:weblog:entries} tag.

Variables

The Pages Module adds the following variables for use in the {exp:weblog:entries} tag.

The {exp:load_site_pages} Tag

If you are using the Multiple Site Manager, page data are only available for the current site. If you wish to show the {page_uri} or {page_url} for an entry from a different site, you will need to use the {exp:pages:load_site_pages} tag on the relevant template. This tag has one required parameter: site. For example, if your weblog tag is pulling in pages from sites default_site and corporate_site, your tag should look like:

{exp:pages:load_site_pages site="default_site|corporate_site"}

Top of Page