Working behind an existing site or under construction index.html

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Working behind an existing site or under construction index.html

Post by Dr.CSS »

I work behind existing sites or have a parked page or under construction index.html in the root and have been frustrated with the View Site link in the admin always going to the index.html, well the nice guys in the IRC have given me a solution and here it is...

I the folder lib/classes find first .php, class.admintheme.inc.php and on line 829 find...         

'viewsite'=>array('url'=>'../','parent'=>-1,

And change it to...

'viewsite'=>array('url'=>'../index.php','parent'=>-1,


Good to go, may have to clear cache in admin and browser but it worked for me even with the new theme...
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Working behind an existing site or under construction index.html

Post by kermit »

i just use an admin shortcut whenever this bugs me (which ain't that often, as once a tab with front-end is loaded, it tends to stay there, so just a refresh will do).
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Working behind an existing site or under construction index.html

Post by Dr.CSS »

I believe it may be added to 1.4...
Pierre M.

Re: Working behind an existing site or under construction index.html

Post by Pierre M. »

mark wrote: I believe it may be added to 1.4...
I'd like it.

Pierre
Post Reply

Return to “Tips and Tricks”