Hello.
I have globals.php file with the code:
I have registered globals.php with super-admin. The template is visible and I can add repeatable text.
I want to show those repeatable region in index.php file. My code is:
With tihs I get error:
Error: masterpage: "globals.php" not found
I have also tried different approach :
But this returns blank values !?
What am I missing ?
Thank you!
I have globals.php file with the code:
- Code: Select all
<?php require_once( '../../manage/cms.php' ); ?>
<cms:template title='Globals' executable='0'>
<cms:repeatable name='r1' >
<cms:editable name='p1' type='text' />
</cms:repeatable>
</cms:template>
<?php COUCH::invoke(); ?>
I have registered globals.php with super-admin. The template is visible and I can add repeatable text.
I want to show those repeatable region in index.php file. My code is:
- Code: Select all
<cms:pages masterpage='globals.php'>
<cms:show_repeatable 'r1'>
<cms:show p1/><br />
</cms:show_repeatable>
</cms:pages>
With tihs I get error:
Error: masterpage: "globals.php" not found
I have also tried different approach :
- Code: Select all
<cms:show_repeatable 'r1'>
<cms:get_custom_field 'p1' masterpage='globals.php' />
</cms:show_repeatable>
But this returns blank values !?
What am I missing ?
Thank you!