AnsweredAssumed Answered

Recover hybrid page Alfresco Share

Question asked by pat9rv3sousa on Nov 2, 2015
Latest reply on Nov 12, 2015 by ddraper
I created a new page Aikau, but, I changed the XML file and disappeared the page content rendered between the standard Share header and footer.

In this page, I want the arguments of the query string, so I make this code:


page.get.desc.xml:

<webscript>
    <shortname>My New Page</shortname>
    <url>/hdp/ws/my-new-page</url>
    <authentication>user</authentication>
</webscript>

page.get.js:

function main ()
{
    // Get the args
    var fileProp = args["test"];

    model.temp = fileProp;
}

main();

page.get.html.ftl:

Test arg: ${temp}

I have to put "/hdp/ws/my-new-page" in the XML file to write the content of FTL file in this page… But why disappeared the header and footer of the Alfresco template? "hdp" serves for this purpose. And if I don't put the URL like that on the XML, the page appears with the template. What is wrong in my code? Or how can I recover the template?

Outcomes