Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Wildcards


Go to End


5 Posts   1389 Views

Avatar
oerm4411

Community Member, 14 Posts

16 May 2011 at 9:17am

This may have been answered before, but I don't see it when I do a search. Are there any wildcards for users' names? I'd like to have my site say "Welcome back XXXX" when they login, preferably using a user's first name.

Avatar
swaiba

Forum Moderator, 1899 Posts

16 May 2011 at 9:33am

wildcards?

you can use ss templating functions like...

<% control CurrentMember %>{$FirstName}<% end_control %>

Avatar
oerm4411

Community Member, 14 Posts

16 May 2011 at 9:37am

How do I embed that code in the welcome page? Do I simply insert that in the page editor or in the HTML?

Avatar
swaiba

Forum Moderator, 1899 Posts

16 May 2011 at 9:43am

Avatar
oerm4411

Community Member, 14 Posts

18 May 2011 at 12:56pm

Thank you Swaiba!