Members - adding nickname attribute and displaying in place of username on blog pages
PermalinkThanks in advance!
This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
The block you circled in your screenshot is the Page Title block with the "Byline" custom template.
The Byline custom template can be modified to display a user attribute instead of the user display name. The new modified custom template will be named "Byline Nickname".
- create the "Nickname" user attribute with the handle of "nickname"
- copy byline.php
concrete\blocks\page_title\templates\byline.php
- paste byline.php into application\blocks\page_title\templates
application\blocks\page_title\templates\byline.php
- rename byline.php to byline_nickname.php
- open byline_nickname.php
find:
replace with:
- set the Page Title block custom template to "Byline Nickname"