I want to have some actions from an UDT depending on pages cache status. The UDT should only have an output if checkbox "Cachable" is marked.
Have tried something like this
Code: Select all
global $gCms;
$thispage = $gCms->variables['pageinfo']
$pageinfo = PageInfoOperations::LoadPageInfoByContentAlias($thispage);
if (isset($pageinfo) && $pageinfo->cachable == true)
Btw. I'm only a copy&paste coder ...