Hi i follow the turorial of Alfresco for customize the Login Share of Alfresco
Override Alfresco Share login page | Alfresco Documentation
I'm using a Alfresco 5.2 Community Edition, with SDK Alfresco 3.0.1
In my SDK 3 Alfresco Maven Share Project on the file:
[PROJECT_SHARE]/src/main/resources/alfresco/web-extension/share-config-custom.xml
with this piece of code xml:
<alfresco-config>
<!-- https://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-override-login-page.html -->
<!-- https://github.com/Alfresco/share/blob/master/share/src/main/webapp/WEB-INF/surf.xml#L32 -->
<config evaluator="string-compare" condition="WebFramework">
<web-framework>
<defaults>
<page-type>
<id>login</id>
<page-instance-id>service-custom-login/service-custom-login</page-instance-id>
</page-type>
<page-type>
<id>page.repository</id>
<!-- <page-instance-id>custom/repository</page-instance-id> -->
<page-instance-id>service-custom-repository</page-instance-id>
</page-type>
</defaults>
<!-- SpringSurf Autowire Runtime Settings -->
<!--
Developers can set mode to 'development' to disable; SpringSurf caches,
FreeMarker template caching and Rhino JavaScript compilation.
-->
<autowire>
<!-- Pick the mode: "production" or "development" -->
<mode>production</mode>
</autowire>
<!-- Allows extension modules with <auto-deploy> set to true to be automatically deployed -->
<module-deployment>
<mode>manual</mode>
<enable-auto-deploy-modules>true</enable-auto-deploy-modules>
</module-deployment>
<use-checksum-dependencies>true</use-checksum-dependencies>
<generate-css-data-images>true</generate-css-data-images>
</web-framework>
</config>
</alfresco-config>
It's work but when i try to make the same thing in a extension Share for disable/enable runtime, here the code :
[PROJECT_SHARE]/src/main/resources/alfresco/web-extension/site-data/extensions/service-custom-login-extension.xml
<extension>
<modules>
<module>
<id>service-custom-login-extension</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<configurations>
<config evaluator="string-compare" condition="WebFramework">
<web-framework>
<defaults>
<page-type>
<id>login</id>
<page-instance-id>service-custom-login/service-custom-login</page-instance-id>
</page-type>
</defaults>
</web-framework>
</config>
</configurations>
</module>
</modules>
</extension>
but this second one seem not to work.
Anyone can explain me why?
Please, make sure that you have placed each file at the right place.
Regards,
Kintu
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.