Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Peter Hellstrand
Creating new theme
February 25, 2012 3:35 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

Hi

I am trying to create a new theme.

1<project name="red-theme" basedir="." default="deploy">
2    <import file="../build-common-theme.xml" />
3    <property name="theme.parent" value="_styled" />
4</project>


Where can i find the markup for my themes parent. This was genereted on my page by default .

1<div id="heading"> <h1 class="site-title"> <a class="logo default-logo" href="http://localhost:8080/web/guest/home?p_auth=l3gk3SmD&amp;p_p_auth=a3HPqkJk&amp;p_p_id=49&amp;p_p_lifecycle=1&amp;p_p_state=normal&amp;p_p_mode=view&amp;_49_struts_action=%2Fmy_sites%2Fview&amp;_49_groupId=19&amp;_49_privateLayout=false" title="Go to Liferay"> <img alt="Liferay" height="76" src="/image/company_logo?img_id=0&amp;t=1330166879107" width="209"> </a> </h1> <h2 class="page-title"> <span>Welcome</span> </h2> </div>


Where can i find the markup for this? All of my *.vm files was is emtpy. K know i should create my own to override the default markup but the question is realy what to overrride.


Say that I want to add another div
1<div id="heading2">
under the one I already have. Where/how can I do this.


Also I can only find a "init_custom.vm" in my file structure. Shouldn't "init.vm" be there with all the default velocity variables?

Hope you can help me get started.

Thanks.
Attachment

Attachments: Screen Shot 2012-02-25 at 12.34.34 PM.png (29.5k)
ecomware .com
RE: Creating new theme
February 25, 2012 10:56 AM
Answer

ecomware .com

Rank: New Member

Posts: 5

Join Date: September 6, 2009

Recent Posts

The default file, _styled.vm, is in the Liferay root.
Peter Hellstrand
RE: Creating new theme
February 26, 2012 12:15 AM
Answer

Peter Hellstrand

Rank: Regular Member

Posts: 167

Join Date: November 30, 2011

Recent Posts

Thank you.