Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Koen van Ras 56 posts 361 karma points c-trib
    Dec 18, 2018 @ 08:49
    Koen van Ras
    0

    Load page by ID in the backoffice

    Hi,

    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?

  • MB 113 posts 422 karma points
    Dec 18, 2018 @ 13:11
    MB
    100

    Perhaps the navigationService and $location.path(SectionTreeMethodIdUrl) to load the new node, and investigate the 'noDirtyCheck' directive to discard changed status checks.

  • Koen van Ras 56 posts 361 karma points c-trib
    Dec 18, 2018 @ 14:00
    Koen van Ras
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft