on 11-28-2017 12:58 AM
I created a new project in my workspace using the "New Project from Template".
I used the "SAP Cloud Platform Portal" category under the "Template Selection" tab. Then the "Basic Layout Set" under the "Site Template Creation" tab.
After creating the project, no additional codes or configurations were made. I just simply run it. I run it as as "Preview Site as Template". It always display this error in my screen and in my console, please see screenshots below.
Do I need to configure something or change a code in my project?
Hi Vincent,
Thanks for reporting this issue - I passed it on to the Portal dev team.
Problem seems to be related to the loading of the defined home page. In the meantime you can bypass it by changing the defined home page (from page6 to page5).
In your site template project open <project name>/<site template name>/ pages/page6.json and cut out the home page definition
,
"1": {
"semanticObject": "Home",
"action": "show"
}
Open <project name>/<site template name>/ pages/page5.json and paste it there. The files should look like this:
then run the preview again. Should work properly this time.
Regards, Ido
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vincent,
If you apply the workaround to page1 (instead of page 5 as I advised) you will get the Header-Footer page.
You can also change the menu structure to point to page1: under <project name>/<site template name>/ Menus/menu.json:
{
"_version": "1.0",
"identification": {
"id": "menu.json",
"entityType": "menu",
"i18n": "i18n/menu.properties"
},
"payload": {
"locked": "false",
"tags": [],
"entities": [{
"title": "Header Footer",
"target": {
"semanticObject": "page1",
"action": "Display"
},
"entityType": "PAGE"
}]
}
}
The screen shot isnt updated - you will not see the "An empty section" caption in the Web IDE preview, that will be available in the portal site designer.
Regards, Ido
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ido,
Thanks for providing a workaround. It works fine and no error. However, i was expecting a different result.
I was following the exercise document provided in week 3 of the course "Building Portal Sites on SAP Cloud Platform".
link: https://open.sap.com/courses/portal1
filename: "openSAP_portal1_Week_3_Exercise.pdf"
The screenshot from the exercise document is different from my actual output. Is this expected since we change something in the code? Or the screenshot from the exercise document is an old version and needs to be updated?
From the exercise document:
Actual output when running as preview as template:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ido.shemesh
aviad.rivlin
Can you please assist?
Thanks,
Michal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.