Re: [Radiant] Endnotes and 404

2009-12-01 Thread John Long
This is not a bug. A 404 page is not intended to have children. I'd
recommend that you include some javascript that automatically
redirects to your home page.

--John

On Mon, Nov 30, 2009 at 9:54 AM, Anton Aylward anton.aylw...@rogers.com wrote:
 Endnotes are an alternative to footnotes.
 Long footnotes can intrude into the page, using endnotes moves them 'out
 of band'.

 I've created an otherwise blank page /endnotes/ and the endnotes live
 under there.  Hyperlinks from the text lead there.  simple enough, eh?

 But I don't want people to hack the address bar and look at the page
 /endnotes/ itself.  So I marked it as Page type: file not found and
 it should come as a 404.

 It does.  The only problem is that so do its children.
 And I have explicitly marked them as normal

 Is this a bug?  Is it inherent in the logic of the way things work or it
 is something I've done wrong?



 --
 Human history becomes more and more a race between education and
 catastrophe.
    --H. G. Wells

 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Endnotes and 404

2009-12-01 Thread Anton Aylward
John Long said the following on 12/01/2009 01:05 PM:
 This is not a bug. A 404 page is not intended to have children. I'd
 recommend that you include some javascript that automatically
 redirects to your home page.

DUH!

I'm not sure I agree.
Marking an existing page as 404 'cos  its been taken out of service,
perhaps for legal reasons, seems reasonable, and its also reasonable
that its children need not be taken out of service.

This is no different, logically, from a parent page that is taken out of
service with a redirect to a replacement, and whose children are not
affected.  The only difference is whether or not there *is* a replacement.

So I see this as a parsing problem.
The parser hits a 404 page and stops.



Anyway ...
I tried puting a javascript redirect in the header -- IT'S SLOW!
It also gives out the wrong information

In the head for /extra I put

script type=text/javascript
window.location.href='/page-not-found';
/script

and in /page-not-found I have

The page you were looking for - r:attempted_url / - could not be found


However after accessing /extra and getting redirected the message I see is

The page you were looking for - /page-not-found - could not be found

Which is not right.
At least when /extra was a 404 page the message was right.

I'm not a programmer.  I found that javascript snippet via google.
It seems to make sense.


-- 
The only secure computer is one that's unplugged, locked in a safe,
and buried 20 feet under the ground in a secret location... and i'm
not even too sure about that one - Dennis Huges, FBI.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant