Forum for discussing general topics related to Couch.
3 posts Page 1 of 1
I can use <cms:config_form_view> to customize the form view of a template, for instance to add styles or a script to the page.
Code: Select all
    <cms:config_form_view>
        <cms:script>
           alert('Hi there!');
        </cms:script>
    </cms:config_form_view>

If the template has a <cms:globals> tag, which seems to essentially create a virtual template to hold global editables, is there any way to configure the globals form view?
Hi Tim,

I am sorry but, at the moment, there is no provision for modifying global templates the way normal templates are.
Perhaps, the old method of using type 'message' editable region would help somewhat?
KK wrote: Perhaps, the old method of using type 'message' editable region would help somewhat?

Yes. It certainly would. Thanks! :)

Gotta love the classics!
Code: Select all
    <cms:globals>
        <cms:editable name='config' type='message'>
            <style>
                #k_element_my_editable {border:1px dotted red;}               
            </style>
            <script>
                alert('hi there!');
            </script>
        </cms:editable>
        <!-- My Global Editables -->
    </cms:globals>
3 posts Page 1 of 1
cron