AnsweredAssumed Answered

Creating an empty custom view

Question asked by Brad Foster on Jan 6, 2017
Latest reply on Jan 6, 2017 by sidhu sidhu

How can I create a new page in 7.8.  I can do it using end points but they will be depreciated so I want to do it using sidecar.


I think I have to create a new route. http://<sugar>/:module/custom_layout/:id

In the callback for my route I can load a layout, but it always has the sugar header and footer....I dont want these, I just want a new page to work with.


I can use this to get rid of them, but it only hides them...


Then to get some data into the page I have to create a REST v10 endpoint and call that to get the data and I can just use jquery to create the html?


I think I should be using the layouts and views instead, but i'm not sure how to get the data from the ID and put that into the view. Can anyone give a code example?