| Author | Post |
|---|
Mark Member
|
Posted: Sat Feb 25th, 2006 11:37 pm |
|
Hi,
I like to use includeblocks as I can subsequently change the site design and not overwrite any changes the user may have made to their content.
Question - on a new site, I have a user who will be building a table of equipment details which will include an image that they'll upload for each piece of equipment.
Can this be done okay just using includeblocks?
Thanks
Mark
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 583 |
|
Posted: Sun Feb 26th, 2006 04:54 pm |
|
There are lots of different ways to mix/match editblocks and includeblocks. From your description, here is my suggestion.
<!--#include virtual="header.inc" -->
<div editblock="main">
area for user
</div><!-- editblock="main" -->
<!--#include virtual="footer.inc" -->
That allows you to change the site layout with the inc files while giving the user a place to edit their changes.
|
Mark Member
|
Posted: Sun Feb 26th, 2006 06:12 pm |
|
Hi Keith,
thanks for the reply.
Actually, I do it the other way around!
I use Dreamwaever tempates to manage site design and have one or more includeblocks using a 'x.inc' file which is what the user edits for their content, so their content is in the inc file.
If I do it this way, can the user still upload images and include them in their content?
I guess I'm asking if an include file can contain images - or am I looking at this wrong - is it just that it's the reference to the image that's actually in the inc file (<img src=...etc) - do you see what I mean?
Thanks
Mark
|
Keith Moderator
| Joined: | Fri Apr 8th, 2005 |
| Location: | |
| Posts: | 583 |
|
Posted: Sun Feb 26th, 2006 07:40 pm |
|
Mark
You can certainly put images in an includeblock's inc file. The inc file simply holds whatever syntax was in the browser in that area and inserts it back into the page file's code when the page is assembled by SSI for display. An inc file can hold anything you want, images, flash, etc.
|
Mark Member
|
Posted: Sun Feb 26th, 2006 07:55 pm |
|
Thanks Keith, that's what I thought as I was writing my previous reply!
Regards
Mark :)
|
 Current time is 05:46 pm | |
|