Page 1 of 1

Changing Default template causing No Content given! error

Posted: Tue Dec 01, 2009 9:30 am
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'}







Re: Changing Default template causing No Content given! error

Posted: Tue Dec 01, 2009 6:43 pm
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...