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

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
Vin

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

Post 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();
  }
Last edited by Vin on Fri Aug 24, 2007 6:04 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

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

Return to “CMSMS Core”