Page 1 of 1

[solved] Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 12:06 pm
by chipper_001
Please can someone help me?

I am new to CMSMS so trying to get my head around it, apologies if this is a silly question.

I'm trying to build my own website and hand code all the css and html myself, so I want to customize my layout, am I right in saying that 'Page' is for your content, 'The Template' is for your html and the stylesheet is where you add your css? my question really is that if you add just the content into the 'page part' without any divs how does it know to render your content properly, for example I have different div classes #box1 #box2 etc on my page (all with different styles and layouts)?

I would really appreciate your help
Many thanks!

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 12:50 pm
by RonnyK
chipper_001,

check one of the default templates that come with the install....

The template, are for structuring the site, all divs are in the template. The template has attached stylesheets for the styling.

When you create a page, the page is attached to a template, and thus gets the structure/styling belonging to the template.

Ronny

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 12:57 pm
by chipper_001
Hi Ronny, thanks for that but what I don't understand is that if on the page i write something like ...

I want this paragraph to take the div style of #box1

and I want this paragraph to take the styles of #box2

What I dont get is if i dont include the div tags in my page, how does it now to apply box1 styles to the 1st paragraph and box2 styles to the 2nd paragraph?

Thanks

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 1:16 pm
by aozuas
chipper_001, I suspect that you first need some basic skills in CSS and XHTML before asking something like that.
But, lets say:
CMSMS works with tags like {title} and {content} and you can write something like that:

{title}

{content}

Hope that help

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 1:22 pm
by Ziggywigged
chipper_001, I think what you're looking for is adding additional content blocks and/or GCBs (global content blocks).

See:
http://wiki.cmsmadesimple.org/index.php/FAQ2#How_to_add_multiple_content_blocks
http://wiki.cmsmadesimple.org/index.php/User_Handbook/Admin_Panel/Content/Global_Content_Blocks

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 1:25 pm
by chipper_001
Hi aozuas,

I understand how to write xhtml and the css, what I don't understand yet is how cmsms works and how I can customize it to read correctly my html and css that I have written. I know what you are saying but my box1 and box2 divs are both content?? not 1 being a title and 2 being the content? I'm confused

Thanks

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 1:40 pm
by chipper_001
Hi Ziggywigged,

Thanks I think that could be what I'm looking for but how to you still apply that to your page? say you 2 or more paragraphs on your page, and you want them all to take different styles, so you add different content blokes but how does the paragraphs within your page know which content block to attach itself to?

or do you have to create a different page for each div?

Thanks

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 5:20 pm
by Dr.CSS
It is like this say you have in template...


{content}



{content block="content2"}


Now when you edit/add page you get...

Content: edit box

Content2: edit box

Now if you are just concerned about styling specif paragraghs/ somewords in any of your edit boxes then you need to put a class call in your CSS so when editing you hilite or before you write words hit the Style drop down and assign the class to it...

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 5:47 pm
by chipper_001
Many thanks to you all, I've understand now, yeah sorry didn't know you you added more content blocks you had those sperate options come up when you add/edit a page

Thanks so much, all solved!

Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 5:58 pm
by Dr.CSS
OK is [solved] so go to first post and add that to subject line...

[Solved] Re: Question Regarding Customizing CMSMS

Posted: Tue Jan 13, 2009 6:30 pm
by chipper_001
Sorry, all solved