Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Listings Manager (Realty Manager & Auto Manager):
multiple publish listing pages

 

 


easyrentals.ca
User

May 1, 2005, 7:10 PM

Post #1 of 13 (7078 views)
Shortcut
multiple publish listing pages Can't Post

Hi I have a question, didnt see it being answered in the forums.



How can you display a _publish_listing.html based on a value in a $lfield$

say that $LFIELD1$ has a value of 1-9 and if the value selected is (1) i want the program to display _publish_listing1.html based on that value

if value was 2 it would display _publish_listing2.html etc...

can this be done?

Rob.

www.easyrentals.ca


Luke
Staff / Moderator


May 2, 2005, 9:39 AM

Post #2 of 13 (7065 views)
Shortcut
Re: [easyrentals.ca] multiple publish listing pages [In reply to] Can't Post

Hi Rob,

Thanks for your post! :)

Just so I understand you correctly. You would like to have an option where you can choose from a drop down what template a listing is published with?

So if you choose _publish_listing1.html the listing would be published using that template, and if you were to choose _publish_listing5.html the listing would be output using _publish_listing5.html.

Please let me know if this is what you're trying to do.
Luke Holzken
Product Development


osluk
User

May 11, 2005, 12:35 AM

Post #3 of 13 (7011 views)
Shortcut
Re: [Luke] multiple publish listing pages [In reply to] Can't Post

Rob i have a similar-ish query. Assuming I can fit in the french equivalent of the fields in the database (where these are different - numeric fields would be common) can I have a french version and English version of the output?

In other words 2 different sets of templates for publish listing and search results etc one using the fields appropriate to UK and one appropriate to the French?

Cheers Chris
_______________________
Chris from Optima 
"please always add logical keywords to help find items"

[url "http://www.osl.net "]Optima Solutions Limited[/url]
http://www.osl.net
"technology for business" 
Nominet member for .UK names and European hosting




Cliff
Staff


May 11, 2005, 1:25 PM

Post #4 of 13 (6992 views)
Shortcut
Re: [osluk] multiple publish listing pages [In reply to] Can't Post

Hi Chris,

Thanks for posting.

Setting up Listings Manager to use different templates isn't too hard, and I'll do my best to give you instructions on how you can set this up. Let's start with the search query pages.

1. Make a copy of your current _search_query.html template. Rename it something relevant like:

search_query_fr.html

Save the template, and re-upload it to the server. You can now translate this template and access it through the search engine like this:

http://www.yoursite.com/listman/exec/search.cgi?template=_search_query_fr.html

Then what you can do is pass the results from the search into a specific results template, and then from the translated results template into a translated listings page.

2. Make a copy of your current _search_results.html template. Rename it something relevant like:

_search_results_fr.html

3. Then you can do the same thing for the _publish_listing.html template. Make a copy, and rename it something like:

_publish_listing_fr.html

4. On the new translated search results template, use you find/replace on your HTML editor and change the link reference to each listing from this:

$listing_url$/$listing_file$

to this:

$search_url$?view=$listing_num$&template=_publish_listing_fr.html

This tells the program to use the alternate translated template.

5. Once that is done you need to tell the translated search template that you have made that you want the results that it outputs to be displayed on the translated search results template. So all you need to do is add another hidden form field to the search form (_search_query_fr.html). It should look like this:

<input type="hidden" name="template" value="_search_results_fr.html">

6. When you have confirmed that all that is setup properly, you can go ahead and start to configure each template so that they are fully translated.

Now each of the templates that you have created are completely customizable, so you can add what ever you like to them. And setting this up with an other language template set is exactly the same method. That should give you the effect that you are looking for, but if things aren't working the way that you expect just let me know and I'll try to get you back on track.
Regards,
Cliff Stefanuk - Customer Service Manager
[email]support@interactivetools.com[/email]


osluk
User

May 13, 2005, 4:07 AM

Post #5 of 13 (6973 views)
Shortcut
Re: [Cliff] multiple publish listing pages [In reply to] Can't Post

Just to clarify - without a template being specified the default is used?

Thanks for the quick reply.
_______________________
Chris from Optima 
"please always add logical keywords to help find items"

[url "http://www.osl.net "]Optima Solutions Limited[/url]
http://www.osl.net
"technology for business" 
Nominet member for .UK names and European hosting




Cliff
Staff


May 13, 2005, 4:13 PM

Post #6 of 13 (6956 views)
Shortcut
Re: [osluk] multiple publish listing pages [In reply to] Can't Post

Hi Chris,

That's right. Everything will use the default templates, unless you tell them otherwise. Let me know if you need any more clarification Smile
Regards,
Cliff Stefanuk - Customer Service Manager
[email]support@interactivetools.com[/email]


osluk
User

May 14, 2005, 8:25 AM

Post #7 of 13 (6940 views)
Shortcut
Re: [Cliff] multiple publish listing pages [In reply to] Can't Post

I just have to find the time to do this now!

Thanks
_______________________
Chris from Optima 
"please always add logical keywords to help find items"

[url "http://www.osl.net "]Optima Solutions Limited[/url]
http://www.osl.net
"technology for business" 
Nominet member for .UK names and European hosting




osluk
User

Jun 14, 2005, 10:08 AM

Post #8 of 13 (6777 views)
Shortcut
Re: [osluk] multiple publish listing pages [In reply to] Can't Post

So if I want to define a search criteria and define the template

is it cgi&"tempale"&"searchstring"

exec/search.cgi?

tempale -> template=_search_query_tab.html

searchstring -> user_num=0&search=1&perpage=20



Cheers Chris
_______________________
Chris from Optima 
"please always add logical keywords to help find items"

[url "http://www.osl.net "]Optima Solutions Limited[/url]
http://www.osl.net
"technology for business" 
Nominet member for .UK names and European hosting




ross
Staff / Moderator


Jun 14, 2005, 1:23 PM

Post #9 of 13 (6770 views)
Shortcut
Re: [osluk] multiple publish listing pages [In reply to] Can't Post

Hi Chis

Thanks for posting!

To specify the template and criteria in the same url you can use this example as a reference:


Code
/search.cgi?search=1&tempate=_template_name.html&user_num=0&perpage=20


Notice how just before the first variable (“search=1”) I use a question mark, but after that “&” are used to separate variables.

Does that make sense? Could you give it a shot and let me know how you make out?

I look forward to hearing from you Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - 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: http://www.interactivetools.com/consulting/



samson
New User

Oct 30, 2008, 5:43 PM

Post #10 of 13 (4324 views)
Shortcut
Re: [Luke] multiple publish listing pages [In reply to] Can't Post


In Reply To
Hi Rob,

Thanks for your post! :)

Just so I understand you correctly. You would like to have an option where you can choose from a drop down what template a listing is published with?

So if you choose _publish_listing1.html the listing would be published using that template, and if you were to choose _publish_listing5.html the listing would be output using _publish_listing5.html.

Please let me know if this is what you're trying to do.


Hi. I'd like to make my site multi-lingual. I'm not sure exactly what I need, this description above sounds like it. In the example above, if you use _publish_listing5.html,
what would happen to the listings created when using _publish_listing5.html. Would the listings would go into a different folder and be separated from the english listings.


Donna
Staff / Moderator


Nov 4, 2008, 12:08 PM

Post #11 of 13 (4216 views)
Shortcut
Re: [samson] multiple publish listing pages [In reply to] Can't Post

Hi Samson,

Actually, rather than specifying a different template per listing, an easier method would just be to have each listing contain the information for all of the different language listings you want (you have up to 75 fields to use however you'd like) ... then use something like this tutorial to create a second publish listing page with the same listing:

http://www.interactivetools.com/products/listingsmanager/tutorials/tutorial_lm_printer_friendly.html

LEt me know if that's something that would work for you. : )

Donna

--
support@interactivetools.com


Gpnet
New User

Nov 16, 2008, 6:44 AM

Post #12 of 13 (4045 views)
Shortcut
Re: [Cliff] multiple publish listing pages [In reply to] Can't Post

Hello,

I managed all you wrote, and it works fine.
I have only one link not working and I give up now in finding the problem.

on this page:
http://realty.chrismathi.com/listman/exec/search.cgi?view=&template=_search_query_dk.html

when I try to link Vore boliger (our Listings) I come out on the right page: http://realty.chrismathi.com/listman/exec/search.cgi?view=&template=_publish_listing_index_dk.html

But nothing is displayed.

This are the links I made:
<div align="left"><a href="$search_url$?view=$listing_num$&amp;template=_publish_listing_index_dk.html">Vore boliger</a> - <a href="$search_url$?view=$listing_num$&amp;template=_search_query_dk.html">S&oslash;g (udvidet) </a></div>

Can you please let me know what went wrong.
Thanks
Sabine


(This post was edited by Gpnet on Nov 16, 2008, 6:47 AM)


MikeB
Staff / Moderator


Nov 17, 2008, 11:14 PM

Post #13 of 13 (3987 views)
Shortcut
Re: [Gpnet] multiple publish listing pages [In reply to] Can't Post

Hi Sabine,

Thanks for the post!

The URL you'll actually want to use to show all of your listings will be:

http://realty.chrismathi.com/listman/exec/search.cgi?search=1&template=_publish_listing_index_dk.html

I noticed this page actually shows an error message so I'd suggest comparing this file to the default _search_results.html template file to ensure that you're using the same "templatecells" as this is actually a search results template.

I hope this helps Sabine! Smile

Cheers,
Mike Briggs - 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]