 |

frhs00
User
Nov 12, 2007, 7:10 PM
Post #1 of 4
(21511 views)
Shortcut
|
|
Menu changing for publish_listing
|
Can't Post
|
|
Is it possible to do a php loop found here http://www.w3schools.com/php/php_looping.asp or some other "if-then" function code that will work on the publish listing pages to change a menu on that page. For example, if a listing has x then menu y shows up if listing has a then b shows up. Anyone know? Thanks, David
|
|
|  |
 |

Jake
Staff
/ Moderator

Nov 13, 2007, 3:15 PM
Post #2 of 4
(21502 views)
Shortcut
|
|
Re: [frhs00] Menu changing for publish_listing
[In reply to]
|
Can't Post
|
|
Hi David, Thanks for your post. Listings Manager itself doesn't have this kind of functionality built-in, but you're welcome to try setting this up through another method. Since you can use PHP, javascript, or any other type of code on your template files it should be possible to get something like this going! ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

ryan_dot
New User
Nov 29, 2007, 2:05 AM
Post #3 of 4
(20653 views)
Shortcut
|
Re: [frhs00] Menu changing for publish_listing
[In reply to]
|
Can't Post
|
|
Hi David i have the same issue of needing to display different menus on the publish listing page depending on what type of listing was been displayed. First i set up all the different menus as includes Then i added a new setup field in the admin section call "include menu" i set it as a dropdown and set the values to (menu_let.htm, menu_buy.htm, menu_sell.htm). This allows the user to attach a particular menu to each listing. On the _publish_listing.html page add the following line <!--#include virtual="/includes/$lfield8$" --> (Replace 8 with the correct place holder number) Since your using PHP i guess it would be <?php require_once('includes/$lfield8$'); ?> Then re-publish your listings (make sure your files are been publish with a .shtml extension, your .php extension should also work fine) This solution works fine for me and i can change a lot of the page layout for _publish_listing.html using this technique, i'm sure that i will be able to use javascript IF statements to make this process a lot more user friendly and quicker when i get some more time to work on it. http://www.westendpropertysales.com http://www.tcyouthproject.com http://www.eadiemcfarland.co.uk http://www.macneanrestaurant.com http://www.theclocktower.ie http://www.thegaultgroup.com
|
|
|  |
 |

Jake
Staff
/ Moderator

Nov 30, 2007, 11:50 AM
Post #4 of 4
(20437 views)
Shortcut
|
|
Re: [ryan_dot] Menu changing for publish_listing
[In reply to]
|
Can't Post
|
|
Hi ryan_dot, Thanks for posting your solution to this - it's pretty clever and I'm sure this will help out other users. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|