Foren

How to select a specific page in liferay Theme to design its content

thumbnail
alex alex, geändert vor 6 Jahren.

How to select a specific page in liferay Theme to design its content

New Member Beiträge: 24 Beitrittsdatum: 15.02.17 Neueste Beiträge
Hello all,
Please I need your help guys

Im developing a liferay 6.2 theme, this theme has many pages and their webcontents are stored in the Database.
So I need to improve its design.
My problem is that many page have the same contents( divs with same of class) and each page have her specific design.
So when I change the design for one page , The others will changes and I don't want it like this.
I need to specify each page from other , Like this I could apply for each page its Css design.

Any Suggestion Please !!!

Thanks for help
thumbnail
Manish Yadav, geändert vor 6 Jahren.

RE: How to select a specific page in liferay Theme to design its content

Expert Beiträge: 493 Beitrittsdatum: 26.05.12 Neueste Beiträge
alex alex:
Hello all,
Please I need your help guys

Im developing a liferay 6.2 theme, this theme has many pages and their webcontents are stored in the Database.
So I need to improve its design.
My problem is that many page have the same contents( divs with same of class) and each page have her specific design.
So when I change the design for one page , The others will changes and I don't want it like this.
I need to specify each page from other , Like this I could apply for each page its Css design.

Any Suggestion Please !!!

Thanks for help



You can create different themes or you can create theme configurable using settings tag.
You can enable and disable conditions in page configuration
Create separate css class for those pages and in velocity tag add conditions to add or remove those page.

Below links may help

https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/making-themes-configurable-with-settings
http://proliferay.com/liferay-theme-settings/
thumbnail
Olaf Kock, geändert vor 6 Jahren.

RE: How to select a specific page in liferay Theme to design its content

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
My problem is that many page have the same contents( divs with same of class) and each page have her specific design.
So when I change the design for one page , The others will changes and I don't want it like this.
I need to specify each page from other , Like this I could apply for each page its Css design.


Can you give us same example as to what "specific" means?

If you require "a different design" for every page, this can be anything, from simple background color (but same overall appearance) to completely different CI.

You probably know that you can select a specific theme for every single page in Liferay, right?
thumbnail
alex alex, geändert vor 6 Jahren.

RE: How to select a specific page in liferay Theme to design its content

New Member Beiträge: 24 Beitrittsdatum: 15.02.17 Neueste Beiträge
Hi ,
thanks for you reply.
Example to understant me.
I had 3 pages : Page1, Page2 and Page3. all of them contain :
<div class="class10"> //some content here</div>
.
I want design the div in page1 with red,in page2 with green and in page3 with blue.
When I make in the custom.css file:
 div.class10{background: red;} 
all my content of three page will be red.
I need exactly a solution for this .
thumbnail
Christoph Rabel, geändert vor 6 Jahren.

RE: How to select a specific page in liferay Theme to design its content

Liferay Legend Beiträge: 1554 Beitrittsdatum: 24.09.09 Neueste Beiträge
Liferay has a color theme feature.
https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/specifying-color-schemes