Base Tag Library
Note: We have updated our folder structure in Neto 6 and this has not been updated on all tweaks yet. More info.

asset_url

Generates a path directly to the asset URL for the active theme

Example

[%asset_url type:'content' id:'[@content_id@]' default:'/assets/pixel.gif'/%]

Usage

An asset url will call an asset that has been loaded into Neto's control panel. For instance, the example above will load the primary main content image for a content page for whatever the current page is.

asset_url Parameters

Name Options Description
type:'' String Directs the url to a specific content type
id:'' String The ID of the content page the asset is stored in
thumb:'' String This will let you select alternate images to load, for example thumb:'alt_1' will use the asset url to load the alternate 1 image for this content type.
default:'' String The url provided will default to this if there are no results stored within neto for the requested content

1 related articles found: