Developer forum

Forum » Templates » DealerSearch custom fields

DealerSearch custom fields


Reply

Is there any way to sort by Custom Fields?




 




Current I have links like this:




Butiksnavn




 




There is no problem with that, since it's using one of the pre-defined fields. However, suppose I have the custom field "FavPet" (set as both label and systemname), how do I sort by it? I tried inserting SortBy=DealerSearchFavPet and SortBy=FavPet and similar into the link, but they all just return the SQL query string (which I assume is an indication of an error).


Replies

 
Nicolai Høeg Pedersen
Reply

Well - its not easy to guess - the name is like this:


DealerSearchDealerCustom_SystemName



And it should work using it - haven't tested it though.

 

You must be logged in to post in the forum