How do you include the Location Module field in Contemplate?

Location module adds it's own field in the default CCK ouput but when I use contemplate it is nowhere to be found. How do I inculde it?

Comments

trailerparkopera’s picture

Well, you need to invoke the location fields in the node type that you've created. Once you've done that, you should probably see them show up on the right-hand pick list.

Oh...and empty your site's cache (using the devel module) once you've done that.

If they aren't showing up, make sure you're using a current-ish version of Location.

jrglasgow’s picture

Status: Active » Postponed (maintainer needs more info)

Did this work?

najibx’s picture

Well, you need to invoke the location fields in the node type that you've created

Not sure what that means. I Empty the cache with devel, and the output of cck location field from devel are below.


field_location_map

Array
(
    [0] => Array
        (
            [lid] => 19
        )

)

IN the contemplate only shows

$node->field_location_map[0]['view']
    <div class="location vcard"><div class="adr"> <em>My location</em><div class="street-address">Jln Kuah Langkawi</div> <span class="region">KD</span>, <span class="postal-code">07100</span><div class="country-name">Malaysia</div> <span class="geo"><abbr class="latitude" title="6.429857">6° 25' 47.4852" N</abbr>, <abbr class="longitude" title="99.685285">99° 41' 7.026" E</abbr></span> </div></div>