Creato da pastuweb.com
Share My Page
My Social Accounts
Account FaceBook Account LinkedIn Account Twitter Account Google Plus Account Git Hub

First of all, you have to create a Hook Project.

Then:

  1. Add a New Liferay Hook (click on right on the project, New, Liferay Hook)
  2. Check "Cusotm JSPs"
  3. In the next window click on "Add from Liferay..."
  4. Now choose: "html/common/themes/top_js-ext.jsps" anc click on Finish

liferay-hook.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hook PUBLIC "-//Liferay//DTD Hook 6.1.0//EN" "http://www.liferay.com/dtd/liferay-hook_6_1_0.dtd">
 
<hook>
<custom-jsp-dir>/WEB-INF/custom_jsps</custom-jsp-dir>
</hook>

 

top_js-ext.jsps

<%--
/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */
--%>
 
<!-- jQuery -->
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css">
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
 
<!-- API Google Maps -->
<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css"
rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
 
<!-- API Google Charts -->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
 
Then you can:
Liferay -> SDK -> clean
Liferay -> SDK -> compile
Liferay -> SDK -> war
 
 
You can find the source code of Pasturenzi Hook on My Public GitHub Repositoryhttps://github.com/pastuweb/java-liferay.appuntivari.net/tree/master/Pasturenzi-hook
Average (1 Vote)
The average rating is 5.0 stars out of 5.