> I think it should be easy enough to write a tag for doing
> redirects...
> (You don't need a special kind of "redirect" page, you can
> just create a
> new page and insert this tag). Or perhaps this tag should
> actually be
> provided by a custom page type...
Since the changes that we're talking about are on mental, it's actually
MUCH simpler to just introduce a redirect page than to bastardize the
tags.
class RedirectPage < Page
def headers
location = part('content').content
{
'Status' => 302,
'Location' => location
}
end
def render
''
end
end
You'd probably also want a page status that takes the page out of the
'<r:children>' set, yet still makes the page available for rendering
(the hidden status doesn't cover that does it?)
Dan.
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant