Hi all,
I am trying to print a simple alert in login.get.html.ftl file using JQuery.So,I have added the following code
<@markup id="js">
<#-- JavaScript Dependencies -->
<@script src="${url.context}/res/components/guest/login.js" group="login"/>
<script type="text/javascript">
$(document).ready(function () {
alert('This is login page');
});
</script>
</@>
But the alert is not working.plz guide me if I am missing anything.
Thanks and Best Regards
Ayushi Agrahari
It seems that you are trying to extend login page of alfresco.For overrind ftl in alfresco you need to do some other configurations as well.Below link will help you in same.Alfresco share is build on yui and aikau ,its better to use any of this instead of jquery.
Did you confirm that your markup is actually showing up on the login page? I assume it is not if you are not seeing your alert.
Where did you make this change exactly and how did you package it up and deploy it?
In addition to what Krutik pointed you to you might also look at this add-on, which adds announcements to the login page: GitHub - jpotts/share-announcements: Alfresco add-on that allows system announcements to be managed ...
That might give you an idea of how to extend the page with your own markup.
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.