Hi again!
Hoping to get some direction at least with this issue:
I would like to create a global editable which should serve as part of the code within a forms success, so that this could be edited later on directly in couch and not having to touch the files:
the global could have a value like this
This I would like to call upon in the success condition, so that the variable gets replaced with the inputted data from the form:
I tried different approaches here, various things of show'ing and get'ing, however all led to the richtext region "news_content" in 'test.php' showing exactly what I defined within the global ("There is a new job at <cms:show frm_new_job_at/>"). How do I get the variable working in this?
Hoping to get some direction at least with this issue:
I would like to create a global editable which should serve as part of the code within a forms success, so that this could be edited later on directly in couch and not having to touch the files:
the global could have a value like this
- Code: Select all
There is a new job at <cms:show frm_new_job_at/>
- Code: Select all
<cms:editable name='job_default_news_info' label="Displayed information" desc=""
height='100'
no_xss_check='1'
type='textarea'
/>
This I would like to call upon in the success condition, so that the variable gets replaced with the inputted data from the form:
- Code: Select all
<cms:set default_news_content="<cms:get_global 'job_default_news_info' />"/>
<cms:capture into='news_content'>
<cms:show default_news_content/>
</cms:capture>
[...]
<cms:db_persist
_masterpage='test.php'
_mode='create'
_separator='|'
_invalidate_cache='0'
_auto_title='0'
k_page_title='Job opportunities at X'
news_content=news_content
additional_actions=actions
/>
I tried different approaches here, various things of show'ing and get'ing, however all led to the richtext region "news_content" in 'test.php' showing exactly what I defined within the global ("There is a new job at <cms:show frm_new_job_at/>"). How do I get the variable working in this?