Stacks API

Come build with us.
Stacks API v6 for Stacks 2.5


  <   Templates Variable Reference


Link Property Value

%id=linkProperty%

This content is open source. You can edit it and submit a pull request on GitHub.
This page is generated from this file.


© . YourHead Software all rights reserved.

Link Property Value

%id=linkProperty%

Available: Stacks API v3

Usage

Anchor Tag Syntax
%id=<linkID>%
Property Syntax
%id=<linkID> -<propertyName>%

The alternate usage of a link is to extract a specific property such as the href or rel property and replace the template with only that.

Description

The output of this form is the first half of an anchor tag. You must close the tag yourself.

The alternate usage of a link is to extract a specific property such as the href or rel property.

Example 1: a simple link in HTML.

%id=linkContorlID%Click Here</a>

Example 2: extract the href to use as a CSS URL.

.backgroundImageClass {
    background-image: url("%id=linkControlID -href%");
}
© . YourHead Software all rights reserved.