folder of uploaded images

10 posts by 2 authors in: Forums > CMS Builder
Last Post: May 27, 2009   (RSS)

By markr - May 20, 2009

I'm new to upload fields... Can I use upload fields like this: have a growing library (folder) of art files that is fed by an editor's upload field, then be able to select one specific file from the folder to display on a page using another editor? E.g. I want to create a page template that allows me to select/rotate what art to use for the top banner.

Re: [markr] folder of uploaded images

By ross - May 21, 2009

Hi there.

Thanks for posting!

What you are asking in this post is more along the lines of a shared uploads folder for your records which isn't really something the software is setup for.

What I think would work better is if you created a multi list section and have your artist upload one image per record. So if they have 10 pieces of art, they will have 10 records in that section.

Then you can add a checkbox to that section to choose which one shows up on the main page. There is just a bit of code that will make that all happen.

Let me know what you think. If you setup the section with the check box, I can show you the code for your front page.

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: [markr] folder of uploaded images

By markr - May 21, 2009

Yes, your idea would work nicely. But is there a way (by using a custom upload directory or something else) to have the same 10 art files available for different viewers. E.g. For pageA, user checks the box to display file2.jpg and on pageB, user checks the box to display file9.jpg.

And yes, I would appreciate that piece of code, thank you for your support.

Re: [markr] folder of uploaded images

By ross - May 22, 2009

Hi there

Thanks for getting back in touch :).

It sounds like you actually want to be categorizing your images so that you have multiple list pages.

Does that sound about right?

What you'll need to do there is add a new drop down to your section so you can say which category each image is in. Then, you'll create one HTML page for each category and use some PHP to make sure only images from that category appear.

Does that sound about right?

If so, the checkbox we were already talking about will still work. It will basically be used to say, put this image at the top of its category page.

One important thing to know up front though, is do you need any images to appear in more than one list? Or is it just one list per image.

Let me know what you think and we can go over some code from there.

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] folder of uploaded images

By markr - May 22, 2009

Yes. That's brilliant. So, if I follow, I will use a section editor with (at least) 3 fields, a checkbox, a list (pulldown) and an upload. For each record I create I will upload a file and select a category from my pulldown (which I will have populated with HTML page names.) The checkbox will initially be blank and the initial category will be, let's say, "none". When I want to display a file on a particular page, I will check the box, select the page name from the pulldown...and bam. Did I get that right?



1. Yes, I may want to display the same file on multiple pages. Will a multi value list make that possible?

2. What HTML page names should I use? urls? titles?

3. Does what I'm trying to do make sense? Am I too close to see an earier way (e.g. by using a wysiwyg field)?

Re: [markr] folder of uploaded images

By ross - May 25, 2009

Hi there.

It definitely sounds like you are on the right track here. With that drop down, page titles will work just fine. Having images appear on more than page can be done but the code on each of the pages would need to be a little different and the way that would work could slow things down a bit if you are planning on having thousands of images. If it is just dozens or probably even hundreds, you'll be ok.

Let me know what you think. Was this something you were going to start setting up right away or are you just in research mode right now?
-----------------------------------------------------------
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] folder of uploaded images

By markr - May 25, 2009

I anticipate using the same Image on 0-100 pages with a mean of 5...and I am ready.

Re: [ross] folder of uploaded images

By markr - May 26, 2009

[font "Verdana"]Everything looks right but I'm getting "no records found".

[font "Verdana"]When you say "value[font "Verdana"] you want to look up on this page", where is it looking?

[font "Verdana"]

Re: [markr] folder of uploaded images

By ross - May 27, 2009

Hi there.

When you are uploading your images, you have that drop down to select which page they show up on right?

VALUE will be always be one of the options from that page.

Give that a shot and let me know how you make out :).
-----------------------------------------------------------
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/