123 Posts in 58 Topics by 51 members
Showcase Questions
SilverStripe Forums » Showcase Questions » Creating a First Name
Feedback and questions about sites in the Community Showcase.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
|
Page:
1
|
Go to End | |
| Author | Topic: | 1065 Views |
-
Creating a First Name

26 August 2010 at 10:07pm
I am creating a website, and a new user will have to register to use it. Now, after signing up on the site, I want their first name to appear once logged in. How can I do this?
-
Re: Creating a First Name

26 August 2010 at 10:25pm
You can access any of the fields of the currently logged in member by using $CurrentMember. To get the first name you can do $CurrentMember.FirstName. To see all the properties you can call on $CurrentMember look at the Member.php class.
-
Re: Creating a First Name

28 August 2010 at 12:14pm
Thank you for your help. The information you provided was excellent.
-
Re: Creating a First Name

28 August 2010 at 12:50pm
I was wondering how to create a first and last name?
-
Re: Creating a First Name

28 August 2010 at 1:07pm Last edited: 28 August 2010 1:08pm
I was wondering how to create a first and last name?
Member has a Name function which returns the full name. $CurrentMember.Name
-
Re: Creating a First Name

29 August 2010 at 7:14am
I want to thank you help. It works. I wouldn't be able to figure it out without your help.
| 1065 Views | ||
|
Page:
1
|
Go to Top |

