Jump to content

Hidden developing site


aw.be
 Share

Recommended Posts

Hello everyone.

I've only ever developed static sites and then easily moved them to the client's server.

But, I am developing a client site with PW and am not sure the best way to go about doing this.

The only page on their site right now is a static splash type page. However, I'd like to install and then develop on their server without the site being visible. When everything is ready, I'd like to do the switchover.

Any advice on how to do this easily?

Thanks.

Aaron

Link to comment
Share on other sites

i usually put this on the top of my home template:

if($user->name == "guest"){
//code for temporary site
}else{
//normal home template
}

like this, only logged users can see the developing homepage

Link to comment
Share on other sites

Thanks everyone. Haven't looked at the plugin yet, but is it straight forward to point all access to a page?

And just to confirm that I could have all files in the root - then I'd just need to maintain 2 sets of css files for the time being, correct? (1 for current site, 1 for new site)

Aaron

Link to comment
Share on other sites

Yep - basically you would install that module (really easy, just drop the file into the site/modules directory, login to the PW admin and install it) and one of the settings for it allows you to point non-logged-in users to any page on your site.

What arjen is suggesting is to then create a page and a new template with your current content and tell the module to direct any non-logged-in users directly to that page.

This way, you can go to yoursite.com/processwire and log in and get access to the whole site, whilst everyone else only sees that page. That way you also don't have the headache of your one page being index.html and ProcessWire's index.php conflicting with each other, which is quite likely going to cause you issues.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...