Background image page attribute2 users found helpful
Created page attribute called bkgd_image, and now on each page I can go to Custom attributes, file manager and select the image that should be used as the background image..
but how to call that attribute in the template? and it is default.php i should be adding the code to right?
i think i've just read too much and now over complicating the matter... any help appreciated!
<div id="container" style="background: url(<?php echo($c->getAttribute('bkgd_image')->getVersion()->getRelativePath());?>)">
If you go there and choose an attribute type in this case an image and then give it a name and handle.
Then on the page you can add it to the custom attribute tab and assign an image.
Then its the code above to add that image into the code
When the two are extremely different, but generally I only use the one.
and define my site wide settings here, and as Jordan has said, I then use extra files to adjust themes on specific pages. (Generally when dealing with custom templates for a block)