Copied to clipboard

Flag this post as spam?

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


  • Aki 43 posts 214 karma points
    Jan 18, 2017 @ 15:31
    Aki
    0

    back office Naviation and routes

    hi :)

    Im trying to make a package that is used from backoffice.. I already have the ApiController : UmbracoAuthorizedJsonController working and the Associated JS, html and Manifest files..

    My problem is that i can't figure out how to hook my Resource.Js in to Backoffice navigation

    what i have so far..

    angular.module("umbraco").controller("shortcut.createController",
    function ($scope, $routeParams, shortcutResource, notificationsService, contentResource, entityResource, dialogService) {
        $scope.Name = "";
    
        $scope.Create = function () {
    
            var ShortcutGroup = { id: null, Title: $scope.Name, ShortcutList: "" };
            shortcutResource.Create(ShortcutGroup, created);
        }
    
    
        var created = function (Num) {
    
            dialogService.hideDialog(true);
            $location.path('/Umbraco#/Website/shortcuts/edit/' + Num);
        }
    });
    

    i want to be able to Navigate to a target page. when the callback i triggered, but i cant find any guides online... can some one please point me in the right direction?

    thanks again. Aki <3

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 8x admin c-trib
    Aug 01, 2017 @ 11:54
    Alex Skrypnyk
    100

    Hi Aki

    You don't need to path "/Umbraco" again, use location like that:

    $location.path('/Website/shortcuts/edit/' + Num);
    

    Thanks,

    Alex

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies