Jump to content

Recommended Posts

Posted

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

Posted

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

Posted
You could build one template with the current site and point all access to that page using the excellent plug-in by pete called Maintenance Mode.

That idea never occurred to me, so +1 for thinking outside the box :)

  • Like 1
Posted

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

Posted

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.

Posted

Pete - I understand.

Great solution. And thanks to everyone for the very fast and informative responses.

Aaron

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
  • Recently Browsing   0 members

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