From: Michael E. <er...@di...> - 2013-10-10 12:51:36
|
On 10.10.2013 04:03, Yaron Koren wrote: > Ah, okay - now it all makes sense. And it's good to know that this > would be a popular feature. People have asked about such a thing for a > while, but I haven't really looked into it, though I have thought > about how it could be implemented. The best way I can think of to do > it would be to have another possible parameter for {{{field}}} tags, > called something like "display property=", that took in the name of a > property (whether it was called "Name", "LastName" or anything else) > that holds the "display value" for those pages. What if the new parameter would be display template=TEMPLATE which points to a template that takes as single argument the value that would be added to the form, e.g. the numbered page title and can return anything it wants, e.g. via #show etc. > I guess you would really have to, as Alexander describes it, show both > the display value and the page name to the user, if only to handle > duplicate values. "Bob (Person 261)" might look a lot less friendly > than just "Bob", but if you have three other Bobs, there's really no > other choice. This is definitely correct in general but not necessarily; depends on the context. > > I added this as an item to the "Planned features" section, here: > > https://www.mediawiki.org/wiki/Extension:Semantic_Forms/Known_bugs_and_planned_features#Planned_features > > I don't know when I could look into this, but if someone else wants to > try their hand at coding it - and evidently help out a lot of people - > please let me know. I could certainly offer some advice, if needed, on > the programming part of it. > > -Yaron thx, michael |