Copied to clipboard

Flag this post as spam?

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


  • Lachlann 343 posts 625 karma points
    Oct 01, 2010 @ 12:40
    Lachlann
    0

    Cant get the locator to return any results

    Hey Tim,

    I have installed version 1.1 of the locator package on my installation of umbraco (v 4.5.2 ). I added the maps api key and added the locator datatype to the document type and then created some nodes of that document type.

    In a master page i added the macro and passed in the following xPath:

    /root/descendant::node/Retailer

    (retailer is the node type alias for the document type that has the locator datatype as a property)

    i set the parameter "locationAlias" to locationProp which is the alias for the locator property.


    I then created a form in the same master page:

        <form method="post" action="/find-a-retailer.aspx">
          <label>Enter your address:</label>
          <input type="text" name="s"/>
          <input type="submit" value="search" />
        </form>

     

    When i submit the for the LocatorResults.xslt is called and outputs no results. Im really not sure why this might be? I added the following code to the xslt:

    <xsl:copy-of select="/root/descendant::*/Retailer"/>

    and that traces back what i would expect, i.e all of the nodes of type Retailer.

     

    Can you think of anything I might have missed?

     

    many thanks

     

    L

  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Oct 01, 2010 @ 12:42
    Tim Geyssens
    0

    Hi,

    Could you check the xslt that is being used to output the resutls, is that using the new xml schema? (so no more /node )

  • Lachlann 343 posts 625 karma points
    Oct 01, 2010 @ 12:44
    Lachlann
    0

    Hi Tim,

     

    It is the new schema, this is the first project I have run using it, what should the path be ?

     

    L

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

    Ah then looks like your xpath is wrong

    /root/descendant::node/Retailer


    try

    /root/descendant::*/Retailer

  • Lachlann 343 posts 625 karma points
    Oct 01, 2010 @ 13:32
    Lachlann
    0

    Hey Tim

     

    thanks I have tried

     

    /root/Home/RetailerSearch/Retailer

    whch returns the correct nodes when i test in xslt, I am curious about the LocatorResults.xslt should that xslt work without modification in 4.5?

    thanks

     

    L

  • Lachlann 343 posts 625 karma points
    Oct 01, 2010 @ 13:42
    Lachlann
    0

    Okay, so i looked in the codeplex repository and found the locatorResults.xslt for version 4.5 works like a charm.

     

    L

  • mithun 42 posts 63 karma points
    Mar 12, 2013 @ 10:05
    mithun
    0

    Hi ,

    My locator package is not working now.it showing no result found. please help ...

     

    regards

    mithun

     

  • 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