Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bertan ULUSOY
Changing Look & Fell of Liferay Portal Project
February 2, 2012 10:09 PM
Answer

Bertan ULUSOY

Rank: New Member

Posts: 3

Join Date: January 31, 2012

Recent Posts

Hi,

I want to ask for changing look and fell for my portal project. For example main page...

I have html, css, and javascript. I read many documents about hooks project from Liferay site(and also pdf docs), but I could't reach any solution.

I don't want to change any portlet, I want to change interface of my portal sites.

Could you please help me.
David H Nebinger
RE: Changing Look & Fell of Liferay Portal Project
February 3, 2012 6:06 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7230

Join Date: September 1, 2006

Recent Posts

Read about the theme projects. You can develop the styles for how the pages should look w/o touching the portlets.
Cameron McBride
RE: Changing Look & Fell of Liferay Portal Project
February 3, 2012 6:18 AM
Answer

Cameron McBride

Rank: Expert

Posts: 273

Join Date: February 8, 2011

Recent Posts

If you just want to check out some themes that are already created then Liferay already has 65+ themes ready to go. Check out this page to download some of them:
Liferay Themes

If you are wanting to develop your own themes then you might want to review the Liferay theme wiki page and this theme pdf:
Liferay Themes Wiki
Liferay Themes PDF
Bertan ULUSOY
RE: Changing Look & Fell of Liferay Portal Project
February 13, 2012 9:11 PM
Answer

Bertan ULUSOY

Rank: New Member

Posts: 3

Join Date: January 31, 2012

Recent Posts

I changed Look & Feel(Theme) with creating a Theme project, but I don't want to use apache velocity(.vm) files to do that.

Is there a way to change everything in a page with changing JSP pages. For example with a hook or ext project.
Subhasis Roy
RE: Changing Look & Fell of Liferay Portal Project
February 14, 2012 1:44 AM
Answer

Subhasis Roy

Rank: Regular Member

Posts: 234

Join Date: January 19, 2012

Recent Posts

You can change the look and feel with theme only. There is no need to write hook or ext because you are not customizing any functionality or you are not trying to modify an existing functionality.

Can you be more specific that what you are looking for. Because if you have already made your theme then is should change the look. And if you are talking about any drop down which should dynamically be created(As per your child page). Then you need to write the logic in the vm templates.
Bertan ULUSOY
RE: Changing Look & Fell of Liferay Portal Project
February 14, 2012 8:54 PM
Answer

Bertan ULUSOY

Rank: New Member

Posts: 3

Join Date: January 31, 2012

Recent Posts

Hi Subhasis Roy,

I did it with Theme project. It is working. There is no problem at that point.

Okay, if I have to use velocity files in Theme projects, then I have a question about velocity variables;

How a velocity variable find its value? For example, $company_name... I know that its value comes from database, but how?

Are they populate their values from database directly? I don't think so.

I need to change their values programmatically, or I need to create my velocity variables.
Raja Nagendra Kumar
RE: Changing Look & Fell of Liferay Portal Project
February 14, 2012 9:05 PM
Answer

Raja Nagendra Kumar

Rank: Expert

Posts: 484

Join Date: March 1, 2006

Recent Posts

You need to create custom velocity variables for you data

http://www.liferay.com/community/wiki/-/wiki/Main/Custom+Velocity+Variables
http://www.e-kon.be/blog/item/how-to-set-and-use-custom-velocity-variables-in-liferay

By default liferay creates few variables and its values filled from liferay DB
All the predfined available are listed at (these are not the latest doc but do have a good detailed list)

http://content.liferay.com/4.3/misc/theme-api-4.3.0.html

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com