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.
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:
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
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 )
Hi Tim,
It is the new schema, this is the first project I have run using it, what should the path be ?
L
Ah then looks like your xpath is wrong
/root/descendant::node/Retailer
try
/root/descendant::*/Retailer
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
Okay, so i looked in the codeplex repository and found the locatorResults.xslt for version 4.5 works like a charm.
L
Hi ,
My locator package is not working now.it showing no result found. please help ...
regards
mithun
is working on a reply...
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.