Default Content when creating a new page or news item

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.
Locked
djprozac

Default Content when creating a new page or news item

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Default Content when creating a new page or news item

Post 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...
djprozac

Re: Default Content when creating a new page or news item

Post 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!
tokr
Forum Members
Forum Members
Posts: 19
Joined: Sun Sep 16, 2007 3:15 am

Re: Default Content when creating a new page or news item

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Default Content when creating a new page or news item

Post 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...
Locked

Return to “CMSMS Core”