Hello KK,
I am trying to delete cloned pages programmatically at the front-end using the following code:
So far the deletion is happening as should but the flash message is not setting. I need the flash message to set a json output. Can you kindly hep me with what could be the cause? Thank you
NB: I did not use a form for the action
I am trying to delete cloned pages programmatically at the front-end using the following code:
- Code: Select all
... <cms:set this_template_link=k_template_link 'global' /> <cms:if deletePgIsSet > <cms:set my_action="delete_page_<cms:show deletePgID />" /> <cms:set action_nonce="<cms:create_nonce my_action />" /> <cms:set validate_nonce="<cms:check_nonce action="<cms:show my_action />" nonce="<cms:show action_nonce />" />" /> <cms:if validate_nonce > <cms:db_delete masterpage='events.php' page_id=deletePgID /> <cms:if k_success > <cms:set_flash name='submit_success' value='1' /> <cms:redirect url="<cms:show this_template_link />" /> </cms:if> </cms:if> </cms:if> ...
So far the deletion is happening as should but the flash message is not setting. I need the flash message to set a json output. Can you kindly hep me with what could be the cause? Thank you
NB: I did not use a form for the action