I’d like to create a template that allows a non-technical user to add pages to their site.
Essentially, all pages look like this:
[table]
[tr][td]some descriptive text[/td][td]image[/td][td]image[/td][td]image[/td][/tr]
[tr][td][/td][td]image[/td][td]image[/td][td]image[/td][/tr]
[/table]
It’s sort of an image gallery. It’s a text description of a product and up to 6 photos.
Ideally, when they go to create a new page with this template, I’d like the system to ask them for the descriptive text (which could be just the content) and some images. As in, a button to allow them to upload image 1, a second to allow them to upload image 2...etc.
Is there any way I could add something to a template such that when the user went to create a new page, choosing that template, it would allow them to upload an image into one of these image slots?
I could also imagine maybe clicking on some placeholder image in the rich text editor.
At any rate, something that let a user manage the images on a page but without being able to change the format of the page.
-
☆ A M B ☆
- 24,524 Posts
You could use six "image" type TVs. If the new documents are in the same folder as the others, the "inherit template" plugin would come into effect, as long as the parent folder for these has the same template.
There is also a way to enhance the "inherit template" plugin to use siblings as well as parent to determine what template will be used automatically.
http://modxcms.com/forums/index.php/topic,47983.msg281301.html#msg281301
Thank you. This looks promising.
-
☆ A M B ☆
- 24,524 Posts
Another interesting idea is to have an image uploader like this
http://www.webappers.com/2009/03/07/multiple-file-upload-plugin-with-jquery-and-flash/
http://www.sottwell.com/article-uploadify.html
I haven’t completed the article walking through how to do it, but it can allow multiple uploads.
Since it’s AJAX you could write another bit to the post-processor that loads the newly uploaded image into the browser immediately.