Hello All,
At the top of some pages, I have three html buttons for the options to 'go
to parent page', 'edit current', and 'delete current'.
go to parent page works fine when the document is first created. However if
someone tries to edit the page (which is necessary at some points) the
parent of the page is wiped when the page is saved again. i.e. on clicking
'Save & View' the parent value is wiped and set as the page itself. Any
ideas why this would be happening?
These are the buttons if there is something I am doing wrong here..
{{html}}
#if($context.action=="view")
<button style="width:100;height:65"
onClick="window.location='$doc.getParentURL()'">
<b>Back to Hub</b>
</button>
<button style="width:100;height:65"
onClick="window.location='$doc.getExternalURL('inline')'">
<b>Edit Current</b>
</button>
<button style="width:100;height:65"
onClick="window.location='$doc.getExternalURL('delete')'">
<b>Delete Current</b>
</button>
#end
{{/html}}
Thanks,
Adam