the {content} output template

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
voxberry
Forum Members
Forum Members
Posts: 56
Joined: Tue Sep 01, 2009 1:04 pm

the {content} output template

Post by voxberry »

Hello everybody .

I am running cmsms 1.6.4 . fresh install .

So, the {content} tag will output the content of a page, and it will write a tag with the page title and after that, several tags .

I can NOT figure it out .. Where does the content output 'template' can be found ?

I would like to add some content betwean the tag and the first tag .

thanks in advance !
Jean le Chauve

Re: the {content} output template

Post by Jean le Chauve »

Take a look at the propertie's TyniMce.
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Re: the {content} output template

Post by Fraserm »

I'm not 100% sure I understand what you want to do, but here goes...

Are you trying to add some static content to your template? i.e. content that is the same on every page that uses that template, or are you trying to add some text only for one page?

If you're trying to add the text for every page there are a number of ways you could do it, but the easiest would be to write it into your template as static text, so go to Layout --> Templates and click on whatever template you want to add the content to.

Once you've clicked on it you'll see a mixture of HTML and Smarty tags in the editor. Look for the smarty tag {title}, it'll probably look something like {title}.

Further down the template you're going to see a {content} tag (possibly containing other parameters as well). You'll want to add your custom text between the {title} and {content} tags. Remember to span it with a css class or it won't be styled.

If that's not what you wanted to do and i've misunderstood you, write back and i'm sure I can help.

Edit: using a global content block would be the approved way of doing that by the way, but you still have to edit the template to call the block.
Last edited by Fraserm on Wed Sep 02, 2009 9:35 am, edited 1 time in total.
voxberry
Forum Members
Forum Members
Posts: 56
Joined: Tue Sep 01, 2009 1:04 pm

Re: the {content} output template

Post by voxberry »

sorry guys.... this was just a mistake I made ...

it's all good now :)

have a nice day .
Post Reply

Return to “CMSMS Core”