cancel
Showing results for 
Search instead for 
Did you mean: 

Header and footer

pat9rv3sousa
Champ on-the-rise
Champ on-the-rise
I've created a new page that I call on the action button of the Alfresco in all files. So, I need this page on the "myfiles", "shared files" and "repository" tabs of alfresco. So, I put all URLs below on xml.

page.get.desc.xml:

<webscript>
    <shortname>My New Page</shortname>
    <url>/context/shared/my-new-page
    <url>/context/mime/my-new-page
    <url>/my-new-page</url>
    <authentication>user</authentication>
</webscript>

When I have this page only on "repository" I have only one URL on the XML below, and then, I make a GET request on the javascript client-side that requests hdp/ws/my-new-page, that gives to us the template (header and footer) to the page. However, with the other URLs like /context/shared/ and /context/mime/, if I try to get the page with hdp/ws/my-new-page,e.g,

localhost:8080/share/page/context/mime/hdp/ws/my-new-page
not works, gives the error 500.

Only if I get hdp/ws/my-new-page without the /context/mime/ and /context/shared/ is that I get the page and with template (header and footer). So, I remove hdp/ws/, to get the page in all tabs, but I want to have the template. How can I add the header and footer? Or another way to get the URL with hdp/ws/ with the other URLs ?

EDIT: I edit all the question because now I have the same problem but in a different situation…
2 REPLIES 2

ddraper
World-Class Innovator
World-Class Innovator
I'm assuming that you're trying to create an Aikau based page here as you're trying to use the hdp/ws/<page-id> URI token matching. What do you have in your page.get.js and page.get.html.ftl files? Have you read through the Aikau tutorial on GitHub (as this covers page creation):  https://github.com/Alfresco/Aikau/blob/master/tutorial/chapters/Contents.md

There is also an example of using the "hybrid" page approach that you're trying to use here: https://www.alfresco.com/blogs/developer/2013/02/21/simple-page-creation-in-share/

What is the message in the error 500 that you're seeing?

500 Don't find the page… Internet server error.
This sites help me. Thanks. Smiley Happy
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.