geodesicsolutions-community / geocore-community

GeoCore Community, open source classifieds and auctions software
MIT License
9 stars 6 forks source link

missing mapping_directions_link_google.tpl #233

Open iBeleave opened 8 months ago

iBeleave commented 8 months ago

This has already been mentioned here at least in discussions, but since it keeps coming up, here is a little more info as to WHY this is happening: classes/browse_display_ad.php has this code which CREATES the tags in ListingDisplay.class.php:

if ($db->get_site_setting('pre_populate_listing_tags')) { //set all the {listing tag='tag_name'} as template vars like {$tag_name} //for backwards compatibility geoListingDisplay::preParseAllTags(); }

mapping_direction_link_google() was added in the community edition, which automatically loads the internal template "mapping_directions_link_google.tpl", but the template was not actually added to the default template set, thus the error "template not found"

possible options include:

  1. turning off the setting in admin (Listing Setup->General Settings: Pre-Render {listing} Tags on Listing Details Page: (For backwards-compatibility, Allow using {$tag_name} instead of {listing tag='tag_name'}))
  2. simply create the template "mapping_directions_link_google.tpl" in system/listing_details in the default template set