Document Properties
Kbid
2546K3
Last Modified
04-Feb-2020
Added to KB
09-Jan-2014
Public Access
Everyone
Status
Online
Doc Type
References
Product
  • ICM 7.10
  • ICM 11
ISML Function - url()

Name

url()

Short Description

generate a URL that is part of a link dynamically (HTTP)

Table of Contents

Product Version

6.5

Product To Version

 

StatusNew Labels

Introduction

Webpages usually have links allowing a user to navigate from one page to another. A link in a standard webpage includes a URL pointing to another webpage.
If the user clicks on a link, the browser sends a request containing the URL to a server. In an Intershop 7 site, however, links do not reference other webpages. Instead, Intershop 7 links trigger pipelines which again can generate storefront webpages as a response.

The functions url() and urlex() are used in a template to dynamically generate a URL that is part of a link. Any reference in a storefront page needs to be generated by one of these function calls. Use the attribute action for generating that part of a URL that contains information about the storefront name, language/locale, currency, etc. The parameter attribute can be used to extend the URL with additional key-value pairs which can forward additional data to the called pipeline.

The url() function uses the protocol that triggered the pipeline. Therefore, if the pipeline was triggered via an HTTP request, the URL will use the HTTP protocol. If the pipeline was triggered via HTTPS, then that protocol will be used. By contrast, the urlex() function allows you to arbitrarily specify a protocol, independently of the one used in the current pipeline request.

Syntax

url( <action - operation> )
url( <action - operation>,[<parameter - operation>] )

Example

This example shows how to build a link in a storefront page to call a pipeline.

<a href = "#url(action('ViewBasketHistory-Start'))#">
  ... link text to be displayed ...
</a>

Parameters

action

This parameter is required.
action - operation
Result of an action() function call.

parameter

This parameter is optional.
parameter - operation
Result of a parameter() function call. The parameter() function may be included as often as needed in this function call.

Reference - ISML Functions

Disclaimer
The information provided in the Knowledge Base may not be applicable to all systems and situations. Intershop Communications will not be liable to any party for any direct or indirect damages resulting from the use of the Customer Support section of the Intershop Corporate Web site, including, without limitation, any lost profits, business interruption, loss of programs or other data on your information handling system.
The Intershop Knowledge Portal uses only technically necessary cookies. We do not track visitors or have visitors tracked by 3rd parties. Please find further information on privacy in the Intershop Privacy Policy and Legal Notice.
Home
Knowledge Base
Product Releases
Log on to continue
This Knowledge Base document is reserved for registered customers.
Log on with your Intershop Entra ID to continue.
Write an email to supportadmin@intershop.de if you experience login issues,
or if you want to register as customer.