Re: [Tiki-devel] Shouldn't the wiki variable {{user}} shows the user real name (when enable) ?
Bernard Sfez via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
If one day someone read this conversation from the forum or archives… We have a plugin realname in Tiki (of course 😂) Still there is an oddity about the realname in Tiki... Details here : https://tiki.org/forumthread77983-How-realname-is-controlled-in-Tiki Cheers, Bernard > On 28 Dec 2021, at 23:13, Jean-Marc Libs <[email protected]> wrote: > > -1 for a change in behaviour of {{user}}!!! > > That would break countless LIST plugins such as this one: > {LIST()} > {filter type="trackeritem"} > {filter field="tracker_id" exact="56"} > {filter field="tracker_field_inscrCommandeInscrEffectueePar" exact="{{user}}"} // Only mine > {sort mode="tracker_field_inscrCommandeNumero_desc" } > {pagination max="9999"} > {OUTPUT(template="table")} > {column label="Installation" field="tracker_field_inscrCommandeInstallation_text" mode="raw" } > blablabla > {tablesorter server="n" tsfilters="n"} > {OUTPUT} > {ALTERNATE()}^Vous n'avez pas créé de commande.^{ALTERNATE} > {LIST} > > And that could not be fixed because Real Names are not unique! Let's leave {{…}} variables as simple building blocks which are fed to other constructs like plugin params or pluginLIST, not complex stuff. > > I just looked at our list of plugins and I'm shocked that nothing seems to do the job! > > I suggest you write pluginRealname or pluginUsername :-) > > Cheers, > J-M > > On Tue, Dec 28, 2021 at 3:57 PM Bernard Sfez via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote: > Thanks for giving me a few workaround dear Jonny ! 😎 > > My question still stand. 😇 > {{user}} shouldn’t display the user real name (if enable) ? > > Bernard > > > On 28 Dec 2021, at 16:30, Jonny Bradley via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote: > > > > Hi Bernard > > > > You could do it with: > > > > {userlink user="{{user}}"} > > > > but that does make a link... or of course there's: > > > > {LIST()} > > {filter type="user"} > > {filter field="object_id" exact="{{user}}"} > > {OUTPUT()}{display name="title"}{OUTPUT} > > {LIST} > > > > if you're indexing users :p > > > > jonny > > > > > > > >> On 28 Dec 2021, at 05:59, Bernard Sfez via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote: > >> > >> Hello, > >> > >> On a Tiki23 where "Use email as username” but "Show user's real name” is enable anywhere I can see in most place I see the user real name. > >> When I use {{user}} in a wiki page, I see the user email and not the real user name. > >> > >> I have doubt about this behaviour, shouldn’t it supposed to display the user real name ? > >> Someone with better memory remember ? > >> > >> Thanks, > >> Bernard > >> > >> _______________________________________________ > >> TikiWiki-devel mailing list > >> [email protected] <mailto:[email protected]> > >> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel> > > > > > > > > _______________________________________________ > > TikiWiki-devel mailing list > > [email protected] <mailto:[email protected]> > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel> > > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel <https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel> > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel