liam_davison
I'm new here

Display variable from #global.scheduleContext in HTML template

Hello,

I have a couple of variables which are set as part of a schedule task ( Execute generation schedule -> Properties -> Extended -> Variables).

I need to display these values as part of an HTML page template. So far I have tried a setting up a variable called "WIBBLE":

$CMS_VALUE(#global.context.getProperty("WIBBLE"))$

$CMS_VALUE(#global.context("WIBBLE")$

$CMS_VALUE(#global.scheduleContext.getProperty("WIBBLE"))$

$CMS_VALUE(#global.scheduleContext("WIBBLE"))$

All are returning null.

However, I can access similar variables inside a Script, simply by using "context.getProperty("WIBBLE")".

Is it not possible to display a schedule context variable inside an HTML page template?

Many thanks,

Liam

0 Kudos
1 Reply
mbergmann
Crownpeak employee

Hi Liam,

have you tried just using $CMS_VALUE("WIBBLE")$?

Maybe this part of the ODFS can be helpful:

FirstSpirit Online Documentation - Using variables in schedules

Michael

0 Kudos