Modular Merchant
QuickCode™ Glossary
{WEBPAGE-NAME}
QuickCode Tag Glossary Home
See also:
Knowledge Base
Articles in this category:
{ALL-PRODUCT-BLOCK-BEGIN}

{ALL-PRODUCT-BLOCK-END}

{CHECKOUT-FIELD-SHIP-ADDRESS-TITLE}

{CHECKOUT-FIELD-VALUE}

{CONTENT-SLIDESHOW}

{CURRENCY-EXCHANGE-RATE}

{FACEBOOK-LIKE-BUTTON}

{FACEBOOK-URL}

{FIELD-CONTACT-MESSAGE}

{FIELD-CURRENCY-MENU}

{GOOGLE-PLUS-BADGE}

{GOOGLE-PLUS-ONE-BUTTON}

{GOOGLE-PLUS-SHARE}

{IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN}

{IF-CUSTOM-WEBPAGE-ACTIVE-END}

{IF-STOREFRONT-BANNER-BEGIN}

{IF-STOREFRONT-BANNER-END}

{PAY-METHOD-LOGOS}

{PRODUCT-DOWNSELL-BUTTON}

{PRODUCT-UPSELL-BUTTON}

{STOREFRONT-BANNER}

{TWITTER-FOLLOW-BUTTON}

{WEBPAGE-BLOCK-BEGIN}

{WEBPAGE-BLOCK-END}

{WEBPAGE-DESCRIPTION}

{WEBPAGE-NAME}

{WEBPAGE-URL}

Storefront > {WEBPAGE-NAME}
<< {WEBPAGE-DESCRIPTION} {WEBPAGE-URL} >>
{WEBPAGE-NAME} Updated: 06/27/2013

The {WEBPAGE-NAME} QuickCode Tag may be used to display the name of one of the store's active custom webpages. This QuickCode Tag may be used in one of two ways:

  • The SID number of a specific custom webpage may be added as a parameter ({WEBPAGE-NAME:X})
  • The parameter may be omitted, and the tag may instead be placed inside the webpage block ({WEBPAGE-BLOCK-BEGIN} {WEBPAGE-NAME} {WEBPAGE-BLOCK-END})

{WEBPAGE-NAME:X}

{WEBPAGE-NAME} accepts the SID number of any of the store's custom webpages as a parameter. For instance, {WEBPAGE-NAME:1} would be used to display the name of the store's custom webpage with the SID number 1. With this approach, the webpage name will be displayed even if the specified custom webpage is inactive. In order to prevent displaying the names of inactive custom webpages in the storefront, {WEBPAGE-NAME:X} should be placed between {IF-CUSTOM-WEBPAGE-ACTIVE-BEGIN:X} and {IF-CUSTOM-WEBPAGE-ACTIVE-END}. This combination of QuickCode Tags may be used in any storefront template, and is often used in the footer section of the universal template to add links to specific custom webpages, such as an "About Us" page and a "Store Policies" page.


{WEBPAGE-BLOCK-BEGIN} {WEBPAGE-NAME} {WEBPAGE-BLOCK-END}

{WEBPAGE-NAME} may be used between {WEBPAGE-BLOCK-BEGIN} and {WEBPAGE-BLOCK-END} in order to display the name of each of the store's active custom webpages. This approach is implemented in the default "Page Index" template (sitemap_webpages.tpl) to display the list of all of the store's active custom webpages.

 Tip
View an example "Page Index" list of custom webpages in the Modular Merchant demo store.

With this approach, content between {WEBPAGE-BLOCK-BEGIN} and {WEBPAGE-BLOCK-END} is displayed once for each of the store's active custom webpages, in alphabetical order by webpage name. The first time the content is added to the page, {WEBPAGE-NAME} will automatically display the name of the first of the store's active webpages. The second time the content is added to the page, {WEBPAGE-NAME} will automatically display the name of the second of the store's active webpages, and so on.

When {WEBPAGE-NAME} is placed in the webpage block, the SID number parameter should not be used.

Requirements / Prerequisites

The {WEBPAGE-NAME} QuickCode Tag must either include the SID number of a specific custom webpage, or be placed between {WEBPAGE-BLOCK-BEGIN} and {WEBPAGE-BLOCK-END}

Example of Use

1. Add the following code to any storefront template:

Example
{WEBPAGE-BLOCK-BEGIN}
<p><strong><a href="{WEBPAGE-URL}">{WEBPAGE-NAME}</a></strong><br />
<em>{WEBPAGE-DESCRIPTION}</em></p>
{WEBPAGE-BLOCK-END}<br />
<hr />
<p><strong><a href="{WEBPAGE-URL:1}">{WEBPAGE-NAME:1}</a></strong></p>

 
2. If the store has three custom webpages (SID 1: "About Us", SID 2: "Store Policies", and SID 3: "FAQ"), and all three custom webpages are active, the storefront page that corresponds to the updated template would display the following:
Example
About Us
Learn more about our history and philosphy.

FAQ
Frequently asked questions.

Store Policies
Review our return policy and store terms and conditions.

About Us
Learn more about our history and philosphy.

3. If the store has three custom webpages (SID 1: "About Us", SID 2: "Store Policies", and SID 3: "FAQ"), and only custom webpage SID 2 is active, the storefront page that corresponds to the updated template would display the following:
Example
Store Policies
Review our return policy and store terms and conditions.

About Us

Source Code Source Code Updated:
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {WEBPAGE-NAME} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2024 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map