Forum for discussing general topics related to Couch.
2 posts Page 1 of 1
Hi

I have a includes/footer.php file and I have added the following code to it

Code: Select all
<cms:get_custom_field 'footer_phone_number_content' masterpage='globals.php' />

<cms:get_custom_field 'footer_opening_hours_content' masterpage='globals.php' />

<cms:get_custom_field 'footer_text_content' masterpage='globals.php' />


I have then created a globals.php file with the following code in it

Code: Select all
<?php require_once( 'cms/cms.php' ); ?>

<cms:template name='globals' title='Globals' order='5' />

<cms:editable name='footer_phone_number_content' toolbar='full' type='richtext' />

<cms:editable name='footer_opening_hours_content' toolbar='full' type='richtext' />

<cms:editable name='footer_text_content' toolbar='full' type='richtext' />

<?php COUCH::invoke(); ?>


In the admin side, I see the first two content textarea boxes but the third one is not being added to the admin for some reason, I have visited the file globals.php in the browser and refreshed it while being logged in as super admin and also cleared the cache but still no joy

Is there something I am missing?
UPDATE: I got it working now, I added in the edit test coding below and it first came up "you cannot edit" so I closed my browser and opened it again and it came up edit and was able to edit the content now
2 posts Page 1 of 1