Copied to clipboard

Flag this post as spam?

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


  • TheOriginal 22 posts 122 karma points
    Apr 26, 2016 @ 15:30
    TheOriginal
    0

    Get page key with angular/js or c#

    I have created a custom datatype and a controller with a hand full of methods to retrieve data, I am now trying to get the data specified by the current pages GUID in the back end, anyone know how I could do this?

  • Dan Diplo 1554 posts 6205 karma points MVP 5x c-trib
    Apr 26, 2016 @ 19:04
    Dan Diplo
    0

    Can you use the integer ID instead of the GUID? Because then in Angular you should be able to use the contentResource resource.

    If you have to use a GUID then you'd probably need to write a C# controller and use ContentService.GetById() which accepts a GUID.

Please Sign in or register to post replies

Write your reply to:

Draft