Showing posts with label xml Recover hybrid page Alfresco Share. Show all posts
Showing posts with label xml Recover hybrid page Alfresco Share. Show all posts

Recover hybrid page Alfresco Share

Wednesday, November 4, 2015

I've created a new page Aikau, but I changed the XML file and the rendered page content between the standard Share header and footer disappeared.



In this page, I want the arguments of the query string, so I write 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 did the header and footer of the Alfresco template disappeared ? 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?