Adding uploaded image code to background
6 posts by 2 authors in: Forums > CMS Builder
Last Post: July 13, 2009 (RSS)
By Moonworks - July 9, 2009 - edited: July 9, 2009
I have tried various methods, and the one that looks like it makes most sense is:
background=">"<?php echo $upload['filename'] ?>">
I can't seem to get it to show though, whatever I do.
I have included this near the top of the page:
<?php foreach ($setupRecord['backround_upload'] as $upload): ?>
and this near the bottom of the page:
<?php endforeach ?>
Re: [Moonworks] Adding uploaded image code to background
By ross - July 9, 2009
Thanks for posting!
Are you working with a detail page or a list page? It will work slightly different for each one.
Let me know or better yet, attach a copy of the file so I can try it out myself. Thanks!
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Re: [ross] Adding uploaded image code to background
By Moonworks - July 9, 2009 - edited: July 9, 2009
It is mainly detail pages, but there will be some list pages too. They select their background page, and it will then be the background on every page.
I've included the file, but you'll see that it is mainly made up of various CMSB bits.
Re: [Moonworks] Adding uploaded image code to background
By ross - July 10, 2009
Thanks!
What I think is going to work best here is if you actually try getting the image to appear just in the body of your page somewhere. To do that, all you need is to go to the code generator and copy/paste in the code for that.
To be honest, you might even want to take a further step back and create a test.php file so you can try making that image appear by itself in a blank file.
Could you do that. Setup a page called test.php with just that one image displaying. Make sure you set it up with the detail page viewer code.
Thanks!
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/
Re: [ross] Adding uploaded image code to background
By Moonworks - July 10, 2009 - edited: July 10, 2009
http://www.writerzone.co.uk/test.php
Re: [Moonworks] Adding uploaded image code to background
By ross - July 13, 2009
Great! The main thing for now is that I see an error on that page where I assume the image should be :). Could you post a copy of that for me so I can see how you have it coded up?
Thanks!
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com
Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/