Sunday, April 8, 2012

Dynamic Content using tours

Today I'll show you a solution using jquery to show dynamic content in a great way... First, take a look to this demo, this plugin encourages our content through tours. This type of animation can be achieved using a path that we created a very simple.

It uses mostly CSS effects to work but in case the browser does not support those effects this plugin disable them.

This is a example code :
$(".your-container-element").scrollPath({
drawPath: true,
wrapAround: true,
scrollBar: false,
callback: function() {
alert("You've reached the end!");
}
});

Here you can find a very good documentation for this plugin and also the source

Monday, March 26, 2012

OldServiceComponentException: Build namespace ...

When you re build your service.xml in your portlet plugin project, sometimes you'd find this error:

Caused by: com.liferay.portal.OldServiceComponentException: Build namespace

The way to fix it is edit your service.properties and change the value of this line: build.number to the one the exception told you it should be!

and that's all, friends.