Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Name - user or category?

Quote Reply
Name - user or category?
Did anyone ever notice that
Code:
<%if Username%>
Welcome <%Name%>!
<%endif%>
as found in the Help pages produces different results if used on all pages? In categories it shows the category Name, on other pages it shows the users name.

How do we show users' names on category pages?

A brief tutorial on this would be useful in the manual and help pages. Or just here in the forum Wink
Quote Reply
Re: [gotze] Name - user or category? In reply to
I'd say it's a typo...

I would have thought this would make more sense:

Code:
<%if Username%>
Welcome <%Username%>!
<%endif%>
Quote Reply
Re: [aus_dave] Name - user or category? In reply to
Sure, if the username is what you want.
But the users table has a Name too. For the real name. That's not used by default for some reason, but it's there ...
It just not available as Name in categories.
Quote Reply
Re: [gotze] Name - user or category? In reply to
I see what you mean now. I'd never noticed that before, as I don't use the 'Name' column in the Users table.

You could access 'Name' from the Users table with a global and call it something different I guess. It's a bit messy but it would work. You could probably rename the 'Name' column in the Users table too - I'm not sure about what effect this would have though.
Quote Reply
Re: [gotze] Name - user or category? In reply to
You could always use <%user.Name%>

Adrian
Quote Reply
Re: [brewt] Name - user or category? In reply to
Of course Blush

Thanks Adrian.

John