[solved]How to position new content within 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
RyanC
Forum Members
Forum Members
Posts: 97
Joined: Fri Aug 05, 2011 9:02 pm

[solved]How to position new content within template?

Post by RyanC »

Hi,
I have a template set up something like this:

(start predefined template elements)

<div class="new content"></div>

(end predefined template elements)

How do I get the new content to go between the template elements? As of now, whenever I add new content to a page, the content goes to the top of the document, it is not within the flow of the html elements.

Thanks for any help
Last edited by RyanC on Wed Aug 24, 2011 12:09 am, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4020
Joined: Wed Sep 05, 2007 8:03 pm

Re: How to position new content within template?

Post by Jos »

I guess I don't understand the question... but will this do?

Code: Select all

(start predefined template elements)

<div class="new content">{content}</div>

(end predefined template elements)
RyanC
Forum Members
Forum Members
Posts: 97
Joined: Fri Aug 05, 2011 9:02 pm

Re: How to position new content within template?

Post by RyanC »

Thanks Jos, wasn't sure about the {content} by itself.

I found a way to do it like this, {content block="putStuffHere"}
in the template. That way there is always an empty space to put content on each new page. Otherwise it was appearing outside of the actual template, not in the template.
Post Reply

Return to “CMSMS Core”