Hi!
I'm having trouble accessing the data selected in an editable region before I'm going to save the page through db_persist (in the backend, with theming of content_form.html).
What I'm trying to do is to merge the data in k_page_title with k_page_name of the related page to create k_page_name of the new page.
This doesn't yield anything. Adding "frm_" as one would do with the regular inputs leads only to a complaint, as "frm_editable_region" is not a defined relation.
If I'm saving the page again - since by then the relation is set - the new k_page_name is properly build together - but that's of course not how it should work. Any help or direction towards the problem already discussed (couldn't find anything so far though) would be highly appreciated!
I'm having trouble accessing the data selected in an editable region before I'm going to save the page through db_persist (in the backend, with theming of content_form.html).
What I'm trying to do is to merge the data in k_page_title with k_page_name of the related page to create k_page_name of the new page.
- Code: Select all
<cms:related_pages 'related_region' >
<cms:set is_corporate="<cms:show k_page_name />" 'global'/>
</cms:related_pages>
This doesn't yield anything. Adding "frm_" as one would do with the regular inputs leads only to a complaint, as "frm_editable_region" is not a defined relation.
If I'm saving the page again - since by then the relation is set - the new k_page_name is properly build together - but that's of course not how it should work. Any help or direction towards the problem already discussed (couldn't find anything so far though) would be highly appreciated!