Auto-Detect Folder names

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

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: [ross] Auto-Detect Folder names

By Moonworks - July 13, 2009

I've set up something, where I give a name to a theme, such as blue, green, red, etc and then the file automatically selects that folder, using the code for the theme.

The only problem with this, is that when a web surfer uses the site, it has the full url, including the themes info. To see what I mean, go to http://www.writerzone.co.uk and look at the URL coming up there.

What would be good, would be to just have numbers for each theme in the pull-down menu, but then have some kind of code to tell the page what to do. For example:

if theme=1 then folder=1

That obviously isn't actual code, just an example of what would need to do.

Does that make sense?
High quality residential training for writers, actors & Film Making - Click Here for further information

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