cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 5.0b Community version (Share page creation)

ashwinis
Champ in-the-making
Champ in-the-making
Hi,

I've created share pages using Aikau Page-creator tool and exported the template, descriptor and controller file.
When i deployed the same files under tomcat, share, web-extension folder, i couldn't see the page contents (http://localhost:8080/share/page/FirstPage).
Can anyone please tell me how to it works if i use Aikau?

3 REPLIES 3

ddraper
World-Class Innovator
World-Class Innovator
First of all you need to ensure that you have created the following directory structure in the Data Dictionary: "ShareResources/Pages" (this needs to be 100% accurate or the pages won't be created). When you want to view the page you need to access /share/page/hrp/p/<page name> (for hybrid view that includes the header and footer) or /share/page/rp/p/<page name> for full page view (without the header and footer). Also, be aware that the page renderer does a search for the page name so there may be some eventual consistency issues with Solr in that the page might not be immediately available (keep refreshing until Solr indexes the new page node).

It's worth bearing in mind that the page creator isn't a product feature and is just a prototype/developer tool to showcase some of Aikau's capabilities.

ashwinis
Champ in-the-making
Champ in-the-making
Yes…I have followed the blogs and documentation to create pages, as u mentioned i have created the pages with the proper directory structure ("ShareResources/Pages") and am able to see the pages using /share/page/hrp/p/
But when i export (download) the files(descriptor xml, javascript, and template file) and place inside the tomcat/share/web-extension/site-webscripts folder, I couldn't access those page.
using http://localhost:8080/share/page/firstPage.

ddraper
World-Class Innovator
World-Class Innovator
The URL you're using is incorrect… it should be http://localhost:8080/share/page/hrp/p/<page name>, e.g. http://localhost:8080/share/page/hrp/p/firstPage. You can review the examples of this being done in the Summit sessions from 2013 and 2014:
* https://www.youtube.com/watch?v=3u-KMa4YUSo
* https://www.youtube.com/watch?v=Yy_9q-FBfcE