Auto-Detect Folder names

11 posts by 2 authors in: Forums > CMS Builder
Last Post: July 17, 2009   (RSS)

By Moonworks - July 9, 2009

Is there a way to auto-detect folder names inside a particular folder, and then list these in a pull-down menu?

This is so I can create new themes which can be added at any time in a themes folder, then the new additions will show up in the users admin section.
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [Moonworks] Auto-Detect Folder names

By ross - July 9, 2009

Hi there.

Thanks for posting!

I think you could write some code for that but it will be tricky. I think you might be better just creating a themes category and then adding the name of the folder in through a textfield. You can then create a drop down based on this section.

Let me know if that sounds like it would work. 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] Auto-Detect Folder names

By Moonworks - July 9, 2009

I have a feeling I was aiming just a little bit too high at this point.

It would be a great addition to CMSB to do that though [;)]
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [Moonworks] Auto-Detect Folder names

By ross - July 10, 2009

Hi.

We were talking about this in the other thread but I wanted to mention in this one too that reading a folder and turning its contents into drop down options in the interface isn't something CMS Builder is setup for but I am sure we can customize something for you.

Drop me a line through consulting@interactivetools.com and we can go start going over the options. 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: [Moonworks] Auto-Detect Folder names

By ross - July 13, 2009

Hi there.

Thanks for hanging on. Was talking to Dave about this one and there would be some options but it will get fairly technical so it will be a fairly large project.

At this stage, I really think the best option would be to go with the drop down menu that you setup in the section editor with each theme being one of the options.

Can I go over that one in more detail for you? 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] Auto-Detect Folder names

By Moonworks - July 13, 2009

Hi Ross,

You're the expert, if you feel that that is the best way to go ahead, then that is what I'll do [:)]

So now the joy of going through that one with me...
High quality residential training for writers, actors & Film Making - Click Here for further information

Re: [Moonworks] Auto-Detect Folder names

By ross - July 13, 2009

Hi

Great! Did you already have an idea about how to start that one? Or did you want to go over it in more detail here?

Let me know ;).
-----------------------------------------------------------
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: [Moonworks] Auto-Detect Folder names

By ross - July 14, 2009

Hi there.

This part will probably end up depending on how you have this all setup. Are all the elements of each them images? Like, the blue border around that whole white section. Is that just a couple different images?

If that's the case, if you make sure you have the same images with the same names for each theme, you could actually refer to them like this:

<img src="/<?php echo $record['theme']; ?>/headerImage.jpg">
<img src="/<?php echo $record['theme']; ?>/footerImage.jpg">

And this way you would actually only need one template page. Not a different template page for each theme.

Does that make sense? Let me know :).
-----------------------------------------------------------
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] Auto-Detect Folder names

By Moonworks - July 14, 2009

Hi Ross,

That makes sense, better than the way I have it now.

Have to go to some meeting about how to network (which I already know if going to a meeting with others), but will test it out when I get back.

Thanks [cool]
High quality residential training for writers, actors &amp; Film Making - Click Here for further information