Jump to content

Hide landing page, keeping children visible


moose1
 Share

Recommended Posts

Hello,

I have a landing page for several sections of our website that are "special features."

http://www.keene.edu/featured/

Is there a way in the Pwire CMS to make the landing page invisible or re-direct elsewhere while leaving its children published? I'd like to prevent people from walking up the directory tree to the landing page. I know I can do this with a simple Apache rewrite rule, but was wondering if there's a way to do in Pwire as well.

Thanks!

Link to comment
Share on other sites

Do you want for example to redirect always to the first child of a landing page?

You could give your landing pages a template "redirect" and in the template file:

$session->redirect($page->children->first()->url);
 

This would redirect you to the first child-page

  • Like 1
Link to comment
Share on other sites

Hi Wanze,

Not exactly, although that would be very useful in other instances. In this case, the landing page is really just an index that is not meant to be visible, whereas its children need to be published and linked to from other sections of the site as well as from various marketing material, print and electronic.

Thank you for the redirect code, however. I can make use of that, too. 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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