Re: Re: Different markup for index.php

From: Date: Wed, 05 Jan 2011 18:34:06 +0000
Subject: Re: Re: Different markup for index.php
References: 1 2 3  Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10222@lists.php.net to get a copy of this message
On Wed, Jan 5, 2011 at 15:35, Peter Cowburn <salathe@php.net> wrote: > On 5 January 2011 11:33, Hannes Magnusson <hannes.magnusson@gmail.com> wrote: >> On Wed, Jan 5, 2011 at 05:15, Stewart Lord <stewey@ambitious.ca> wrote: >>> Hi Hannes, >>> >>> I want the ability to produce different markup for the beta home page. I don't >>> want to modify the markup for the current stable home page or risk messing it up. Do you have any >>> suggestions on how I should do this? >>> >>> One idea I had was to copy index.php to index-stable.php, add a index-beta.php and then >>> make index.php include the appropriate one based on the result of myphpnet_beta(). >> >> >> I saw the accidental commits of yours, sounds like an OK idea. >> The current frontpage sends out chunks of cache headers, so you would >> always need to 'refresh' the page when you want to see the beta page, >> so I am wondering if we should disable the beta mode on production >> mirrors, and always redirect to docs.php.net and prototype.php.net >> when enabled? > > Is it too late to work on a branch, rather than trunk? That way, you > can change whatever markup you like as well as get rid of all of those > myphpnet_beta() conditions. > The reason I merged the prototype to trunk is exactly because maintaining stuff in an SVN branch is a complete fckup and experience has shown that it will never be merged. Plus the fact, now that this is in trunk and people can see the changes, it forces to actually work on stuff - and hopefully attracts new blood to work on these things. -Hannes

« previous php.webmaster (#10222) next »