Redirect page to another default.php

Permalink
I would like to know how I can redirect a page to another default.php. The other one, default2.php will have a different submenu where I can change the subnavigation links.

Thank you

 
Job replied on at Permalink Reply
Job
Try searching the market place, there are some blocks around that will help you with navigation:

http://www.concrete5.org/marketplace/addons/page-redirect/...
http://www.concrete5.org/marketplace/addons/redirect1/...

I use the second one.

Don't forget to mark my post as answer if this helped!

Job.
rtania replied on at Permalink Reply
Thank you for responding.

This is the page I'm trying to redirect.
http://www.crossroadslink.com/index.php?cID=101...

The sub navigation on the right is called from a default.php. I made another one for this page called default2.php which has two links.

I would like to call it to this page only, and still keep default.php for the other pages.

Hope this makes sense. Can this be done?
Job replied on at Permalink Best Answer Reply
Job
Hi rtania

It sounds like you need multiple page types. Page types are basically a template for the page, you can read more about them here ..http://www.concrete5.org/documentation/general-topics/page-types...

What I would do is create a new file in your theme folder, lets name it default2.php, then go to Dashboard -> Page Types, then select "Add a Page Type".

Note: your theme folder be in /themes/theme_name_here/

Copy the contents of default.php into default2.php.

Name: Whatever you want
Handle: default2
Icon: Choose most appropriate

Then click Add.

Now its time to make the modifications you want, this can either done by code by editing default2.php, or by clicking the "Defaults" button for the Page Type you have just added on the Page Type interface. This will allow you to modify the page type.

Now navigate to the page you want to use this page type, hover over "Edit" and then select "Design". Choose your new Page Type you've just made and click Save.

Hope this helps, don't forgot to mark it as Answer if it does what you want Rtania :-)

Job.
rtania replied on at Permalink Reply
Thank you Job. This helped me a lot!! You are a lifesaver.
Job replied on at Permalink Reply
Job
Pleasure to help rtania!