Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-21 18:49:33

davidarthurs
Member
Registered: 2006-06-06
Posts: 30

Create A Holding Page ?

Can anyone suggest a way to create a holding page while a website in in development?

or say you wanted to close it for a while?

I’ve read mention of changing htaccess to a index.html holding page but that means no other links will work.

RewriteRule ^(.*) index.php

I thought admin / Production Status might do this but it deosn’t seem to do anything.

Offline

#2 2006-07-22 10:56:54

alexandra
Member
From: Cologne, Germany
Registered: 2004-04-02
Posts: 1,370

Re: Create A Holding Page ?

I usually create a test section which is (while developing) the entrance page. via a robots.txt i keep all robots off spidering.

Production Status has nothing to do with keeping a page invisible.

Offline

#3 2006-07-22 17:02:37

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: Create A Holding Page ?

You could use the glx_if_frontpage plugin. Create your hold page there (add some meta noindex nofollow revisit after etc). In this way yoursite.com page can have whatever, whereas yoursite.com?pg=1 can have your design etc


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 2006-07-22 17:25:28

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: Create A Holding Page ?

As an alternative to the options already offered, you could add this line at the top of your .htaccess:

DirectoryIndex index.html index.php

…and then make index.html your “cover page.” Any hit on your root address (domain.com) will be served index.html.

The downside: [1], anyone who has already bookmarked domain.com/index.php will not be served your cover page, and [2] anywhere within your test Textpattern setup that links “domain.com” rather than “domain.com/index.php” will get sent to the cover page instead of the front page of your Textpattern install.

But if those “cons” aren’t a constraint, put your cover page up, and when you’re ready to go live, delete the index.html cover page, and remove the added line from .htaccess.


TextPattern user since 04/04/04

Offline

#5 2006-07-23 13:11:40

davidarthurs
Member
Registered: 2006-06-06
Posts: 30

Re: Create A Holding Page ?

how do you create a section that goes to the homepage as a holding page? Don’t quite follow that. is articles always HP default and then extra sections are off that?

alexandra wrote:

I usually create a test section which is (while developing) the entrance page. via a robots.txt i keep all robots off spidering.

> glx_if_frontpage

Sorry, I don’t quite follow that. if you have “If we are on the websites frontpage” tag in default template, how does it eliminate the other entries on the page or show an alternate holding page?

I’m using /title as Permanent link mode

Last edited by davidarthurs (2006-07-23 13:33:27)

Offline

#6 2006-07-23 15:26:01

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: Create A Holding Page ?

davidarthurs wrote:

> glx_if_frontpage
Sorry, I don’t quite follow that. if you have “If we are on the websites frontpage” tag in default template, how does it eliminate the other entries on the page or show an alternate holding page?
I’m using /title as Permanent link mode

This is how I use it in neme.org/main/

<code><txp:glx_if_frontpage><txp:output_form form=“front_page” /><txp:else /><txp:output_form form=“default_page” /></txp:glx_if_frontpage></code>

The front page form (ie. neme.org/main and neme.org/main/index.php) is showing one thing, whilst the default page form (ie. neme.org/main/?pg=1) shows another. Both forms are saved as “miscellaneous”.

I your case the front_page form can have a whole page without any links, with apropriate meta-tags etc whilst you are developing the site from ?pg1 which in most sites is one and the same as the default page


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2006-07-23 19:59:11

davidarthurs
Member
Registered: 2006-06-06
Posts: 30

Re: Create A Holding Page ?

What if you have other elements on a page – like recent articles and graphics, but on the holding page you just want a ‘coming soon’ type page.

You can’t really wrap a whole page’s content with the tag can you?

Offline

#8 2006-07-24 07:48:58

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: Create A Holding Page ?

yes You can do it. One way for you might be

<code><txp:glx_if_frontpage>(1)<txp:else />(2)</txp:glx_if_frontpage></code>

where (1) could be

<code><!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<meta name=“revisit-after” content=“2 days” />
<meta name=“robots” content=“noindex,nofollow” />
<title><txp:page_title /></title>
</head>
<body>
div id=“wrapper”>
<p>Under construction</p>
</div>
</body></html></code>

and you could use in line styles for the above

whereas (2) could be your code


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#9 2006-07-24 10:04:33

davidarthurs
Member
Registered: 2006-06-06
Posts: 30

Re: Create A Holding Page ?

seems to just produce a blank page with no code .

would 1 and 2 need to be forms i.e have the whole html page as a form ?

Offline

#10 2006-07-24 14:11:51

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: Create A Holding Page ?

davidarthurs wrote:

seems to just produce a blank page with no code .
would 1 and 2 need to be forms i.e have the whole html page as a form ?

That was my original suggestion. I have (1) and (2) as forms so as to have a clearer picture of what happens in the ‘front’ page and what happens in the ‘default’ pages. I have them both saved as “miscellaneous” forms

The code above should work though too.

(1) is the front page and it should just say “Under Construction”
(2) is the default pages but I did not include any code in there

Thinking… What do you have in your default form?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#11 2006-07-24 19:07:57

davidarthurs
Member
Registered: 2006-06-06
Posts: 30

Re: Create A Holding Page ?

>What do you have in your default form?

<code>

<txp:body />
<div id=“title”><span class=“title_name”><txp:permlink><txp:title /></txp:permlink></span> <span class=“title_posted”>posted <txp:posted /></span> </div>

</code>

but I have<code> <txp:recent_articles> </code>
and other bits in my default template.

Last edited by davidarthurs (2006-07-24 19:33:21)

Offline

#12 2006-07-25 08:42:04

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: Create A Holding Page ?

Default form looks ok so what you could have in your default page is

<code><txp:glx_if_frontpage>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head>
<meta http-equiv=“content-type” content=“text/html; charset=utf-8” />
<meta name=“revisit-after” content=“2 days” />
<meta name=“robots” content=“noindex,nofollow” />
<title><txp:page_title /></title>
</head>
<body>
<div id=“wrapper”>
<p>Under construction</p>
</div>
</body>
</html>
<txp:else /></code>
<span style=color:red;>Whatever you have in your default template here</span>
<code></txp:glx_if_frontpage></code>

You may of course, if you wish, make the placeholder page more aesthetically pleasing to what I have above

Last edited by colak (2006-07-25 08:44:52)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB