Shortcodes can access page variables and also have their own specific built-in variables.
2017-03-12
2017-03-12
2017-03-12
variables and params
shortcodes
false
docs
parent
weight
variables
20
20
20
false
Shortcodes have access to parameters delimited in the shortcode declaration via .Get, page- and site-level variables, and also the following shortcode-specific fields:
.Ordinal
Zero-based ordinal in relation to its parent. If the parent is the page itself, this ordinal will represent the position of this shortcode in the page content.
.Parent
provides access to the parent shortcode context in nested shortcodes. This can be very useful for inheritance of common shortcode parameters from the root.