Page 1 of 1

[Solved] Themes, Templates, CSS and Images

Posted: Tue Aug 19, 2008 2:21 pm
by xest
Hi everyone - What a great CMS system.

I am making changes to the default Stylesheets and Templates and the documentation and layout is very straightforward and easy to understand.

The bit I am having problem with is where should Template images go?

I can see that in the CMS root there is a images folder that contains cms/logo1.gif which is referred to in the default CMS for the Header H1 replacement. The only other place I can find is in the uploads folder, which doesn't look to bethe right place.

My initial thoughts are to create a sub-folder within images based on the name of the template, but is there a standard way of doing this before I start down this route?

Thanks in advance for any comments/help.

X

Re: Themes, Templates, CSS and Images

Posted: Tue Aug 19, 2008 2:36 pm
by christiaans
I usually just create my own folder called 'media', and store all media (duh!) files there. So for instance, images would go in media/images/ and icons would go in media/icons/

It doesn't matter where you place them, as long as you know how to reach them!

Re: Themes, Templates, CSS and Images

Posted: Tue Aug 19, 2008 2:47 pm
by xest
Thanks for that Chris.

I was planning on converting a few themes across to CMSMS and wanted hem to be in the standard layout for easy import. I will have a look at the sample themes later.

X

Re: Themes, Templates, CSS and Images

Posted: Tue Aug 19, 2008 2:52 pm
by RonnyK
I allways use the /uploads folder as the base for non-CMSMS logic. Meaning that as /uploads is the default folder for imagemanager and filemanager, I put all in folders under that base-folder.

Ronny

Re: Themes, Templates, CSS and Images

Posted: Tue Aug 19, 2008 2:59 pm
by xest
Looking at the Themes available at themes.cmsmadesimple.org I see that they all use a sub-folder off the uploads directory. I guess this is a folder that is accessible from the imagemanager and filemanager as Ronny pointed out and those folders also have the ability to be written to which helps for themes that are uploaded through the GUI.

I guess that I felt the /uploads/myTheme/logo.png paths didn't quite feel right, but looks like I was on the write tracks.

Off to convert templates now.

X

Re: Themes, Templates, CSS and Images

Posted: Wed Aug 20, 2008 3:16 am
by Dr.CSS
Hey [solved] OK?...