Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Instant Website: Realty/Listings/Auto:
Instant Auto - adding a printer friendly vehicle page ???

 

 


miked
User

Apr 29, 2009, 4:37 PM

Post #1 of 7 (3446 views)
Shortcut
Instant Auto - adding a printer friendly vehicle page ??? Can't Post

I have the code embedded perfectly in the new website... love it, excellent product, easy to use!

My client wants to have a "printer friendly" link on each one of the vehicles listingDetails.php page. So I think the "default" example setup listingDetails.php with the white background, etc. like when the software was installed would be perfect with a left justification on the page.... so my question is:

What would I need to do to have a "printer friendly link" on each one of the vehicle detail pages so they can click on the link and be able to then print the page? Client wants to use this as a tear off he would put in the window of the vehicles to show the details, etc.

Mike


(This post was edited by miked on Apr 29, 2009, 7:38 PM)


ross
Staff / Moderator


Apr 30, 2009, 9:23 AM

Post #2 of 7 (3422 views)
Shortcut
Re: [miked] Instant Auto - adding a printer friendly vehicle page ??? [In reply to] Can't Post

Hi Mike

Thanks for posting!

Setting up a printer friendly page will be fairly straight forward :).

The first thing is going to be your template. Since it sounds like the original listingDetails.php page will work, lets just use that. Of course, you'll want to change that to printerFriendlyListing.php or something like that.

On your actual listing detail page, all you need to do is put a link to that new page like this:


Code
<a href="printerFriendlyPage.php?><?php echo $listingsRecord['num']">Printer Friendly Page</a>


Does that make sense? Basically, you are creating a link to the printer page and passing it the current record number so it knows which listing to load.

Give that a shot and let me know how you make out. One tip to help you get started would be to not worry about what your printer friendly template looks like. Focus on getting the link working first. Then get the template styled up.

Keep me up to date with how you are making out :).
-----------------------------------------------------------
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/



(This post was edited by ross on Apr 30, 2009, 9:25 AM)


miked
User

Apr 30, 2009, 10:55 AM

Post #3 of 7 (3418 views)
Shortcut
Re: [ross] Instant Auto - adding a printer friendly vehicle page ??? [In reply to] Can't Post

I used the line of code as instructed, and re-uploaded the listingDetail.php page... but then when you click on (Printer Friendly Page) it goes to a blank page and says:

Listing = not found!


ross
Staff / Moderator


Apr 30, 2009, 11:27 AM

Post #4 of 7 (3417 views)
Shortcut
Re: [miked] Instant Auto - adding a printer friendly vehicle page ??? [In reply to] Can't Post

Hi Mike

I imagine the code I gave you for pulling in the record number isn't quite right. That's something you might need to adjust a bit so it's using the proper variable.

Another thing to make sure is that both your detail page and printer page are using the same viewer code at the top of the page.

If you want, you can post a copy of both pages to another post and I'll take a closer look at what's happening.

Thanks!
-----------------------------------------------------------
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/



miked
User

Apr 30, 2009, 11:52 AM

Post #5 of 7 (3415 views)
Shortcut
Post deleted by miked [In reply to]

 


ross
Staff / Moderator


Apr 30, 2009, 12:29 PM

Post #6 of 7 (3414 views)
Shortcut
Re: [miked] Instant Auto - adding a printer friendly vehicle page ??? [In reply to] Can't Post

Hi Mike.

I think I see the problem. My code example was generic and needed to be adjusted a bit to match your code.

Could you try changing:

<?php echo $listingsRecord['num']?>

to

<?php echo $listing['num']?>

Also, if we end up needing to see your files again, would you mind just posting them as attachments? It's hard to read when all the code is in a forum post :).

Let me know how you make out with that.
-----------------------------------------------------------
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/



miked
User

Apr 30, 2009, 12:48 PM

Post #7 of 7 (3409 views)
Shortcut
Re: [ross] Instant Auto - adding a printer friendly vehicle page ??? [In reply to] Can't Post

That was it!!!

Thanks, works like a charm!

Mike