Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: normalized documentation of modifying css.jsp

...

This portlet depends on the Fluid Skinning System (fss). Alas, Liferay 5.2 SP3 doesn't make the Fluid Skinning System CSS available, and the Resource Server version in the trunk of the portlet doesn't either, so this portlet needs to be modified to explicitly include these files.

In order for it to be able to reference these CSS files, the fss files must be included in the portlet-local resources directory.

Step 1:

...

  • Navigate to and open the css.jsp file. This file is located in the Calendar portlet.
    • Source Location: CalendarPortlet/trunk/src/main/webapp/WEB-INF/jsp/css.jsp
  • Add the code snippet depicted in figure 1 to your css.jsp file. 

...

Update dependency on Resource Server to get a later version

In pom.xml, update this:

Code Block
xml
xml

<properties>
    	<!-- INSTRUCTIONSDependency |versions The-->
below code snippet should be placed just below the include.jsp directive
| and above the tag that links to the calendar.css file.
-->
<c:set var="RESOURCE"><rs:resourceURL value="/rs"/></c:set>
<link rel="stylesheet" href="${RESOURCE}/fluid/1.1.2/fss/css/fss-layout.css" type="text/css"></link>
<link rel="stylesheet" href="${RESOURCE}/fluid/1.1.2/fss/css/fss-text.css" type="text/css"></link>

...

Step 2: Place fluid css resources in rs directory.

...

 	<cas.version>3.1.8</cas.version>
    	<hsqldb.version>1.8.0.7</hsqldb.version>
    	<resource-server.version>1.0.5</resource-server.version>

to declare the latest version as of this writing, 1.0.9, of resource-server, rather than the 1.0.5 there currently.

Code Block
xml
xml

<properties>
    	<!-- Dependency versions -->
    	<cas.version>3.1.8</cas.version>
    	<hsqldb.version>1.8.0.7</hsqldb.version>
    	<resource-server.version>1.0.9</resource-server.version>
Step 2: Use the Fluid Skinning System that will now be available
  • Navigate to and open the css.jsp file. This file is located in the Calendar portlet.
    • Source Location: CalendarPortlet/trunk/src/main/webapp/WEB-INF/jsp/css.jsp

Before:

Code Block
xml
xml

<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>
<link rel="stylesheet" href="<c:url value="/css/calendar.css"/>" type="text/css"></link>

After:

Code Block
xml
xml

<jsp:directive.include file="/WEB-INF/jsp/include.jsp"/>

<!-- added for Liferay 5.2 SP3 compatibility -->
<c:set var="RESOURCE"><rs:resourceURL value="/rs"/></c:set>
<link rel="stylesheet" href="${RESOURCE}/fluid/1.1.2/fss/css/fss-layout.css" type="text/css"></link>
<link rel="stylesheet" href="${RESOURCE}/fluid/1.1.2/fss/css/fss-text.css" type="text/css"></link>

<link rel="stylesheet" href="<c:url value="/css/calendar.css"/>" type="text/css"></link>

Map roles

Enable Calendar Administration

...