Warning: simplexml_load_string(): Entity: line 1: parser error : Space required after the Public Identifier in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SystemLiteral " or ' expected in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 1: parser error : SYSTEM or PUBLIC, the URI is missing in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: hr line 7 and body in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): ^ in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Opening and ending tag mismatch: body line 4 and html in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 Warning: simplexml_load_string(): Entity: line 9: parser error : Premature end of data in tag html line 2 in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 341 QC: {WEBPAGE-URL}
Modular Merchant
QuickCode™ Glossary
{WEBPAGE-URL}
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-URL}
<< {WEBPAGE-NAME}
{WEBPAGE-URL} Updated: 06/27/2013

The {WEBPAGE-URL} QuickCode Tag may be used to create a link to 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-URL:X})
  • The parameter may be omitted, and the tag may instead be placed inside the webpage block ({WEBPAGE-BLOCK-BEGIN} {WEBPAGE-URL} {WEBPAGE-BLOCK-END})

{WEBPAGE-URL:X}

{WEBPAGE-URL} accepts the SID number of any of the store's custom webpages as a parameter. For instance, {WEBPAGE-URL:1} would be used to create a link to the store's custom webpage with the SID number 1. With this approach, the link will be created even if the specified custom webpage is inactive. In order to prevent links to inactive custom webpages from being displayed in the storefront, {WEBPAGE-URL: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-URL} {WEBPAGE-BLOCK-END}

{WEBPAGE-URL} may be used between {WEBPAGE-BLOCK-BEGIN} and {WEBPAGE-BLOCK-END} in order to create a link to 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-URL} will automatically create the URL of the first of the store's active webpages. The second time the content is added to the page, {WEBPAGE-URL} will automatically create the URL of the second of the store's active webpages, and so on.

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

Requirements / Prerequisites

The {WEBPAGE-URL} 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

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: Warning: date() expects parameter 2 to be long, string given in /var/www/vhosts/qc.modularmerchant.com/httpdocs/article.php on line 796
When a web page using a template that contains this QuickCode Tag is viewed in the storefront, the {WEBPAGE-URL} QuickCode Tag is changed into the source code below prior to the web page being displayed.
LOG IN TO ADD COMMENTS
  Copyright © 2001 - 2020 Modular Merchant™. All rights reserved.
Modular Merchant | Privacy Policy | Legal Statement | Terms of Service | Contact Us | Site Map