Page 1 of 1

[SOLVED, but wondering]News 1.1 - The meaning of the news default template form?

Posted: Fri Aug 24, 2007 1:34 pm
by Vin
Hi,

upgraded the cmsms to the version 1.1. Fixed the template. As I don't need multiple news templates, I don't have to specify them.
I have this problem: the news template summary form (the one that's reachable with the summary tab) - when I click on the submit button, the changes are not saved to the default template. I can select the default template and change it from the list of templates, however, this is not very pleasant way to use it.

So what's the issue? I'm sorry if this has been posted before, I cannot find this problem posted in the forum.

[EDIT]Well, since it doesn't matter so much to me whether I edit the template right from the tab or not, I commented the code of the form in action.defaultadmin.php:

Code: Select all

if( $this->CheckPermission( 'Modify Templates' ) )
  {
    echo $this->StartTab('summary_template', $params);
    {
      /*$this->_AdminEditDefaultTemplateForm($id,$returnid,
					   'default_summary_template_contents',
					   'summary_template',
					   $this->Lang('title_summary_sysdefault'),
					   'orig_summary_template.tpl',
					   $this->Lang('info_sysdefault'));
      echo '<h3>'.$this->Lang('title_available_templates').'</h3>';*/
      $this->_AdminCreateTemplateList($id,$returnid,
				      'summary',
				      'default_summary_template_contents',
				      'summary_template',
				      'current_summary_template',
				      $this->Lang('title_summary_template'));
    }
    echo $this->EndTab();
	
    echo $this->StartTab('detail_template', $params);
    {
      /*$this->_AdminEditDefaultTemplateForm($id,$returnid,
					   'default_detail_template_contents',
					   'detail_template',
					   $this->Lang('title_detail_sysdefault'),
					   'orig_detail_template.tpl',
					   $this->Lang('info_sysdefault'));
      echo '<h3>'.$this->Lang('title_available_templates').'</h3>';*/
      $this->_AdminCreateTemplateList($id,$returnid,
				      'detail',
				      'default_detail_template_contents',
				      'detail_template',
				      'current_detail_template',
				      $this->Lang('title_detail_template'));
    }
    echo $this->EndTab();
  }

Re: [SOLVED, but wondering]News 1.1 - The meaning of the news default template f

Posted: Fri Aug 24, 2007 7:07 pm
by Dr.CSS
They've talked about doing something else with the sample template that you see when you hit one of the template tabs, as it looks like that's the one you should be changing but it does nothing...