Full screen background
Permalink
I'm trying to implement a supersized background slideshow into a website and have hit a number of issues. Firstly I can't get the images block area to be small in edit mode so that I can add more than one using the code below is there a solution (have a I got the code right?)
<?php if ($c->isEditMode()) { ?> <div style="height: 100px"> <?php } ?> <div id="supersize"> <?php $a = new Area('Background Images'); $a->display($c); ?> </div> <?php // we use the "is edit mode" check because, in edit mode, the bottom of the area overlaps the item below it, because // we're using absolute positioning. So in edit mode we add a bit of space so everything looks nice. ?> <?php if ($c->isEditMode()) { ?> </div>
Viewing 15 lines of 17 lines. View entire code block.
What exactly is the problem? Doesn't the output (html) change with the code you've published?
Just an idea: I did pretty much the same thing but I used tony's multiple file attribute add-on and used it to assign several files to each page. Worked quite well for me!