cancel
Showing results for 
Search instead for 
Did you mean: 

Recover hybrid page Alfresco Share

pat9rv3sousa
Champ on-the-rise
Champ on-the-rise
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?
4 REPLIES 4

pat9rv3sousa
Champ on-the-rise
Champ on-the-rise
bump. Anyone know? Or other way to make this?
I tried to make this on FTL:
 <@processJsonModel /> 

and this on JS:

model.jsonModel = {
        widgets: [{
            id: "SET_PAGE_TITLE",
            name: "alfresco/header/SetTitle",
            config: {
                title: "This is a simple page"
            }
        },
        {
            id: "MY_HORIZONTAL_WIDGET_LAYOUT",
            name: "alfresco/layout/HorizontalWidgets",
            config: {
                widgetWidth: 50,
                widgets: [
                    {
                        name: "alfresco/logo/Logo",
                        config: {
                            logoClasses: "alfresco-logo-only"
                        }
                    },
                    {
                      name: "example/widgets/TemplateWidget"
                    }
                ]
            }
        }]
    };


but I got the error: <cite> The "src" parameter to the "processJsonModel" directive must be provided. </cite>

ddraper
World-Class Innovator
World-Class Innovator
Have you read the Aikau tutorial on GitHub yet - this should help you get started with these basic issues: https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/Contents.md

pat9rv3sousa
Champ on-the-rise
Champ on-the-rise
I'm trying only add header and footer on this page. The /hdp/ws/ method not works for me because i lose the access of arguments of page and other things… Exists another way to add header and footer right? Any hint or idea how to make this ? One tutorial or anything… Please.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.