Can the jrSeamless be used with jrGeo_location?

boplive
@boplive
11 years ago
345 posts

{jrSeamless_list modules="jrVideo" search1="_jrGeo_location" limit="3"}

updated by @boplive: 01/19/14 02:04:43PM
brian
@brian
11 years ago
10,148 posts
Sure - you can't use the geo function "inline" like that - that's not how Smarty works.

You need to call the jrGeo_locate function separately, then assign the output to a variable - then you can use that variable as a search in jrCore_list or seamless call. For example:

{jrGeo_location template="%city%" assign="city_name"}
{jrSeamless_list modules="jrVideo" search1="video_location like `$city_name`" ... }

This assumes you have a "video_location" field that would have the user's city (or whatever you wanted to check for) in it to be searched on.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
boplive
@boplive
11 years ago
345 posts
KOOOL :)....let me see what I can do with that and I will let you know the status.

Thanks for pointing me to the right direction :)
brian
@brian
11 years ago
10,148 posts
No problem - make sure and check out the readme with the Geo Location module for what is valid to use as the "template" parameter.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags