Reputation: 11
We have two problems with 'Multilist with Search' controller.
is it possible?
We already tried the below link but it only works on load but when we search a value the result is as mention in point 1.
How to get a Multilist with Search field to not display referenced items' version and language?
Waiting for a good answer?
Upvotes: 0
Views: 840
Reputation: 11
Found the answers and just override the OutputString method as below for 1.
public override string OutputString(Item item) { return string.Format("{0} - {1}", (object)item.DisplayName,item.Fields["Postal code"].ToString()); }
And for 2 used the following code in the DoRender method.
using (new LanguageSwitcher(Sitecore.Context.Language)) sources = LookupSources.GetItems(current, this.Source);
Upvotes: 1