Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager Add-ons:
Menu changing for publish_listing

 

 


frhs00
User

Nov 12, 2007, 7:10 PM

Post #1 of 4 (74641 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 (74632 views)
Shortcut
Re: [frhs00] Menu changing for publish_listing [In reply to] Can't Post

Hi David,

Thanks for your post. Smile

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 Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


ryan_dot
User

Nov 29, 2007, 2:05 AM

Post #3 of 4 (73783 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.

[i]
[url]http://www.westendpropertysales.com[/url]
[url]http://www.eadiemcfarland.co.uk[/url]
[url]http://www.macneanrestaurant.com[/url]
[url]http://www.theclocktower.ie[/url]
[/i]


Jake
Staff / Moderator


Nov 30, 2007, 11:50 AM

Post #4 of 4 (73567 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. Smile
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]