|
|
#11 | |
|
Moderator
Join Date: Mar 2006
Posts: 4,126
Rep Power: 101 ![]() ![]() |
Quote:
The easiest way to avoid that and unnecessary JS being loaded is to surrounded the google JS lines with smarty logic to check for and only load the google maps JS if the $body variable is your viewlisting.tpl or viewlisting2.tpl. The same for the body tag. For example, in layout.tpl where you would normally place my code to load the google map JS do this.... Code:
{* google maps*}
{if $body=="viewlisting.tpl"}
{$google_map_header}
{$google_map_js}
{/if}
{* google maps*}
Code:
{if $body=="viewlisting.tpl"}
<body onload="onLoad()">
{else}
<body>
{/if}
__________________
Larry. (Please note: I am not a 68C employee. I am a customer and volunteer who helps with questions where I can and the forums spam free) Set your site apart from the competition with one of my modules...... Google Map Module | You Tube Module | Google Calendar Module | Event Calendar Module 68 Classifieds Important Links Customer Area | Issue Tracker | Knowledge Base | User Manuals |
|
|
|
|
|
|
#12 |
|
Member
Join Date: Sep 2006
Posts: 50
Rep Power: 12 ![]() |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do I automatically feed a new classifieds site ads from major classifieds sites | j890432m | v4 Modules / Modifications | 4 | 06-23-2008 07:53 PM |
| Where to find a developer for 68 Classifieds site? | proforums | v4 Modules / Modifications | 1 | 05-29-2008 10:04 AM |
| Archiving Classifieds | philoo | Pre Sales Questions | 5 | 04-14-2008 08:54 AM |
| Converting Online Classifieds to Print | Loxguard | Pre Sales Questions | 6 | 04-03-2008 12:34 PM |
| Looking for Classifieds Software... | engagedmedia | Pre Sales Questions | 2 | 07-30-2007 09:46 AM |