Hello, boys and girls!
I'm using
Testing my code for searching which the problem could be, I have found out that the issue is the delete option I have, using:
My question is why is this happening? Is something wrong with my implementation? Is there any other way of deleting pages from front-end?
I'm using
- Code: Select all
<cms:pages masterpage='members/folders.php' custom_field="idyear=id(<cms:show k_page_id />)" show_future_entries='1'>
Testing my code for searching which the problem could be, I have found out that the issue is the delete option I have, using:
- Code: Select all
<div id="delete-modal-<cms:show k_page_id />" class="mfp-hide white-popup-block"><!-- Start delete-modal -->
<cms:form
masterpage=k_template_name
mode='edit'
page_id=k_page_id
method='post'
anchor='0'
>
<cms:if k_success>
<cms:db_delete_form />
<cms:redirect url="<cms:show k_site_link/>members/years.php?p=<cms:gpc method='get' var='p' />" />
</cms:if>
.........
.........
</cms:form>
</div><!-- End delete-modal -->
My question is why is this happening? Is something wrong with my implementation? Is there any other way of deleting pages from front-end?