[solved] Change admin interface link...

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

[solved] Change admin interface link...

Post by Dr.CSS »

How would I change the admin link 'View Site' to point to site.com/index.php, I work on sites with index.html in front till going live with CMSMS driven site and if I need to view changes and click it I get site.com/index.html...

I would like this as default... ;)
Last edited by Anonymous on Fri Oct 26, 2007 7:09 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Change admin interface link...

Post by jmcgin51 »

not 100% sure, but I think it's in defaultTheme.php, lines 258 - 262


if ($menuItem['url'] == '../index.php')
    {
      $iconSpec = 'viewsite';
    }
  echo '';



hope this is somewhat close...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Change admin interface link...

Post by Dr.CSS »

Thanx but that's not it...
Pierre M.

Re: Change admin interface link...

Post by Pierre M. »

May be around line 825 in lib/classes/class.admintheme.inc.php :

Code: Select all

// base view site menu ------------------------------------      
'viewsite'=>array('url'=>'../','parent'=>-1,
'title'=>$this->FixSpaces(lang('viewsite')),
'description'=>'','show_in_menu'=>true, 'target'=>'_blank'),
If so, 'url'=>'../index.php' could do it ?

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

Re: Change admin interface link...

Post by Dr.CSS »

That's it... Thanx....

  mark
Post Reply

Return to “Developers Discussion”