Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
t3o
my.typo3.org
Commits
64c39438
Commit
64c39438
authored
Jan 11, 2018
by
Stefan Busemann
Browse files
[TASK] Add userprofile templates to t3omy
parent
70a7c473
Pipeline
#3156
passed with stages
in 4 minutes and 17 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
html/typo3conf/ext/t3omy/Classes/Domain/Model/MyProfile.php
View file @
64c39438
...
...
@@ -46,7 +46,7 @@ class MyProfile extends FrontendUser
/**
* @return string
*/
public
function
getTwitter
():
string
public
function
getTwitter
():
string
{
return
$this
->
twitter
;
}
...
...
html/typo3conf/ext/t3omy/Configuration/TypoScript/userprofile.txt
View file @
64c39438
plugin.tx_userprofile {
view {
templateRootPaths {
20 = EXT:t3omy/Resources/Private/Templates/UserProfile/
}
}
settings {
privacy {
_default {
...
...
html/typo3conf/ext/t3omy/Resources/Private/Templates/UserProfile/Edit.html
0 → 100644
View file @
64c39438
<section
class=
"container"
>
<h1>
Edit my profile {user.name}
</h1>
<ul>
<li>
Name: {user.firstName} {user.lastName}
</li>
<li>
Email: {user.email}
</li>
<li>
About me: {user.aboutMe}
</li>
</ul>
</section>
html/typo3conf/ext/t3omy/Resources/Private/Templates/UserProfile/List.html
0 → 100644
View file @
64c39438
<section
class=
"container"
>
<h1>
Our community
</h1>
<f:debug>
{frontendUsers}
</f:debug>
<table>
<f:for
each=
"{frontendUsers}"
as=
"frontendUser"
>
<f:if
condition=
"{frontendUser.publicProfile}"
>
<tr>
<td><f:link.action
controller=
"UserProfile"
action=
"show"
arguments=
"{user:frontendUser}"
>
{frontendUser.username}
</f:link.action></td>
</tr>
</f:if>
</f:for>
</table>
</section>
html/typo3conf/ext/t3omy/Resources/Private/Templates/UserProfile/Show.html
0 → 100644
View file @
64c39438
{namespace userprofile=In2code\Userprofile\ViewHelpers}
<section
class=
"container"
>
<h1>
{user.name}
</h1>
<ul>
<f:if
condition=
"{userprofile:isPropertyVisible(propertyName:'name', user:user)}"
>
<li>
Name: {user.name}
</li>
</f:if>
<f:if
condition=
"{userprofile:isPropertyVisible(propertyName:'email', user:user)}"
>
<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>
<f:if
condition=
"{isOwnProfile}"
>
<f:render
partial=
"ShowEdit"
arguments=
"{_all}"
/>
</f:if>
</ul>
</section>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment