Stacks API

Come build with us.
Stacks API v6 for Stacks 2.5


  <   Templates Variable Reference


Site Asset Path

%siteAssetPath%

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.

Site Asset Path

%siteAssetPath%

Available: Stacks API v2

Usage

%siteAssetPath%

Description

Returns the path to the assets directory shared by all pages of the site. This will be needed to link to assets that have been included as site assets.

Note: This path may different between edit/preview/publish modes.

Detailed Asset File Reference

Example 1: link to an included PDF document

<a href='%siteAssetPath%/document.pdf' >Download PDF Document</a>
© . YourHead Software all rights reserved.