show_content

show_content

Displays blog post, buying guide, brand, web page or custom content page within the content of another page.

Example

[%show_content id:'94' %]
  [%param *body%]
    [@content_description1@]
  [%/param%]
[%/show_content%]

Usage

Show Content will display content specified by the provided page ID. This can be used to reduce duplicate pages or usage of iFrames.

Not all data tags will be available depending on the content type displayed.

Note: This can be used in access content from inactive content pages.

Parameters

Name Options Description
id:'' Integer ID number of the content page
ifempty:'' HTML & b@se tags If the show_content returns no results, it'll load this block instead
*header HTML & b@se tags Renders a single usable space above the body
*body HTML & b@se tags Runs an array for result
*footer HTML & b@se tags Renders a single usable space below the body
Data tag Content Field Example Description
[@access_control@] Require Login private If private customer must login to view this page. Blank by default. Ignored when using show_content function
[@active@] Active y if y, the content page is active. It will still display using show_content function if inactive
[@auto_url_update@] Automatic URL y If y, the page URL will be updated when the page name is updated
[@content_allow_reviews@] Allow Reviews / Comments y if y, allow reviews or comments
[@content_author@] Author ^ John Green Name of the author
[@content_description1@] Page Content ^ We opened our first store in 1986. Main page content
[@content_description2@] Description 2 ^ Moved to Brisbane in 2014 Second description field
[@content_description3@] Description 3 ^ Now located in South Brisbane Third description field
[@content_external_ref1@] External Ref 1 35 Used by 3rd party systems and for internal reference purposes
[@content_external_ref2@] External Ref 2 about_us Used by 3rd party systems and for internal reference purposes
[@content_external_ref3@] External Ref 3 form Used by 3rd party systems and for internal reference purposes
[@content_external_src@] External Src subscription Used by 3rd party systems and for internal reference purposes
[@content_fullpath@] Parent Content Help and Information About Us Full path to the page. In this example Help and Information is the parent of About Us
[@content_id@] 94 ID number of the content page
[@content_keywords@] Keywords ^ sale Used by 3rd party systems and for internal reference purposes
[@content_label1@] Label 1 ^ red Label or tag (up to 50 characters)
[@content_label2@] Label 2 ^ green Label or tag (up to 50 characters)
[@content_label3@] Label 3 ^ blue Label or tag (up to 50 characters)
[@content_module@] Module ^ content_form This is used for the Forms content type. Available options: contact_form, notify_me, subscribe, unsubscribe or blank
[@content_name@] Name About Us Name of the content page
[@content_ref@] Link ID ^ about_us String that can be used as a reference for the content page instead of the content ID
[@content_short_description1@] Short Description 1 ^ Hard drive specialists First short description field (up to 255 characters)
[@content_short_description2@] Short Description 2 ^ Repairs and data recovery Second short description field (up to 255 characters)
[@content_short_description3@] Short Description 3 ^ Hard drive sales Third short description field (up to 255 characters)
[@content_type_name@] Type of Content Web Page Name of content type
[@gp_restriction@] Visible to User Groups 0 If visible to user group the customer is assign to, returns 0 otherwise it returns a high number
[@on_menu@] Visible On Menu y If y will display on menu
[@on_sitemap@] Visible On Sitemap n if y, will be included in the file for indexing by search engines
[@product_count@] # Products 4 Number of products that have assigned this content page in the Categorisation section of the product details
[@sortorder@] Sort Order 10 Sort order (descending)
[@templatebody@] Body Template Template used for the body content. Blank by default
[@templatefoot@] Footer Template Template used for the footer content. Blank by default
[@templatehead@] Header Template Template used for the header content. Blank by default
[@templatesearch@] Search Template Template used for the search results. Blank by default

^ Content field name can be changed by going to Settings & tools > All settings & tools > Control Panel > Content Types Manager in the control panel.


Was this article useful?

Be notified when this page is updated. Optional.