Foros de discusión

Accessing Liferay mobile theme on Blackberry browser

ankita modi, modificado hace 14 años.

Accessing Liferay mobile theme on Blackberry browser

New Member Mensajes: 19 Fecha de incorporación: 26/05/09 Mensajes recientes
Hi,

I am trying to access the liferay default theme in the Blackberry browser.
I just took the fresh LiferayTomcat Bundle 5.2.2 and tried accessing it on the Blackberry browser.
But the output goes as a white screen with just one link as 'Welcome' being displayed on the page and
nothing happens even on clicking that.

Is there some wap.xhtml string that needs to be set as part of the User-agent http header ?

Could someone please help me on this as its acting as a showstopper for us... emoticon(

Thanks in advance
thumbnail
Manish Kumar Gupta, modificado hace 14 años.

RE: Accessing Liferay mobile theme on Blackberry browser

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
The behavior observed by you is correct. Liferay is detecting your device as mobile device and therefore using WAP theme which has only a welcome message. You can enhance this default mobile theme as per your requirement.
ankita modi, modificado hace 14 años.

RE: Accessing Liferay mobile theme on Blackberry browser

New Member Mensajes: 19 Fecha de incorporación: 26/05/09 Mensajes recientes
Hi Manish.

Thanks a lot for the reply.

I also want to know :

1) Can we use the Plugin sdk 5.2.2 to create a mobile theme ?
2) If yes, then where should we include our changes, as the Liferay default 'mobile' theme folder present under 'wap' folder has only two subfolders
i) images(including just a thumbnail.png) and
ii) templates(with only 3 files)/
I mean where do we find the 'css' files which it uses by default, so that we can try to customize our changes there?

It would be really great if you could suggest asap.

Thanks in advance
thumbnail
Manish Kumar Gupta, modificado hace 14 años.

RE: Accessing Liferay mobile theme on Blackberry browser

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
You can use Portal Pack to create your theme. See this blog.
Also, you can try Simple WAP theme available in Liferay community plugin repository.
ankita modi, modificado hace 14 años.

RE: Accessing Liferay mobile theme on Blackberry browser

New Member Mensajes: 19 Fecha de incorporación: 26/05/09 Mensajes recientes
Hi,

Ok, I tried currently with the Plugins SDK only adding changes in liferay-look-and-feel.xml and portal-ext.propertes mentioning the wap theme property.

I wanted to know further that when I try to add some basic changes in terms of banner in custom.css and respective changes in portal_normal.vm , I am not seeing the changes being picked from custom.css. However when I try to load the image through the portal_normal.vm by putting the <img> tag there it loads the image, but the right settings are not taken with respect to size as custom.css is not getting used.

Please suggest if you have any idea.

Thanks in advance.
thumbnail
Manish Kumar Gupta, modificado hace 14 años.

RE: Accessing Liferay mobile theme on Blackberry browser

Liferay Master Mensajes: 535 Fecha de incorporación: 16/05/08 Mensajes recientes
This document may help you.
ankita modi, modificado hace 14 años.

RE: Accessing Liferay mobile theme on Blackberry browser

New Member Mensajes: 19 Fecha de incorporación: 26/05/09 Mensajes recientes
Thanks Manish.

Trying to work on that.

I also want to have the column-3 layout changed to column-1 for my WAP theme only.
When we try to work through the Layout Template option on the dock it changes it for the PC version too.

I tried changing the value in the 'layout' table of Database 'lportal'

Is there some other xml file entry that we need to update to have the column-1 template available for the WAP theme ?

Was just reading thru the forums....got to know about liferay-layout-templates.xml and column-1.wap.tpl files. Would modification
in any of these files help us in some way.

Please suggest as I am not too sure whether the DB way is ok or not and that too the right way.

Thanks in advance