Page 1 of 1

using content editor to add text to a custom div

Posted: Fri Apr 04, 2008 10:14 am
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

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

Posted: Fri Apr 04, 2008 10:28 am
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 :)

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

Posted: Fri Apr 04, 2008 10:58 am
by davids355
Ah thanks. that has worked perfectly!!!