sonnur wrote:I need this because my theme I have created does not go well with the admin panel.
If you explain the details, it might be possible to solve the issue in the first place, so no special admin template is required.
If you need the special admin menu, you can place the following code in
cmsimple/userfuncs.php:
Code: Select all
if ($adm) {
$cf['site']['template'] = 'cmsimplexh'; // adjust to the name of the desired template
$pth['folder']['template'] = $pth['folder']['templates'].$cf['site']['template'].'/';
$pth['file']['template'] = $pth['folder']['template'].'template.htm';
$pth['file']['stylesheet'] = $pth['folder']['template'].'stylesheet.css';
$pth['folder']['menubuttons'] = $pth['folder']['template'].'menu/';
$pth['folder']['templateimages'] = $pth['folder']['template'].'images/';
}
However, any page specific templates (Page -> Page template) will overwrite this.
PS: I've just seen your addition: the statement probably doesn't work, because $adm is not set at the moment the statement is executed. (it's hard to guess which version of CMSimple(_XH) you're using, so it's not clear what's line 218 in cms.php)