Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Yannick Smits 321 posts 718 karma points
    Nov 14, 2009 @ 19:52
    Yannick Smits
    0

    can't find geo datatype

    After installing the Locator I can't seem to find the datatype for entering geolocations (shops in your demo). Should I re-install or am I misunderstaning the use of this package in some way?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 14, 2009 @ 20:39
    Tim Geyssens
    0

    Hi Yannick,

     

    You'll have to add create a new datatype and choose the correct rendercontrol

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 14, 2009 @ 20:40
    Tim Geyssens
    0

    The rendercontrol should be called "Locator Geocoder"

  • Yannick Smits 321 posts 718 karma points
    Nov 14, 2009 @ 23:11
    Yannick Smits
    0

    There is already a datatype called "Locator" that has "Locator Geocoder" as a rendercontrol but how does that help me? I guess what I'm really missing (i'm a umbraco newbie) is the Locator document type, right? Why isn't that included and how do I create it?

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Nov 15, 2009 @ 15:10
    Tim Geyssens
    0

    Hi Yannick,

    You can add the datatype to any doctype you want.

    Did you check out the screencast on the package ? http://lab.nibble.be/

  • Yannick Smits 321 posts 718 karma points
    Dec 24, 2009 @ 17:38
    Yannick Smits
    0

    Ok think I got it now. Is it also possible to point the xpath to a certain member type location property?

  • Yannick Smits 321 posts 718 karma points
    Dec 24, 2009 @ 21:22
    Yannick Smits
    0

    Just figured out I would need an XSLT extension to get the correct nodes. Will the XSLT extension work inside the macro's "X Path" field?

  • Yannick Smits 321 posts 718 karma points
    Dec 25, 2009 @ 00:33
    Yannick Smits
    0

    Just figured out (yeah) that th "X Path" field does not support any sort of xslt extensions. 

    Now adjusting the, kindly provided, source code to support member addresses. If you want Tim you can make yannicks a contributor on your codeplex repo and i'll commit the code.

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 28, 2009 @ 10:38
    Tim Geyssens
    0

    @Yannicks, done added you to the project on codeplex.

  • Jim Geary 7 posts 27 karma points
    Aug 19, 2010 @ 16:25
    Jim Geary
    0

    Hi Tim and Yannick,

    New to Umbraco but would like to use the locator package in a project I'm working on. I've installed the package and set it up as per the screencast. The problem is that I don't see the Latitude, Longitude fields when creating a new shop. Do I have to add these as properties to the document type? And if so how? Thanks in advance for any help.

    Regards,

    Jim

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 19, 2010 @ 16:41
    Tim Geyssens
    0

    Hi Jim, well first make sure you have a google maps datatype, then simply add a property of that type to your document type

  • Jim Geary 7 posts 27 karma points
    Aug 19, 2010 @ 17:00
    Jim Geary
    0

    Thanks very much Tim! Will do!

    Jim

  • Jim Geary 7 posts 27 karma points
    Aug 20, 2010 @ 12:56
    Jim Geary
    0

    Hi Tim,

    Sorry to bother you again.

    I haven't had much luck in finding a google maps datatype to add as latitude and longitude properties to my 'shop' document type (is that what you were proposing I do?). The only thing that came vaguely near is the package by Darren Ferguson but that appears to be a complete package in its own right.

    I was trying to replicate the document type which appears in the screencast i.e. the Latitude and Longitude fields and the Geocode search.


    I've added a couple of shops to my site and I can see in the database that their geocoordinates are being saved.  However if I type an ambiguous location into my 'find nearest' search form then I get a list of alternatives (as per the search at lab.nibble.be/shops.aspx), but when I select the relevant one I get the 'no results' message.

    Is my understanding of how the locator should work wrong (highly likely)?

    Thanks for your help.

    Regards,

    Jim

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 23, 2010 @ 09:48
    Tim Geyssens
    0

    Hi Jim,

    The package should also install a new google maps rendercontrol, simply create a new datatype and use that as the rendercontrol, then add a new property to your doc type with the alias location and use the newly created datatype as the type

  • Jim Geary 7 posts 27 karma points
    Aug 23, 2010 @ 11:46
    Jim Geary
    0

    Hi Tim,

    Thanks for your time.

    I think I'm not explaining my problems very well. I have done as you suggested and created a new datatype (which I have called 'Locator') and set its render control to 'Locator Geocoder'. I then added this new datatype as a property to my 'Stockist' document type and set its alias to 'location'.

    The first issue I have is when I add a new stockist. The form contains just one search field with a button labelled 'Google' but there is no 'Latitude' or 'Longitude' fields as per the screencast at http://lab.nibble.be/. Should these extra fields appear? The search itself works fine and I can find in the database where it is storing the lat, long coordinates. I added a few stockists to test the search on.

    The second issue is that when I perform the stockist search on the web site I always get the 'No results found' message. I know that my Google maps key is Ok because if I search for an ambiguous place name I get a list of alternatives to choose from, but even here, if I select one the alternatives and click the 'Ok' button I get the 'No results found' message.

    Do you have any suggestions as to what is going wrong?

    Thanks again for your help.

    Jim

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 23, 2010 @ 11:53
    Tim Geyssens
    0

    Hi Jim,

    Yes it's ok that you don't have the lat and long fields, the screencast uses an older version.

    For the search results, it's probably the xpath to select the stockists that is wrong, could you show how you' ve entered the locator macro?

     

  • Jim Geary 7 posts 27 karma points
    Aug 23, 2010 @ 12:16
    Jim Geary
    0

    The xpath I'm using is below (I copied it from the screencast):

    /root/descendant::node [@nodeTypeAlias = 'Stockist']

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 23, 2010 @ 12:36
    Tim Geyssens
    0

    Ah and are you running Umbraco 4.5 or later?

    Then you'll need to use the new schema

    so

    /root/descendant::* [@isDoc and @nodeTypeAlias = 'Stockist']

  • Jim Geary 7 posts 27 karma points
    Aug 23, 2010 @ 13:07
    Jim Geary
    0

    I've changed the xpath but I'm still getting the no results message - here's the full macro:

    <umbraco:Macro XPath="root/descendant::* [@isDoc and @nodeTypeAlias = 'Stockist']" LocationAlias="" UseAddress="0" AddressAliases="" ResultsXslt="" AddressExtra="" UnitInKm="0" MultipleResultsCaption="" Alias="Locator" runat="server"></umbraco:Macro>

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 23, 2010 @ 13:23
    Tim Geyssens
    0

    Hi,

    Could you try:

    $currentPage/ancestor-or-self::* [@isDoc and @level = 1]//* [@isDoc and @nodeTypeAlias = 'Stockist']

    Also is the alias of your stockist document type Stockist ? And are they published?

  • Jim Geary 7 posts 27 karma points
    Aug 23, 2010 @ 14:18
    Jim Geary
    0

    Hi Tim,

    Updated the macro but still getting the same 'no results' message.Yes, the alias of the stockist document type is Stockist, and everything is published. Incidentally, the version of Umbraco I'm using is  4.5.1 (Assembly version: 1.0.3858.40498)
    .

    I really appreciate your help with this.

     

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 23, 2010 @ 15:06
    Tim Geyssens
    0

    Might be easier if I can take a look, I emailed you some details

    Cheers,
    Tim

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Aug 23, 2010 @ 16:13
    Tim Geyssens
    0

    Ah try,

    $currentPage/ancestor-or-self::* [@isDoc and @level = 1]//Stockist

    That should do the trick

     

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies