First, please use your own icon for the map.
I have not used the page_path for locations yet but I would imagine that a tag
such as <r:page_location> or just <r:location> which would find a location with
the current page's url as the page_path, would be helpful and would give you
what you need.
If you haven't yet tried hacking out a tag, try it. It's relatively simple, and
you can use the existing code as a guideline.
On Dec 11, 2009, at 1:21 PM, Steven Southard wrote:
> Locations has still got me a little perplexed. It's a cool extension
> I just can't get my head wrapped around how to fully use it. I'd like
> to show a location of a venue and so far I have this:
> which shows the first location on the list if the page type is set to
> "location finder". I'd like to use a snippet like this on all venue
> pages and show a map of the location maybe by having the location's
> page path equal to this page. I also thought something comparing the
> name of this page against the names of the locations might work. Is
> there a set way to go about this?
> On Dec 10, 2009, at 10:49 PM, Jim Gay wrote:
>> Have you tried the pastie that I listed in your previous thread? It
>> includes code to pull from the Google Maps API without any API key
>> necessary. It assumes jQuery, but you could easily change it to any
>> other library or none at all.
>> <r:locations:each> is available on every page.
>> On Dec 10, 2009, at 11:39 PM, Steven Southard wrote:
>>> That's great news. Yes, I am using your fork, thank you for making
>>> it. I looked around a little and I'm not sure how to make locations
>>> available to all page types. Right now if I don't have "location
>>> finder" selected I don't get a map. I want to use "event archive" as
>>> my page type.
>>> On Dec 10, 2009, at 8:29 PM, Jim Gay wrote:
>>>> Are you using my fork of the location extension? Because you can do
>>>> exactly that.
>>>> On Dec 10, 2009, at 6:38 PM, Steven Southard wrote:
>>>>> I'd really like to have a map and a list of events on the same
>>>>> I initially had the page as event archive showing it's children as
>>>>> events but I also wanted to add a map using locations. I'd really
>>>>> like to use more than one page type. This use to happen to me with
>>>>> mailer then an awesome thing happened and you no longer needed to
>>>>> choose mailer for page type. Is there a way to make locations
>>>>> available on all pages?
>>>> Jim Gay
Radiant mailing list