Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: 3 Level Menu to redirect to URL
12-21-2012, 01:43 PM #1
- Join Date
- Dec 2012
- Thanked 0 Times in 0 Posts
3 Level Menu to redirect to URL
Could someone advise what code I require to allow for the following....
I have a template page called subpage.php which all menu items use. The menu's are built using a treemenu build function.
I have a 3 level menu and require the 3rd level on a particular sub menu to have all it's sub sub menus redirected to external urls.
Services ---> Company ---> Service 1---> (forwards to www.services#1.com.au)
I hope this makes sense.
What I "think" i need is some code to call "any page" assigned as a subpage of the "Company" Page ID
Eg; My "Company" page is assigned an ID of 45 and all Sub Sub pages have a field "submenu" set to 45. I can see all my sub sub menu's fine, I just need something to tell it to go to external URLs.
Some code required to do something like this.....if page = 45 then forward to URL.
I do not know anything about PHP so am hoping someone may be able to assist.