Creating Site using Webscript

cancel
Showing results for 
Search instead for 
Did you mean: 
EddieMay
Alfresco Employee

Re: Creating Site using Webscript

Hi @piyush48,

I don't think you can have whitespace in your site preset value

Aviva Dashboard

 It needs to be along these lines:

<preset id="site-dashboard">

Also, I think a preset has to be setup in Share site presets before you can start using it.

To test, can you swap "Aviva Dashboard" for "site-dashboard" and try your webscript again?

Thanks,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
piyush48
Established Member

Re: Creating Site using Webscript

Hi @EddieMay ,

Thanks for constantly helping me solving my issue.

I have tried and tested by changing Aviva Dashboard to site-dashboard but it still dont allow me to access customize site and also no dashboard is seen.

{
"sitePreset":"site-dashboard",
"shortName":"Aviva-Test1",
"title":"AvivaTestNew1",
"description":"Demo Aviva Site",
"visibility":"PRIVATE"
}

Please find the JSON value which i change as suggested.

 

Thanks,

Piyush

EddieMay
Alfresco Employee

Re: Creating Site using Webscript

Hi @piyush48,

It didn't work - that's a shame! 

OK, can you check what the presents are called in tomcat/webapps/share/WEB-INF/classes/alfresco/site-data/presets/presets.xml - it could be that the default has been changed.

Thanks,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
piyush48
Established Member

Re: Creating Site using Webscript

Hii @EddieMay ,

I am using SDK 4.1 on my device, so please could tell me equivalent path for it because I didn't find tomcat anywhere.

 

Thanks,

Piyush

piyush48
Established Member

Re: Creating Site using Webscript

Hi @EddieMay ,

I got the path in my SDK in share in sitedata but there is no file called presets.xml. So would i have to create one and check??

 

 

Thanks,

Piyush

EddieMay
Alfresco Employee

Re: Creating Site using Webscript

Hi @piyush48,

The file should be there at tomcat/webapps/share/WEB-INF/classes/alfresco/site-data/presets/presets.xml. I've just expanded the share.war file that comes with the community 6.2 distribution zip & that's where I found presets.xml.

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!
piyush48
Established Member

Re: Creating Site using Webscript

Hi @EddieMay ,

I am Using SDK 4.1(Enterprise edition) but didnt found any presets.xml on path C:\Users\ABCD\alfresco.contentservices\project\project-acs-share\src\main\resources\alfresco\web-extension\site-data\extensions which is path for presets.xml right??

 

Thanks,

Piyush

piyush48
Established Member

Re: Creating Site using Webscript

Hi @EddieMay , @sanjaybandhniya , @abhinavmishra14 ,

 

I think i have similar Problem as given in below link as i cannot access customize site page and my noderef is not getting this page i think. I have same issue as him if anyone of you could help me out.

https://hub.alfresco.com/t5/alfresco-content-services-forum/i-am-can-not-goto-dashboard-of-site/td-p... 

 

Thanks,

Piyush

sanjaybandhniya
Intermediate

Re: Creating Site using Webscript

You can use alternate way  to create site.  api-explorer 

piyush48
Established Member

Re: Creating Site using Webscript

hii @sanjaybandhniya ,

I have requirement to create it through dynamic Abstract webscript.

 

Thanks,

Piyush