Context
Description
In the following example, we show how to create and access an custom property in a different context. See how @PropertyRoot:Timing is
using a different context.
{object:Property context='PropertyRoot'}
...
{block:PropertyImages}
<section class="slider slider--animate height-100 cover cover-5 parallax"
data-animation="fade"
data-arrows="true"
data-paging="true"
data-autoplay="true"
data-timing="{@PropertyRoot:Timing
isCustom='true'
name='Slider time'
description='Set the time for slides to change in miliseconds'
isAttribute='true'
type='number'
defaultValue='5000'}">
<ul class="slides">
{block:Image}
<li class="imagebg" data-overlay="4">
<div class="background-image-holder">
<img alt="image" src="{:UriL}">
</div>
<div class="container pos-vertical-center">
<div class="row">
<div class="col-sm-12 text-center">
<h1>{:Title}</h1>
<div class="lead">
{:Description}
</div>
</div>
</div>
</div>
</li>
{/block:Image}
</ul>
</section>
{/block:PropertyImages}
...
{/object:Property}
Or you can access different objects on context level:
{object:Property context="PropertyRoot"}
...
{:LastUpdated}
{:PostedDate}
{:Description}
{:Price}
...
{block:Story}
{block:StoryItem}
{:Id}
{:Order}
{:StoryItemText}
...
{@PropertyRoot:block:PropertyImages}
{block:Image}
{:UriL}
{:UriS}
{:Title}
{:Description}
{/block:Image}
{/@PropertyRoot:block:PropertyImages}
...
{/block:StoryItem}
{/block:Story}
...
{/object:Property}