Re: [Tiki-devel] Shouldn't the wiki variable {{user}} shows the user real name (when enable) ?

Jean-Marc Libs <[email protected]>
Newsgroups gmane.comp.cms.tiki.devel
Message-ID <CA++RN4cMZo51h4MXDvyRDTZTpfy=qfqBKm-smWk1XtqH1AG1fA@mail.gmail.com>
-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]> 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]> 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]> 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]
> >> 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
>

_______________________________________________
TikiWiki-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.