Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've created a custom data type with a dropdown and a button that copies a node from a general data node to another node (overview node).
Now what I'm trying to do is once the page is copied, I want to load that page in the main container, like open the node to edit the content.
Does anyone know how to do this, and is it possible to do this without getting the discard changes or cancel message in the bottom of the screen?
Perhaps the navigationService and $location.path(SectionTreeMethodIdUrl) to load the new node, and investigate the 'noDirtyCheck' directive to discard changed status checks.
Thank you MB, this worked.
I ended up adding no-dirty-check to the select html tag in the view.
And after that I added $location.path(responseLocation); where let responseLocation = "/content/content/edit/" + response.data.Id; in the Angular controller in the post response function of my API which runs after the button press.
let responseLocation = "/content/content/edit/" + response.data.Id;
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted