How to change alfresco landing page

Do you wanna change the landing page for your alfresco i tested this on 4.0 and 5.0 and this work in this way, you have just to modify the file in this directory


and modify the row where you read

// redirect to site or user dashboard as appropriate

below an example of site-index.jsp to use as landing page the repository page

<%@ page import="*" %>
<%@ page import="*" %>
<%@ page import="*" %>
<%@ page import="*" %>
<%@ page import="java.util.*" %>
<% // retrieve user name from the session String userid = (String)session.getAttribute(SlingshotUserFactory.SESSION_ATTRIBUTE_KEY_USER_ID); // test user dashboard page exists? RequestContext context = (RequestContext)request.getAttribute(RequestContext.ATTR_REQUEST_CONTEXT); if (!context.getObjectService().hasPage("user/" + userid + "/dashboard")) { // no user dashboard page found! create initial dashboard for this user... Map tokens = new HashMap();
tokens.put("userid", userid);
FrameworkUtil.getServiceRegistry().getPresetsManager().constructPreset("user-dashboard", tokens);

// redirect to site or user dashboard as appropriate
String siteName = request.getParameter("site");
if (siteName == null || siteName.length() == 0)
// forward to user specific dashboard page
// response.sendRedirect(request.getContextPath() + "/page/user/" + URLEncoder.encode(userid) + "/dashboard");
response.sendRedirect(request.getContextPath() + "/page/repository");
// forward to site specific dashboard page
//response.sendRedirect(request.getContextPath() + "/page/site/" + URLEncoder.encode(siteName) + "/dashboard");
response.sendRedirect(request.getContextPath() + "/page/repository");

A Simple Guide to Creating Social Media Sharing Button in HTML

The first things is a create a button using an image (here you can download some amazing button) under an example of clickable button with using HTML code

<a href=”#”><img src=”social.png”></a>

A Visual Example of clickable button

Now the last thing to do a to use the API of every single social to create the share event, in the button create previously you have to add in href section the below URL for Every Single Social
where you will see <SITE> is your URL to share, <TITLE> is the title to insert into the share(where is allow), <TAG> Used to TAG your Page

Pinterest javascript:void((function()%7Bvar%20e=document.createElement(‘script’);e.setAttribute(‘type’,’text/javascript’);e.setAttribute(‘charset’,’UTF-8′);e.setAttribute(‘src’,’’+Math.random()*99999999);document.body.appendChild(e)%7D)());

Example of HTML code with Google+

<a href=””><img src=”/images/google.png”></a>

Here a clickable button

now finally you have a new one cool share button for the most popular social in the world

AN ADVISE: if you use this button into an email(for example into a newsletter) some email provider can report it as spam or phishing mail, to get around this problem i ussually shorten the URL above with site like