01-19-2018 06:04 AM
Hi,
i have succed to add a new theme with alfresco sdk 2.
i need to upgrade to sdk 3.0.1
I understand (but i may be wrong) that src/main/amp/web directory of my sdk 2 project, moves to src/main/assembly/web directory of my project-share-jar :
But what about src/main/amp/config ?
I have updated share-jar pom file like this :
and platform-jar like this :
but i'm not sure it's right.
Thx in advance for your help !
01-22-2018 05:27 PM
The src/main/amp/config is the equivalent to src/main/resources
01-23-2018 03:32 AM
Hi,
thank you for your answer.
I did it but it doesnt work. I think ithe poblem is in my POM files but i don't find.
And what about project/runner/tomcat/context-share.xml ? (Runner module doesn't exist anymore with SDK 3)
Adding a custom Share Theme | Alfresco Documentation
Thx
01-23-2018 11:41 AM
Using SDK 3.0, you don't have to configure the overlays.
All you have to do is to include a moduleDependency, as you already did.
Try this... add the parameter <type>amp</type> inside of your moduleDependency.
01-24-2018 06:09 AM
It doesn't work BUT after reading this doc (Working with AMPs | Alfresco Documentation ) and my main POM.xml, i think i was wrong.
So this is what i have done :
- In my platform-jar and share-jar POM files : i have deleted all my modifications in <build> section (as if i start a new AIO sdk3 project).
- In my main POM file i have uncommented the plugin section about "maven-assembly-plugin".
- In my main POM file in <shareModules> section i have added <type>amp</type> as you ask me, and i have added another <moduleDependency> for Javascript Console like mentioned in the doc.
It doesn't still work BUT it's in progress 🙂
I find my custom theme in Tomcat !
I think it's a config issue .
The config folder is in src/main/resources folder.
After reading README.md file located in src/main/assembly/web folder, i move config folder in /src/main/resources/META-INF/resources/klinck-share-jar/ l.
But without success.
Thx in advance
01-24-2018 06:46 AM
Well, it seems you are doing everything right, but when you say it does not work, what do you mean?
Do you see your client side files deployed?
Is there any error message in the logs?
It is starting to be hard to help you without "seeing" what you are doing.
Is there any chance you can share your project?
01-24-2018 07:57 AM
Shame on me ! i have added files instead of update present files ... All is OK !
01-25-2018 04:47 AM
Hi,
sorry, i got an issue with images content. When i choose my custom theme i don't see logo on the site page, login page etc...
I don't have this problem with other standard theme.
I found this page :
and so i update my amp.xml like this :
I didn't change file-mapping.properties
Thx for your help
01-25-2018 06:41 AM
That is how I fixed it.
Have you tried to clean the browser cache?
01-25-2018 07:55 AM
Well done !! Thank you !!
Explore our Alfresco products with the links below. Use labels to filter content by product module.