Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Question: Adding custom selectors in datatypes to display multiple field values per line in dropdowns.

$
0
0
Sounds like you could save yourself a lot of headache by handling it in C#
  1. Make a static method that returns a Dictionary<string, string>
  2. In the method, make sure that the Key of every entry is the Id of your datatype, while Value can be whatever you want and will be what the editor see in the Dropdown
  3. In the Options for your selector, simple add a StaticMethodCall and point it to the method created in step 1
<ff:StaticMethodCall Type="The_Class_Containing_Your_Method" Method="The_Method_Returning_Dictionary" />

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>