The Joomla! Forum ™






Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sat Dec 10, 2011 2:27 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 24, 2011 11:50 am
Posts: 13
Am using the JCE plugin to generate articles and would like to set individual background images for different articles. Have searched the forums but cannot find anything on this? Can anyone help?

Brian


Top
 Profile  
 
PostPosted: Sat Dec 10, 2011 5:26 pm 
Joomla! Master
Joomla! Master
Online

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13999
Location: Akershus, Norway
Is it for only the Single Article Layout or also the Blog Layout?
Is for just a few articles or all?

If the article has a menu item, you can use the page class suffix. The background image must be set in css.


Top
 Profile  
 
PostPosted: Sat Dec 10, 2011 7:56 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 24, 2011 11:50 am
Posts: 13
Hi Yngve

This is for a single article - it will have a menu item. Where do I alter the page class suffix? (I am a noob)

Brian


Top
 Profile  
 
PostPosted: Sat Dec 10, 2011 8:10 pm 
Joomla! Master
Joomla! Master
Online

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13999
Location: Akershus, Norway
You set the Page Class Suffix in the Menu Item under Page Display Options.

Set it to i.e " mypageclass". Note the leading space.

In template.css, enter:

Code:
.mypageclass { background-image:url('/images/paper.gif');
 }



Use Firebug to inspect the page.

http://docs.joomla.org/Diagnostic_tools
http://docs.joomla.org/Using_Firebug_With_Your_Joomla_Website


Top
 Profile  
 
PostPosted: Sat Dec 10, 2011 8:40 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Thu Nov 24, 2011 11:50 am
Posts: 13
Hi

There appears to be no item in the template css named 'Page Dislay Options'

Also - does this fix plce the image in all created articles or just the one I need it to?

Brian

Edit:
Firebug shows that the item I need to set a background for is the whitebox:
Code:
#whitebox_t {
   background: #fff url(../images/mw_content_t.png) 0 0 repeat-x;
}


Won't this change the background for all my articles?


Top
 Profile  
 
PostPosted: Sat Dec 10, 2011 8:47 pm 
Joomla! Master
Joomla! Master
Online

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13999
Location: Akershus, Norway
Yes. It will. That's why you set a Page Class Suffix on the Menu Item.


Top
 Profile  
 
PostPosted: Fri Jun 14, 2013 7:56 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Fri Jun 14, 2013 7:36 am
Posts: 3
dsotm44 wrote:
Hi Yngve

This is for a single article - it will have a menu item. Where do I alter the page class suffix? (I am a noob)

Brian







***** Manual signatures are NOT allowed *****
GW2 Gold|FIFA 13 Coins|Aion Kinah|Diablo 3 Gold Kaufen


Top
 Profile  
 
PostPosted: Fri Jun 14, 2013 8:14 am 
Joomla! Master
Joomla! Master
Online

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13999
Location: Akershus, Norway
It's under "Page Display Options" in the Menu Item.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 



Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group