Copied to clipboard

Flag this post as spam?

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


  • Lee 1123 posts 3059 karma points
    Dec 08, 2009 @ 17:59
    Lee
    0

    How Do I Test It?

    I have installed your fantastic project, and followed your video tutorial - If I post to the page that has the results macro on I just get 

    'No Results found'

    Everytime I post to it - Only thing I can see different to your example is I'm using AutoFolders and have extensionless URL's? Just wondering how you would attack debugging it?  =)

  • Lee 1123 posts 3059 karma points
    Dec 08, 2009 @ 18:14
    Lee
    0

    Also.. (Typical asking for more information!).. I can't find any information on the Macro properties inputs for the locator, as in what they mean/do?

    LocationAlias="" UseAddress="0" AddressAliases="" ResultsXslt="" AddressExtra="" UnitInKm="0" MultipleResultsCaption=""

    Sorry for the questions, I know you guys are busy with the Blog =(

  • Lee 1123 posts 3059 karma points
    Dec 08, 2009 @ 18:26
    Lee
    0

    Ok, can I have a forum section all to myself - As everytime I fricking post, I engage brain and either find what I'm looking for or get it working!!!  Please ignore me, all working now (Or is it... lol)

    Sorry for cluttering up the place with total waffle... Thank you please.

  • Dan 1250 posts 3747 karma points admin c-trib
    Dec 08, 2009 @ 18:33
    Dan
    0

    I often do the same thing Lee.  Could you post your solution though as it's useful for the record?

  • Lee 1123 posts 3059 karma points
    Dec 08, 2009 @ 20:29
    Lee
    0

    Hey Dan

    I just filled out the LocationAlias with the docType property that had the locator DataType on it!  And it worked ... almost ... lol

    <umbraco:Macro XPath="/root/descendant::node [@nodeTypeAlias = 'Event']" LocationAlias="eventGeoLocation" UseAddress="0" AddressAliases="" ResultsXslt="" AddressExtra="UK" UnitInKm="0" MultipleResultsCaption="Please choose below" Alias="Locator" runat="server"></umbraco:Macro>

    No it is working, although the Google map isn't showing - So its no biggy at the mo, I'll take a gander at it with fresh eyes on the morning.

  • manishahowale 18 posts 25 karma points
    Feb 19, 2010 @ 12:40
    manishahowale
    0

    Hi,

    I am using Umbraco 4.0.3 version. I have installed locator package 1.0.

    1. Created Google map key for localhost and placed following code in Main.Master

     

     

    <

    script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=trueorfalse&amp;key=ABQIAAAA1msWLonPjpoFNqVyHUiDhT2yXpZAY8ufC3CFXhHIE1NvwkxQzHjR0ovcBzZF8h_qI2FFuMtg3A" type="text/javascript"></script>

     

    script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=trueorfalse&amp;key=ABQIAAAA1msWLonPjpoFNqVyHUiDhT2yXpZAY8ufC3CFXhHIE1NvwkxQzHjR0ovcBzZF8h_qI2FFuMtg3A" type="text/javascript"></script>

    script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=true_or_false&amp;key=ABQIAAAA1msWLonPjpoFNqVyH_UiDhT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQzHjR0ovcBzZF_8h_qI2FFuMtg3A" type="text/javascript"></script>

     

     

    2. Created document type called "Level3" with property "location" of datatype locator.

     

     

    3. Created centerResults.aspx content page and placed a macro as follows :

     

     

    <umbraco:Macro ID="Macro1" XPath="/root/descendant::node[@nodeTypeAlias = 'Level3']" LocationAlias="location" UseAddress="0" AddressAliases="" ResultsXslt="" AddressExtra="" UnitInKm="0" MultipleResultsCaption="" Alias="Locator" runat="server"></umbraco:Macro>

     

     4. Placed following code in Main.Master

     <form method="get" action ="CenterResults.aspx">
     <table> 
    <tr>
    <td> <label for="s"> Address/postcode: </label> </td>
     <td><input type="text" name="s" /></td> 
    </tr> 
    <tr> 
    <td> <label for="s">Radius:</label></td> 
    <td><select name="radius"> 
    <option value="0″">Please select</option> 
    <option value="100″">100 miles</option>
    <option value="1000″">1000 miles</option>
    <option value="10000″">10000 miles</option>
     </select>
     <button type="submit"><span>Go</span></button>
     </td>
    </tr>
     </table>
     </form>

     I have created content pages using document type "Level3" where I type location name and when hit Google button it generates map for the location name.

    I have created 3 content pages out of which 2 pages has location property set to "Mumbai" and 3rd one to "Ahmedabad"

    But when I am using form for search and enter value for address as "Mumbai" it returns me "No results found"

    Am I missing something.

    Please need help urgently.

    Thanks in advance,

    Manisha

     

  • manishahowale 18 posts 25 karma points
    Feb 19, 2010 @ 13:20
    manishahowale
    0

    Hi,

    When I observed the url after postback on search it is http://localhost/CenterResults.aspx?s=mu&radius=0%E2%80%B3 where I get "No Results Found"

    I removed the last characters after radius=0 resulting in  http://localhost/CenterResults.aspx?s=mu&radius=0 It gave me the results.

    I don't know how these extra characters are added. Please guide.

    Thanks,

    Manisha

     

     

  • 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