Page 1 of 1
Default Content when creating a new page or news item
Posted: Thu Jul 13, 2006 5:59 pm
by djprozac
Is it possible to set up TinyMCE (or any editor really) so that when you create a new page, it is automatically filled with certain default content?
Re: Default Content when creating a new page or news item
Posted: Thu Jul 13, 2006 6:10 pm
by Dr.CSS
not automaticaly...
you can make a global content block and put it in the page edit content box... you can still add more/custom content above/below this tag...
or put the global content block tag in the template where you would put the {content} tag then put the {content} tag above or below it and you would still be able to add custom content on each page thru the page edit content box...
second option would be good if you have more than one person adding content, they would not be able to mess with the GCB tag eg., erase/format it...
Re: Default Content when creating a new page or news item
Posted: Thu Jul 13, 2006 9:50 pm
by djprozac
mark wrote:
not automaticaly...
you can make a global content block and put it in the page edit content box... you can still add more/custom content above/below this tag...
or put the global content block tag in the template where you would put the {content} tag then put the {content} tag above or below it and you would still be able to add custom content on each page thru the page edit content box...
second option would be good if you have more than one person adding content, they would not be able to mess with the GCB tag eg., erase/format it...
Hmm...That's a shame. I'll give the gcb's a try, but I'm pretty sure that it's not really what I'm looking for. Thanks!
Re: Default Content when creating a new page or news item
Posted: Tue Dec 13, 2011 12:46 am
by tokr
I know this is an old thread and maybe I'm behind the times, but I found a way to have a content area pre-filled with different content for different templates and content blocks.
You must use Advanced Content and put something like the following in your template:
Code: Select all
{content block="first_block" description="The First Block" default=":::global_content name='first_block_def_content':::" smarty="true"}
This will run the global content block 'first_block_def_content' when a new page with this template is created.
CMSMS v 1.10.2
Re: Default Content when creating a new page or news item
Posted: Tue Dec 13, 2011 1:20 am
by Dr.CSS
Back when this question first came up it wasn't possible but now you can go to site admin > page defaults and put content in the Content: edit box and it will show up in every page no matter what template is used...