Changing Default template causing No Content given! error

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
njprrogers
Forum Members
Forum Members
Posts: 30
Joined: Fri Oct 31, 2008 12:51 pm

Changing Default template causing No Content given! error

Post by njprrogers »

Hi,

I'm using 1.6.4.

I have set up and created a site using a couple of templates. Originally, the default template was NCleanblue which I would change during 'Add New Content'. I have no issue creating content from my templates when I change from NCleanblue to 'FIT two column layout' during 'Add New Content'.

However, if I set the default template to 'FIT two column layout' and add content, I receive an error message 'No Content given!'. The content blocks are being detected correctly in 'Add New Content' and I have added content.

Prior to this issue, TINYMCE disappeared. This was resolved by changing to a static config.

This is my template (it is also occurring on other templates I have created but this is the simplest one).

{process_pagedata}



{sitename} - {title}
{metadata}
{stylesheet}
{literal}







{/literal}





{global_content name='fit header'}




 
   
     
       
             {$cgsimple->get_root_alias('','root_alias')}
                {if $root_alias != "" && $root_alias != $page_alias}
                   {$cgsimple->get_page_title($root_alias)}
                {else}
                  {title}
                {/if}
       

{menu template='simple_navigation.tpl' collapse='1' start_level="2"}

     

     
       
             {content block="Main Text"}
       
     

   
 
 

{global_content name='fit_footer'}






User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Changing Default template causing No Content given! error

Post by Dr.CSS »

You have to have {content} tag in your template, then if you need more you can add them, but you must have {content} and put content in it, even if you don't have {content} you will notice it when editing pages and if you don't put something in it you will get an error...
Post Reply

Return to “CMSMS Core”