using content editor to add text to a custom div

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
davids355
Power Poster
Power Poster
Posts: 279
Joined: Fri Apr 04, 2008 10:08 am
Location: UK

using content editor to add text to a custom div

Post by davids355 »

Hi everyone.

Firstly I would like to say thanks for this software - I have been looking for a good content editor for a long time, and this one is excellent!!

I have successfuly set up the content editor and I have started building a page (using the templates and style sheets) to my needs.

I have a full page layout, left hand navigation, content in the middle 80% of the page, and this all works fine.

However, I have also created a seperate div that floats on the right hand side of the page- and although I can add text to this through the template, I would like to be able to add text to it through Content>Pages in the content editor.

Is there a way I could achieve this?

Thanks in advance.

Dave
aroundthefur
Forum Members
Forum Members
Posts: 20
Joined: Mon Nov 19, 2007 4:02 pm

Re: using content editor to add text to a custom div

Post by aroundthefur »

1. Global Content Block - Div has always the same Content

Include them in your template with code like this:

Code: Select all

{global_content name='Name of Global Content Block'}
You can add/edit GCB in admin panel, menu Contents > Global content blocks.

2. Ordinary Content Blocks - Div Content can be different through every single page

or to change the content with every page add

Code: Select all

{content block="YOUR FLOATING DIV"}
to your template and a

HOPE that helpes, and sorry for my poor english :)
davids355
Power Poster
Power Poster
Posts: 279
Joined: Fri Apr 04, 2008 10:08 am
Location: UK

Re: using content editor to add text to a custom div

Post by davids355 »

Ah thanks. that has worked perfectly!!!
Post Reply

Return to “CMSMS Core”