asset_url

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'/%]

Asset URLs of type logo also have thumb options:

[%asset_url type:'logo' thumb:'pdf'/%]

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. You can also specific a content pages alt_1 image like the following:

<img src="[%asset_url type:'content' thumb:'alt_1' id:'[@content_id@]' default:'[@config:imageurl@]/pixel.gif'%][%END ASSET_URL%]" alt="[@name@] image"/>

Or a products main image with:

<img src="[%asset_url type:'product' id:'[@SKU@]' thumb:'full' check_parent:'y'%][%param default%][%cdn_asset html:'0' library:'images'%]default_product.gif[%/cdn_asset%][%/param%][%/ asset_url%]"/>

asset_url Parameters

Name Options Description
type:'' String Directs the url to a specific content type product, brand, logo,brochure,adw,supplier,user,order,storeloc,itemspecific
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

Was this article useful?

Be notified when this page is updated. Optional.