Here's my problem, I started with the latest Gantry bundle (4.1.4) with the hopes of developing a simple template. I need the ability to chose the background image in the back end template editor (the same way most RT themes function) so I can easily set up alternate background for other pages using an alternate style.
I dove in to the code and seem to have hit a wall. I got a drop down menu for the background image chooser to appear in the template's back-end, and it saves the settings fine, but the background is not displaying.
Here is a link to the site:
webstage.dentalmarketer.com/shanahan
Here's what I've done so far:
1- Edited the file "template-options.xml" to include<field name="background" type="selectbox" default="none" label="BG_IMAGE" isbodyclass="true" setinsession="true" setbysession="true" setincookie="true" setbycookie="true">
<option value="none">None</option>
<option value="main-bg">Main Background</option>
<option value="secondary-bg">Secondary Background</option>
<option value="third-bg">Third Background</option>
</field>
2- Edited the file "index.php" (accessed from the back-end via 'Edit main page template") to include: <body <?php echo $gantry->displayBodyTag(array('bodyLevel')); ?>>
<div id="rt-page-background" <?php echo $gantry->displayClassesByTag('rt-page-background'); ?>>
3- Edited the file "styledeclarations.php" to include:// Background
$css = 'body {background:'.$gantry->get('rt-page-background').';}'."\n";
4- Added a custom css file "gantry-custom.css" then included:/* Background Images */
.main-bg div#rt-page-background {background: url(../images/backgrounds/pm-bg_01.jpg) 50% 0 no-repeat;}
.secondary-bg div#rt-page-background {background: url(../images/backgrounds/pm-bg_02.jpg) 50% 0 no-repeat;}
.third-bg div#rt-page-background {background: url(../images/backgrounds/pm-bg_03.jpg) 50% 0 no-repeat;}
I've cleared my caches and checked the file paths, but I still get no background image. I just know I'm missing something that should be obvious, but after days of searching the forums I am at a loss.
Please oh please you amazing RT devs, help me get this working.