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

EKM Tag: [ekm:location]

This tag is used to output a breadcrumb trail navigation for the current location on your website. This allows visitors to easily jump back to previous categories or the home page.

  • Tag Information
  • Nesting This Tag
Basic Use
This tag can be placed anywhere within the HTML and will output a simple HTML link.

[ekm:location][/ekm:location]
                                
This outputs the following.
Advanced Use
This tag can be placed anywhere within the HTML and will output the current location's breadcrumb navigation.

[ekm:location]
   output_start='<div class="ekmps-location">';
   output_item='<a href="[url]" data-is-current="[is_current]">[name]</a>'';
   output_separator='<';
   output_end='</div>';
[/ekm:location]
                                
This outputs the following.
Tag Attributes
Output Start
output_start='<div>';

Specify any HTML to be output before the location contents.

Value
Description
{user defined}
Define any opening HTML to go before the location tag.
Output Item
output_item='<a href="[url]" data-is-current="[is_current]">[name]</a>';

Specify how each item in the breadcrumb should be displayed.

Value
Description
{user defined}
Define any HTML or text.
Output Separator
output_separator='<';

Specify how each item in the breadcrumb should be separated.

Value
Description
{user defined}
Define any HTML or text to be used a separator between breadcrumb items.
Output End
output_end='</div>';

Specify any HTML to be output after the location contents.

Value
Description
{user defined}
Define any HTML to go after the location tag.

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 changes to it. It can be inserted into other tags like below.


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