Kombinált nézet Egyszerű nézet Fa-nézet
Szálak [ Előző | Következő ]
toggle
Custom Background Image biswajit sarkar 2012. február 10. 9:52
RE: Custom Background Image David H Nebinger 2012. február 10. 10:35
RE: Custom Background Image biswajit sarkar 2012. február 10. 10:36
RE: Custom Background Image David H Nebinger 2012. február 10. 10:52
RE: Custom Background Image lou cat 2012. február 27. 7:29
RE: Custom Background Image Gaurav Shirbhate 2012. szeptember 28. 3:40
RE: Custom Background Image Gaurav Shirbhate 2012. szeptember 28. 3:41
RE: Custom Background Image Jignesh Vachhani 2012. szeptember 28. 4:11
RE: Custom Background Image Gaurav Shirbhate 2012. szeptember 29. 0:33
RE: Custom Background Image Gaurav Shirbhate 2012. szeptember 29. 4:37
RE: Custom Background Image Jignesh Vachhani 2012. szeptember 30. 22:30
RE: Custom Background Image Gaurav Shirbhate 2012. szeptember 30. 23:12
RE: Custom Background Image Jignesh Vachhani 2012. október 1. 5:00
RE: Custom Background Image Gaurav Shirbhate 2012. október 1. 2:30
RE: Custom Background Image Gaurav Shirbhate 2012. október 1. 2:42
RE: Custom Background Image Gaurav Shirbhate 2012. október 1. 3:35
RE: Custom Background Image Gaurav Shirbhate 2012. október 1. 3:37
RE: Custom Background Image Jignesh Vachhani 2012. október 1. 5:03
RE: Custom Background Image Gaurav Shirbhate 2012. október 1. 7:23
RE: Custom Background Image Gaurav Shirbhate 2012. október 1. 21:59
RE: Custom Background Image Jignesh Vachhani 2012. október 2. 22:21
RE: Custom Background Image Gaurav Shirbhate 2012. október 3. 6:42
RE: Custom Background Image Gaurav Shirbhate 2012. október 3. 7:46
RE: Custom Background Image Gaurav Shirbhate 2012. október 1. 23:39
RE: Custom Background Image Paulo Henrique Pires 2012. február 14. 5:31
RE: Custom Background Image Vir Singh 2012. február 17. 22:17
RE: Custom Background Image Maarten van Heiningen 2012. február 19. 6:45
RE: Custom Background Image Bradley Wood 2012. október 3. 16:14
biswajit sarkar
Custom Background Image
2012. február 10. 9:52
Válasz

biswajit sarkar

Rangsorolás: Regular Member

Hozzászólások: 141

Csatlakozás dátuma: 2011. október 17.

Legújabb hozzászólások

I am creating a Custom theme..

In my theme I want to add dynamic background Image.
In my theme if I change a page the background image dynamically change for that page

please help
David H Nebinger
RE: Custom Background Image
2012. február 10. 10:35
Válasz

David H Nebinger

Rangsorolás: Liferay Legend

Hozzászólások: 4496

Csatlakozás dátuma: 2006. szeptember 1.

Legújabb hozzászólások

Background image is managed by CSS.

In your theme, you could add code to portal_normal.vm that would assign a class to the body based upon the current page.
biswajit sarkar
RE: Custom Background Image
2012. február 10. 10:36
Válasz

biswajit sarkar

Rangsorolás: Regular Member

Hozzászólások: 141

Csatlakozás dátuma: 2011. október 17.

Legújabb hozzászólások

David H Nebinger:
Background image is managed by CSS.

In your theme, you could add code to portal_normal.vm that would assign a class to the body based upon the current page.



but I need to add dynamic background image...which change in different page..not fixed
David H Nebinger
RE: Custom Background Image
2012. február 10. 10:52
Válasz

David H Nebinger

Rangsorolás: Liferay Legend

Hozzászólások: 4496

Csatlakozás dátuma: 2006. szeptember 1.

Legújabb hozzászólások

Right, so in your portal_normal.vm you determine which page is being rendered. Add an appropriate class to the <body /> tag that has the CSS for the background image and you're done.

This is not a 'fixed' solution, it would allow you to determine the class to add to the <body /> tag dynamically. Class changes, background image changes. QED.
Paulo Henrique Pires
RE: Custom Background Image
2012. február 14. 5:31
Válasz

Paulo Henrique Pires

Rangsorolás: Junior Member

Hozzászólások: 82

Csatlakozás dátuma: 2011. február 23.

Legújabb hozzászólások

create a different theme for each page, changing only the background.
Vir Singh
RE: Custom Background Image
2012. február 17. 22:17
Válasz

Vir Singh

Rangsorolás: New Member

Hozzászólások: 2

Csatlakozás dátuma: 2012. január 9.

Legújabb hozzászólások

biswajit sarkar:
I am creating a Custom theme..

In my theme I want to add dynamic background Image.
In my theme if I change a page the background image dynamically change for that page

please help



Hi, to add dynamic bg image, you can define bg class(s) for page(s) body in css any can apply that you can apply on In your theme "portal_normal.vm" file. you can apply the condition to apply particular class of css on basis of page id.
Maarten van Heiningen
RE: Custom Background Image
2012. február 19. 6:45
Válasz

Maarten van Heiningen

Rangsorolás: Regular Member

Hozzászólások: 170

Csatlakozás dátuma: 2009. február 5.

Legújabb hozzászólások

Hi,

You could set a custom attribute on the page and pre-fill this with a value of an image name that is the default. Then you can set the background image for each page so it can be configured by a community admin or admin (or anybody who is allowed to change your page settings).

This can then be used to either set a class for the body element or set the image directly in a style setting of your page header style element.
lou cat
RE: Custom Background Image
2012. február 27. 7:29
Válasz

lou cat

Rangsorolás: Regular Member

Hozzászólások: 151

Csatlakozás dátuma: 2012. január 26.

Legújabb hozzászólások

I find David's one the best solution, I had a similar problem because I wanted to change the header banner in every page, but this was part of my theme, so in my portal-normal.vm I wrote:

#set ($headerbase = "header-")
#set ($page_name = $page.getName($locale))
#set ($header_id = "$headerbase$page_name")

<div id= $header_id class="headerpictures"></div>

and in custom.css I could set a background image based on the class "headerpictures", that is always the same, or using the id created dynamically for every page in order to have a custom banner in every page.

It's basically what most of you suggested, but if Biswajit didn't solve yet, I hope a bit of code could help ;)
Gaurav Shirbhate
RE: Custom Background Image
2012. szeptember 28. 3:40
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

i have to set background image but it should be fix . It should not be move with scroll only page should be move. please give me solution.
Gaurav Shirbhate
RE: Custom Background Image
2012. szeptember 28. 3:41
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

i have to set background image but it should be fix . It should not be move with scroll only page should be move. please give me solution.
Jignesh Vachhani
RE: Custom Background Image
2012. szeptember 28. 4:11
Válasz

Jignesh Vachhani

Rangsorolás: Liferay Master

Hozzászólások: 755

Csatlakozás dátuma: 2008. március 10.

Legújabb hozzászólások

i have to set background image but it should be fix . It should not be move with scroll only page should be move. please give me solution


Gaurav,
You can apply CSS class given as below :

body {
background: url("path to xyz.jpg") no-repeat fixed right top #FFFFFF;
}
Gaurav Shirbhate
RE: Custom Background Image
2012. szeptember 29. 0:33
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

Thanks sir...now it is working fine.
Gaurav Shirbhate
RE: Custom Background Image
2012. szeptember 29. 4:37
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

Sir, i have to change images in single portlet. But <div id="slideshow"> <div>first slide </div> <div> <img src="images.jpg"></div> <div>last slide</div> </div>
In this case i am getting first slide and ladt slide image but i am not getting image in portlet actually path is correct. please give me solution on this.
Jignesh Vachhani
RE: Custom Background Image
2012. szeptember 30. 22:30
Válasz

Jignesh Vachhani

Rangsorolás: Liferay Master

Hozzászólások: 755

Csatlakozás dátuma: 2008. március 10.

Legújabb hozzászólások

Gaurav Shirbhate:
Sir, i have to change images in single portlet. But <div id="slideshow"> <div>first slide </div> <div> <img src="images.jpg"></div> <div>last slide</div> </div>
In this case i am getting first slide and ladt slide image but i am not getting image in portlet actually path is correct. please give me solution on this.


Gaurav,
Not clear with your problem.
Could you please elaborate in more details ?
Gaurav Shirbhate
RE: Custom Background Image
2012. szeptember 30. 23:12
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

Sorry for being unclear first time.

I wanted to display a slide show on protlet which contains three slides.
First slide and third slide contains string where as second slide contains an image. I am able to resolve the ussue by putting .css file background image property.
but still i want to know by giving accurate image src path i am not getting image on the second slide when i ran slider, but i am getting first and second slide text.
Jignesh Vachhani
RE: Custom Background Image
2012. október 1. 5:00
Válasz

Jignesh Vachhani

Rangsorolás: Liferay Master

Hozzászólások: 755

Csatlakozás dátuma: 2008. március 10.

Legújabb hozzászólások

That is depend on slideshow plugin which you used.
Please post some plugin code here which you used to create slideshow.
Did you use jquery for this slideshow ?
Gaurav Shirbhate
RE: Custom Background Image
2012. október 1. 2:30
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

i used below code ....
<div id="slideshow">
<div id="image1">
<img src="a.png">
</div>
<div id="image2">
<img src="b.png">
</div>
<div id="image3">
<img src="c.png">
</div>
</div>
and i just mentioned height and width of the imagein .css file
Gaurav Shirbhate
RE: Custom Background Image
2012. október 1. 2:42
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

I have to create my own calendar portlet. I wrote one code for calendar in view.jsp file of own portlet. but calendar is not getting on the portlet.
same code i used in .html file in netbeans. I am getting calendar on the output. please give me solution on this.
Gaurav Shirbhate
RE: Custom Background Image
2012. október 1. 3:35
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

Actually in my website i created one portlet. I dropped that portlet on home page and mentioned some list of options on that. When i will click on any of the option i have to show information about that option on the second portlet which i dropped on the same page.
Please give me solution for this.
Thanks.
Gaurav Shirbhate
RE: Custom Background Image
2012. október 1. 3:37
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

Actually in my website i created one portlet. I dropped that portlet on home page and mentioned some list of options on that. When i will click on any of the option i have to show information about that option on the second portlet which i dropped on the same page.
Please give me solution for this.
Thanks.
Jignesh Vachhani
RE: Custom Background Image
2012. október 1. 5:03
Válasz

Jignesh Vachhani

Rangsorolás: Liferay Master

Hozzászólások: 755

Csatlakozás dátuma: 2008. március 10.

Legújabb hozzászólások

You can follow IPC "Inter portlet communication" concept here.
For detail about IPC, you can refer http://www.liferay.com/community/wiki/-/wiki/Main/Portlet+to+Portlet+Communication
http://www.liferaysolution.com/2011/07/inter-portlet-communication.html
Gaurav Shirbhate
RE: Custom Background Image
2012. október 1. 7:23
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

I am elaborating my question again. I dropped two portlets on a same page. On one portlet i displayed list of options, when i click on that options one by one. I have to show information about that options on the second portlet, will i get that information on that portlet using inter portlet communication concepts. Please give me solution.
Thanks.
Gaurav Shirbhate
RE: Custom Background Image
2012. október 1. 21:59
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

pleas give me solution for above question.
Gaurav Shirbhate
RE: Custom Background Image
2012. október 1. 23:39
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

I dropped two portlets on a same page, I displayed list of options on one portlet. When i click on any particular option i have to show information about that option on the second portlet. This should happen with all the options. Please give me solution for this, thanks.
Jignesh Vachhani
RE: Custom Background Image
2012. október 2. 22:21
Válasz

Jignesh Vachhani

Rangsorolás: Liferay Master

Hozzászólások: 755

Csatlakozás dátuma: 2008. március 10.

Legújabb hozzászólások

Please create separate thread for this query.
Gaurav Shirbhate
RE: Custom Background Image
2012. október 3. 6:42
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

yes. I posted question on separate thread.
Gaurav Shirbhate
RE: Custom Background Image
2012. október 3. 7:46
Válasz

Gaurav Shirbhate

Rangsorolás: New Member

Hozzászólások: 24

Csatlakozás dátuma: 2012. szeptember 26.

Legújabb hozzászólások

Please give me solution for this immediately. Its urgent.

1. I created two portlets.
2. First- Trigger Portlet and Second-Listener Portlet.
3. I added that two portlets on a page. First at left side and second at right side.
4. I have given two hyperlinks on Trigger Portlet.
5. When i click on any particular link, I have to show some data whatever i have to show on Listener Portlet.
6. Again when i click on another hyperlink i have to show data on the same Listener Portlet.

I resolved this problem using javascript. But when i access that portal as a administrator at that time listener portlet works fine. But when i access as a user at that time listener portlet is not showing output whatever it has to show. Please give me solution for this.
Bradley Wood
RE: Custom Background Image
2012. október 3. 16:14
Válasz

Bradley Wood

LIFERAY STAFF

Rangsorolás: Regular Member

Hozzászólások: 127

Csatlakozás dátuma: 2010. június 7.

Legújabb hozzászólások

I would create a theme setting in liferay-look-and-feel.xml

<setting configurable="true" key="header-image-url" type="text"/>

then in init_custom.vm

#if ($theme_settings.header-image-url)
#set ($header_image_url = $theme_settings.header-image-url.data
#else
#set ($header_image_url = ${image_folder} + "custom/default_background.jpg")
#end

<style>
body{
background: url($header_image_url);
}
</style>

END of init_custom.vm

Then manage page and add the url to the setting.


PRO: no need to update theme css