I have a TV, single select listbox that uses short names for ease in the coding, and to avoid spaces... What I would like is to associate that TV and the short-name with the proper non-shorthand name so I can display the proper name in the Ditto results, how is this done?
example...
Selecting IC results in the display of Integrated Circuit.
Thanks!
Hey fruitwerks,
not sure if I’m on the right track, but you mean setting the TV values like this?
IC==Integrated Circuit ||LOL==Laugh out loud ||MODX==CMS and PHP Application Framework ||
so selecting IC from the dropdown would give the TV a value of Integrated Circuit?
Taff
Adrian Lawley: www.adrianlawley.com
Well.. I guess? Is that all I need, just a ==?
Thanks
ok I don’t see what the point of that is... I need short-names for scripting and proper names for display. I didn’t think it was that easy, because I have asked about something similar before.
This is not to complicated, all you need to do is setup a data source with the shortname = longname information and a snippet to look for the shortname and return the long name. The data source can be a database or a file or an array.
How many names are there? If it is a large number I would use the data base. You can also populate the pulldown TV with the data from the database table.