Speak to our experts today 0333 004 0333
Speak to one of our experts today
User Guides

EKM Tag: [ekm:show_webpages]

This tag is used to output your webpages on your EKM shop. The tag allows you to output all pages and specific groups of pages. You can add, edit and delete webpages from the "Design" section of your EKM shop.

  • Tag Information
  • Nesting This Tag
Basic Use - Style 1
In its basic use the tag will output an unordered HTML list for all webpages that are set to active.

[ekm:show_webpages][/ekm:show_webpages]
                                
This outputs the following.
Advanced Use
The advanced use allows you to follow customise how your webpages output and which groups are output.

[ekm:show_webpages]
    orderby='auto';
    counterstart='auto';
    groups='auto';
    counterreset='auto';
    output_start='<ul id="extra-page-nav"><li><a href="index.asp" class="normal">Home</a></li>';
    output_item='<li><a href="[url]" class="normal">[page_title]</a></li>';
    output_item_alternate='';
    output_item_current='<li class="selected"><a href="[url]" class="selected">[page_title]</a></li>';
    output_item_blank='';
    output_end='</ul><!-- #extra-page-menu -->';
[/ekm:show_webpages]
                                
Tag Attributes
Order By
orderby='';

Specify the order you wish the active webpages to be output.

Value
Description
auto
This will order the webpages by the order set within your webpages section.
OrderBy
This will order the webpages by the order set within your webpages section.
Title
This will order the webpages by title.
Counter Start
counterstart='';

Specify the number you wish the counter to begin at. This must be an integer value.

Value
Description
{user defined}
Define an integer value to begin the counter at.
Counter Reset
counterreset='';

Specify the number you wish the counter to reset to counterstart

Value
Description
{user defined}
Define an integer value to reset the counter at.
Groups
groups='';

Specify a comma seperated list of group IDs. These will define which groups the webpages are output from.

Value
Description
{user defined}
Define a comma seperated list of group IDs.
Output Start
output_start='';

Specify any HTML or Text you want to output before the list of webpages outputs. This should be any opening HTML you want to surround the webpages list.

Value
Description
{user defined}
Define any HTML or Text.
Output Item
output_item='';

Specify any HTML or Text you want to output with each list item.

Value
Description
{user defined}
Define any HTML or Text.

Within this attribute there are a number of attribute tags you can use to output various types of information.

Value
Description
[id]
Outputs the ID of the page currently being output.
[counter]
Outputs the value of the incrimenting counter.
[first]
Outputs the counter start value
[last]
Outputs the total number of webpages to be displayed.
[group_id]
Outputs ID of the group the current page resides within.
[group]
Outputs the name of the group the current page resides within.
[page_title]
Outputs the name of the current page as plain text.
[url]
Outputs the URL of the current page in plain text
[link]
Outputs a HTML link for the current page.
Output Item Alternate
output_item_alternate='';

Specify any HTML or Text you want to output with each alternate list item.

Value
Description
{user defined}
Define any HTML or Text.

Within this attribute there are a number of attribute tags you can use to output various types of information.

Value
Description
[id]
Outputs the ID of the page currently being output.
[counter]
Outputs the value of the incrimenting counter.
[first]
Outputs the counter start value
[last]
Outputs the total number of webpages to be displayed.
[group_id]
Outputs ID of the group the current page resides within.
[group]
Outputs the name of the group the current page resides within.
[page_title]
Outputs the name of the current page as plain text.
[url]
Outputs the URL of the current page in plain text
[link]
Outputs a HTML link for the current page.
Output Item Current
output_item_current='';

Specify any HTML or Text you want to output for the page currently being viewed.

Value
Description
{user defined}
Define any HTML or Text.

Within this attribute there are a number of attribute tags you can use to output various types of information.

Value
Description
[id]
Outputs the ID of the page currently being output.
[counter]
Outputs the value of the incrimenting counter.
[first]
Outputs the counter start value
[last]
Outputs the total number of webpages to be displayed.
[group_id]
Outputs ID of the group the current page resides within.
[group]
Outputs the name of the group the current page resides within.
[page_title]
Outputs the name of the current page as plain text.
[url]
Outputs the URL of the current page in plain text
[link]
Outputs a HTML link for the current page.
Output Item Blank
output_item_blank='';

Specify any HTML or Text you want to output if there are no pages to output meeting the current criteria.

Value
Description
{user defined}
Define any HTML or Text.
Output End
output_end='';

Specify any HTML or Text you want to output after the list of webpages outputs. This should be any closing HTML you want to surround the webpages list.

Value
Description
{user defined}
Define any HTML or Text.

The EKM system allows for some tags to be nested within other tags.

Nesting This Tag

When nesting this tag you do not need to make any alterations.


[ekm:if]
    iftype='EQUALS';
    ifvalue='1';
    ifvalue2='1';
    ifthen='[ekm:show_webpages][/ekm:show_webpages]';
    ifelse='';
[/ekm:if]