b03tz / StoreLocator

StoreLocator is a MODX addon that let's your customers search for stores in their vicinity.
http://www.scherpontwikkeling.nl
6 stars 10 forks source link

added $startResults option #19

Open codebakery-ch opened 10 years ago

codebakery-ch commented 10 years ago

you can include a $startResults option (0/1, default is 0) to display the result window when the form has no been submitted.

I need to make some fixes to display a placeholder (or a decoy of some sort) so the $storeListOutput still gets the lists.

as a quick fix, change in your template the storeList Chunk Tag to:

<div id="storelist" [[+StoreLocator.emptyStartResult:is=`1`:then=`style="display:none"`]]>
 [[+StoreLocator.storeList]]
</div>