CoolCMS API

CustomAssetPlacement : string
in package

Where in the page the custom code is inserted (`cms_system_custom_assets.placement`).

The three places match what third-party snippets require:

  • head — <head>, before the content renders (css, measuring libraries)
  • body_start — right after <body> (the Google Tag Manager <noscript> iframe requires it)
  • body_end — before </body> (scripts that wait for the DOM)

The front end renders each place with its own component call (CustomAssets).

Table of Contents

Cases

BodyEnd  = 'body_end'
BodyStart  = 'body_start'
Head  = 'head'

Methods

optionKeys()  : array<string, string>
Mapping `value => translation sub-key` for select options.
translationKey()  : string
Translation sub-key (e.g. `…placements.body_start`).

Cases

Methods

optionKeys()

Mapping `value => translation sub-key` for select options.

public static optionKeys() : array<string, string>
Return values
array<string, string>

translationKey()

Translation sub-key (e.g. `…placements.body_start`).

public translationKey() : string
Return values
string
On this page

Search results