Jump to content

Recommended Posts

Posted

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!

Posted

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
Posted

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. 

Posted

It's exactly what wanze posted. There's no other way than redirect your home to a subpage. It's same as if you would add a redirect in your htaccess.

Posted

Thanks, all. I've decided to just re-direct the landing page with an Apache re-write rule. I will still be able to see the page if necessary through a back-door.

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
  • Recently Browsing   0 members

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