Page 1 of 1

How to implement my own templates

Posted: Wed Nov 22, 2006 9:54 am
by Brigitte
I am an experienced HTML/CSS developper(NOT PHP and ASP !) and I have downloaded CMSMS because it seems like a pretty simple system to use. But I cant find out how to implement my own templates (those I have already made). Do I have to start all over again ? My websites are classic ones built with HTML and with a CSS file controlling most of the lay out.

Can anyone help me ?

Best regards

Brigitte

Re: How to implement my own templates

Posted: Wed Nov 22, 2006 1:00 pm
by swathes
It's really easy - and found this screencast helped lots: http://cmsmadesimple.org/uploads/media/ ... colate.htm

Re: How to implement my own templates

Posted: Thu Nov 23, 2006 1:46 am
by Dee
I guess this should be your starting point. Also take the time to read the default content, it contains quite an extended introduction.

A very short intro:
Create a new template (Layout => Templates, click 'Add New Template') containing your html and put

Code: Select all

{content}
in the code where you want the dynamic content (editable by admins) to be and

Code: Select all

{stylesheet}
inside the section.

Then paste your stylesheet code into a new stylesheet (Layout => Stylesheets, click 'Add a Stylesheet'), attach the stylesheet to the template (Layout => Templates, click the CSS icon besides the template)  and you can start creating pages that use your new template (Content => Pages, click 'Add New Content').

Normally you would use at least a {menu} tag in your template (to auto-generate a navigation menu)  and probably some more. Take a look at the default templates that come with the install for examples.

After that it's time to look at how modules work /how to include them in your pages. Each module has a help page that gives info on how to use it (Extensions => Modules, click on the module name or the help link on the same row). You can install new modules from the admin (Extensions => Module Manager).

Hope that helps,
Regards,
D