[solved] Question Regarding Customizing CMSMS

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
chipper_001
Forum Members
Forum Members
Posts: 30
Joined: Mon Jan 12, 2009 11:29 am

[solved] Question Regarding Customizing CMSMS

Post 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!
Last edited by chipper_001 on Tue Jan 13, 2009 6:31 pm, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Question Regarding Customizing CMSMS

Post 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
chipper_001
Forum Members
Forum Members
Posts: 30
Joined: Mon Jan 12, 2009 11:29 am

Re: Question Regarding Customizing CMSMS

Post 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
aozuas

Re: Question Regarding Customizing CMSMS

Post 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
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

Re: Question Regarding Customizing CMSMS

Post 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
Take a penny, leave a penny.
chipper_001
Forum Members
Forum Members
Posts: 30
Joined: Mon Jan 12, 2009 11:29 am

Re: Question Regarding Customizing CMSMS

Post 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
chipper_001
Forum Members
Forum Members
Posts: 30
Joined: Mon Jan 12, 2009 11:29 am

Re: Question Regarding Customizing CMSMS

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Question Regarding Customizing CMSMS

Post 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...
chipper_001
Forum Members
Forum Members
Posts: 30
Joined: Mon Jan 12, 2009 11:29 am

Re: Question Regarding Customizing CMSMS

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Question Regarding Customizing CMSMS

Post by Dr.CSS »

OK is [solved] so go to first post and add that to subject line...
chipper_001
Forum Members
Forum Members
Posts: 30
Joined: Mon Jan 12, 2009 11:29 am

[Solved] Re: Question Regarding Customizing CMSMS

Post by chipper_001 »

Sorry, all solved
Post Reply

Return to “Developers Discussion”