Jump to content

Customizing output for FB Page Tab?


Kurtis Houser

Recommended Posts

I'm experimenting with adding a JR map to my site's Facebook page. You can view it here.

https://www.facebook.com/itasteit/app/1714411305485955/

It's using this page.

http://www.itasteit.com/index.php?option=com_jreviews&view=geomaps_map&Itemid=1114&template=atomic&tmpl=component

 

I see that the map output is using Hogan.js as the templating engine. I'm not familiar with it (or Mustache, yet...) so I'm hoping you can provide some quick answers.

 

First (unrelated to Hogan.js), is it possible to include custom fields that are specific to this instance (map page) rather than having to set it globally in Geomaps Add-on -> Markers & Infowindow -> Infowindow fields? I don't see any options to do this in either the map page or module.

 

I have a custom field (jr_companywebsite) for the company's web site and in some cases would like to use this for the URL of the listing title instead of {{titleUrl}}. Is this possible?

 

Can I output specific custom fields in the order of my choosing rather than iterating through the list? I'd like to display the city and state on one line instead of two -> San Francisco, CA. I see {{fields.jr_city}} in the code but it doesn't appear to display anything.

 

Can Click2search be disabled for the output of the custom fields? I would like to just display the city and state without a URL.

 

And for debugging, how do I display the contents of the payload (#payload, $payload)?

 

I've started reading through this...

http://mustache.github.io/mustache.5.html

 

Cheers!

Link to comment
  • 2 weeks later...
×
×
  • Create New...