Foros de discusión

what to modify in New blank theme which brakes layout

thumbnail
Sasha Firsov, modificado hace 12 años.

what to modify in New blank theme which brakes layout

New Member Mensajes: 6 Fecha de incorporación: 7/04/11 Mensajes recientes
Using fresh installation of tomcat bundle, Plugin SDK and Eclipse.
The new theme war file compiled and deployed, theme is listed.
Bugs:
- No preview image.
- Broken layout(CSS?) once theme is chosen.

The theme has nothing customized and once applied, shall be identical to default one.
For magic reason it did not happen. The styling is broken apart and blocks lost their width making one long list of items instead of rectangular blocks.

Q. What shall be done on freshly created theme project to make it identical to default?
By the book, nothing emoticon

Thanks,
Sasha
thumbnail
Mika Koivisto, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
The default theme that comes from plugins sdk is based on _styled not classic. If you want to base your theme on classic (this is not recommended) you can change the base theme by editing build.xml of the theme plugin and set theme.parent property to classic like this:
<property name="theme.parent" value="classic" />
thumbnail
Sasha Firsov, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

New Member Mensajes: 6 Fecha de incorporación: 7/04/11 Mensajes recientes
Nor "classic" not "_styled" do not fix the issue. Layout still broken.

I would expect the freshly created theme to work immediately without any changes.
Obviously if no changes done, nothing should be changed after applying the theme.
Am I wrong in that expectation?

Definitely, the goal is modifying of this and that. But from working state and step by step. Issue is that there is no working start point.

May be I could take the source for one of existing themes and use it instead of SDK generated one? But than what is the point in generating of non-working project?

Could you recommend some theme which is closest to LifeRay default and could be used for incremental changes?

Thanks,
Sasha
thumbnail
Mika Koivisto, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
It works for me in trunk and has worked in past with various EE and CE versions. Which LR version are you using? Does your plugins sdk match your portal version?
thumbnail
Sasha Firsov, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

New Member Mensajes: 6 Fecha de incorporación: 7/04/11 Mensajes recientes
To make sure on clean PC I installed latest available SDK(liferay-plugins-sdk-6.0.5) and Tomcat bundles(liferay-portal-tomcat-6.0.6-20110225.zip )

The minor version mismatch is not a cause of problem. Same version has same issues with lost header layout.

liferay-plugins-sdk-6.0.6-20110225.zip
is not listed on LifeRay download page, need to get it from sourcefourge directly
Daniel Lipski, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

New Member Mensajes: 3 Fecha de incorporación: 13/04/11 Mensajes recientes
I have the samee issue.
New liferay installation (liferay-portal-tomcat-6.0.6-20110225.zip)
New sdk installation (liferay-plugins-sdk-6.0.6-20110225.zip)

No matter if I develop & deploy new theme with Liferay IDE (Eclipe) or directly with Liferay SDK. Problem is the same.

Screenchots in attachments.

Regards
Daniel Lipski
thumbnail
Mika Koivisto, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
The new theme looks like _styled. What value do you have in your build.xml for theme.parent? By default it is _styled and not classic.
thumbnail
Sasha Firsov, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

New Member Mensajes: 6 Fecha de incorporación: 7/04/11 Mensajes recientes
As has been mentioned, NO changes have been done after theme generation. Hence _styled is in place. The screenshots above are identical to mine.

I have tried to play and use "classic" along with copy of classic theme from tomcat folder. Does not help significantly. Only workaround was to alter velocity files directly in tomcat.
But it breaks the theme as deployable module idea emoticon

Is there a working theme project which could be used as base instead of generated one?
7Cogs does not look like one.
thumbnail
Mika Koivisto, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
Then in works just the way it is supposed to. _styled provides the minimal styling needed to get started with building your theme without you having to reset bunch of Liferay defined styles. Some theme designers even use _unstyled as their base because they want full control of how their theme looks like.

Now if you are like me not so good at styling you might want to start with an existing theme and just modify it slightly. You can do this by copying the custom.css of that theme and any extra images you need.
thumbnail
Sasha Firsov, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

New Member Mensajes: 6 Fecha de incorporación: 7/04/11 Mensajes recientes
NO, it is not suppose to break layout.

WHAT exactly I need to place in this custom.css and what images shall be in place? Just to make it work and do not break layout. Tried to dig over docs. Nothing in this regard.

Plain empty custom.css does not help.
thumbnail
Mika Koivisto, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
Try reading the theme development documentation here http://www.liferay.com/documentation/liferay-portal/6.0/development/-/ai/creating-liferay-themes-2. That should help you understand how to develop themes.
thumbnail
Ivano Carrara, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

Expert Mensajes: 345 Fecha de incorporación: 3/07/05 Mensajes recientes
Hi all!

To start from the Classic Theme and then apply some changes to it, proceed as follow:

- execute create newtheme "New Theme" from the themes subfolder of theLiferay's SDK.
- in the _diff folder, copy the entire structure from <TOMCAT_HOME>\webapps\ROOT\html\themes\classic LESS the _diff folder

Then you do an "ant all" command to deploy the newtheme-theme that it is identical to the Classic theme, or import the new Theme in the Liferay's Eclipse plugin and start with your changes ...

I hope helps...

Ivano C.
Bradley Wood, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

thumbnail
archana thakur, modificado hace 11 años.

RE: what to modify in New blank theme which brakes layout

Junior Member Mensajes: 27 Fecha de incorporación: 13/03/12 Mensajes recientes
I know about the actionUrl and renderUrl
But I want to know Where I can use exactly ?
when we go through actionURL and renderURL?
thumbnail
Ajeykumar HB, modificado hace 11 años.

RE: what to modify in New blank theme which brakes layout

Junior Member Mensajes: 72 Fecha de incorporación: 13/03/12 Mensajes recientes
archana thakur:
I know about the actionUrl and renderUrl
But I want to know Where I can use exactly ?
when we go through actionURL and renderURL?


Hi Archana!..

There are three different types of portlet URLs:
1.Render URL —Used to ask a portlet instance to generate markup (like HTML,XML, WML) based on its current state. For example This URL you can use when if you want to go to next jsp page from current jsp page with out executing action class (linking hyper link etc). and also one more example if you want execute render method of action class you can use Render URL.

2.Action URL —Used for action processing, which results in a state change on the server. The request sent to the portlet by an action URL is referred to as an
action request. For example if you want to submit some form to action class or if you want process your request, you go for action URL. After completing the execution of action method, render method will execute once again.

3.Resource URL —Used to render content or retrieve resources (like image files).Depending upon the application requirement, a resource URL may be used for
updating application state. The request sent to the portlet by a resource URL is referred to as a resource request. For example if you want some resource from server like(Document or some download things) can go for Resource URL.

I hope so this may clear your doubt.
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: what to modify in New blank theme which brakes layout

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
archana, if you have a new question, please create a new thread. You're making this difficult to follow by your new question which is unrelated to the original question.
thumbnail
Pradip Bhatt, modificado hace 11 años.

Not Overriding custom.css in _diff folder in theme

Junior Member Mensajes: 51 Fecha de incorporación: 29/01/13 Mensajes recientes
I have tried so much but I am failed.

I am using Liferay 6.1.1 latest version and I am creating new theme.... But whatever code written in _diff/css/custom.css is not affecting...

What I have to do??
thumbnail
Mika Koivisto, modificado hace 11 años.

RE: Not Overriding custom.css in _diff folder in theme

Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
The directory is _diffs not _diff.
thumbnail
Pradip Bhatt, modificado hace 11 años.

RE: Not Overriding custom.css in _diff folder in theme

Junior Member Mensajes: 51 Fecha de incorporación: 29/01/13 Mensajes recientes
Ya... Its my typing mistake.

And this is _diffs folder.

And this folder is automatically created by Eclipse Indigo because I have installed Liferay plugins in Eclipse. And when I bind tomcat through Eclipse its work and i can see changes. (Eclipse to tomcat configuration).

When I used manually ant deploy command then All the process done.... I also found changes in webapps in tomcat also. But No changes................ I see... Plz Help Me.
Bradley Wood, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

thumbnail
Nagaraja Chokkavarapu, modificado hace 12 años.

RE: what to modify in New blank theme which brakes layout

New Member Mensajes: 5 Fecha de incorporación: 18/11/11 Mensajes recientes
I have the exact same issue. Added the attached custom.css. No use.

Any luck?

Thanks,
Nagaraja
thumbnail
Hitoshi Ozawa, modificado hace 11 años.

RE: what to modify in New blank theme which brakes layout

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
SDK(liferay-plugins-sdk-6.0.5) and Tomcat bundles(liferay-portal-tomcat-6.0.6-20110225.zip )


First, you should be using the same version of sdk as liferay. You seem to be using liferay 6.0.6, so you need to use sdk-6.0.6.