Commit 3eb7233e authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[FEATURE] Add base properties of Frontend User Model

parent d02ccdac
Pipeline #3177 passed with stages
in 4 minutes and 28 seconds
......@@ -12,6 +12,18 @@ plugin.tx_userprofile {
groups = 0
}
#column_name = 1 activates the setting for the user
aboutMe = 1
firstName = 1
lastName = 1
address = 1
telephone = 1
email = 1
zip = 1
city = 1
country = 1
www = 1
company = 1
image = 1
slack_id = 1
githubProfile = 1
twitter = 1
......
<section class="container">
<h1>Edit my profile {user.name}</h1>
<h1>t3o Edit my profile {user.name}</h1>
<ul>
<li>Name: {user.firstName} {user.lastName}</li>
<li>Email: {user.email}</li>
......
{namespace userprofile=In2code\Userprofile\ViewHelpers}
<section class="container">
<h1>t3omy {user.name}</h1>
<h1>{user.name}</h1>
<f:debug>{user}</f:debug>
<ul>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'name', user:user)}">
<li>Name: {user.name}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'firstname', user:user)}">
<li>Firstname: {user.firstname}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'lastname', user:user)}">
<li>Lastname: {user.lastname}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'address', user:user)}">
<li>Street: {user.address}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'zip', user:user)}">
<li>Zip: {user.zip}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'city', user:user)}">
<li>City: {user.city}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'telephone', user:user)}">
<li>Phone: {user.telephone}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'email', user:user)}">
<li>Email: {user.email}</li>
<li>Email: {user.email}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'about_me', user:user)}">
<li>About me: {user.aboutMe}</li>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'country', user:user)}">
<li>Country: {user.country}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'www', user:user)}">
<li>www: {user.www}</li>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'image', user:user)}">
<f:for each="{user.image}" as="image">
<f:image image="{image}" maxWidth="800" />
</f:for>
</f:if>
<f:if condition="{userprofile:isPropertyVisible(propertyName:'about_me', user:user)}">
<li>About me: {user.aboutMe}</li>
<li>About me: {user.aboutMe}</li>
</f:if>
<f:if condition="{isOwnProfile}">
<f:render partial="ShowEdit" arguments="{_all}" />
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment