cancel
Showing results for 
Search instead for 
Did you mean: 

WCMQS - problem in importFileLocation of my new website

gawabe
Champ in-the-making
Champ in-the-making
Hi..
I am working on WCMQS in alfresco 3.4a…. Here QS dashlet in share will be used for importing the Quick Start website data into the Collaboration Share site…

Similarly, I need to import my own new external website (created using spring surf) in to share…
I saw webscript-context.xml in C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org_alfresco_module_wcmquickstart\ which is importing the file location by: <property name="importFileLocation" value="${wcmqs.importFileLocations}"/>

This value had imported a ACP file for WCMQS site (wcmquickstart.ACP) from C:\Alfresco\tomcat\webapps\alfresco\WEB- INF\classes\alfresco\module\ org_alfresco_module_wcmquickstart\ bootstrap\

Similarly I need to create a ACP file for my new external website. I saw the ACP import and export ways in : http://wiki.alfresco.com/wiki/Export_and_Import#Web_Client_Export_.26_Import_of_Folders_.26_Files .. These are all deals with a website which is created only by using a share. But is there any way to create a ACP file of an external website, so that I can import that ACP in to the Collaboration share and do content management using AWE?
6 REPLIES 6

bremmington
Champ on-the-rise
Champ on-the-rise
gawabe

I'm not sure I fully understand the question. Is it relating to how to create an ACP of your own website, or how to configure the Quick Start dashlet to load an ACP that is different to the default one?

gawabe
Champ in-the-making
Champ in-the-making
first thanks for a quick response..
yes…I need answer for the both questions. That is I need to know how to create a ACP file of my own new website and the second thing is, how to configure my new ACP to the Quick Start dashlet (to include my website to the share)?

bremmington
Champ on-the-rise
Champ on-the-rise
gawabe

OK. To take the question of how to create your own ACP first:

1. Load up the supplied ACP initially by using the Quick Start dashlet
2. Use Share to make changes that you want: rename the site, add and configure sections, assets, and asset collections as you require
3. Use the Explorer client to export the new structure that you've created as an ACP. The Quick Start ACP includes everything from the "Alfresco Quick Start" folder down, and this is probably a good pattern to follow

Now how to import your new ACP. One approach is simply to name your ACP file "wcmquickstart.acp" and place it in the same location on the classpath as the default one (in Tomcat this would be, for example, "shared/classes/alfresco/module/org_alfresco_module_wcmquickstart/bootstrap/wcmquickstart.acp"). The dashlet will then load yours instead of ours. The other option would be to place it somewhere else on the classpath, and alter the "wcmqs.importFileLocations" property to point to it.

Does that make sense?

gawabe
Champ in-the-making
Champ in-the-making
Hi..
Thanks for a brief and clear explanation…
As you said its working fine, if I am going to build up a website by updating the existing wcmqs sample (http://localhost:8080/wcmqs/) given by alfresco. So that I can change them in share and export it as an ACP and work on it…

But my question is: I had already built a website from scratch using spring surf concepts by following http://www.springsurf.org/sites/1.0.0.M3/spring-surf-devtools/spring-surf-roo-addon/reference/html/b...

Now is there any way to import this new website to share through a dashlet (like WCM Quick start website was imported through a dashlet). So that whatever changes made through share will be reflected in the website…

bremmington
Champ on-the-rise
Champ on-the-rise
Sorry, no that isn't possible. Web Quick Start provides a foundation on which it is relatively simple to build a content-managed website using Alfresco and Spring. It doesn't offer a means to import an existing website into Alfresco for management. However, you may wish to use the Quick Start API to interact with content in the repository from your existing Surf webapp. The API is a separate JAR file named "alfresco-wcmqs-clientapi-x.y.z.jar". If you drop this JAR file (and its dependencies) into your Surf webapp (WEB-INF/lib) then Surf will automatically bootstrap it for you. Hopefully the wiki page here http://wiki.alfresco.com/wiki/Web_Quick_Start_Developer_Guide#The_Quick_Start_API will help.

gawabe
Champ in-the-making
Champ in-the-making
Thanks bremmington…