Difference between revisions of "Extensions:Staff Team Page"
m Tag: 2017 source edit |
m Tag: 2017 source edit |
||
Line 12: | Line 12: | ||
By default, the admin account and all users with ranks possessing staff permissions will display on the team page. To adjust what users are visible on the team page, please see your <code>app\Http\Controllers</code>, under the <code>getTeamIndex()</code> function. | By default, the admin account and all users with ranks possessing staff permissions will display on the team page. To adjust what users are visible on the team page, please see your <code>app\Http\Controllers</code>, under the <code>getTeamIndex()</code> function. | ||
− | '''To a non-staff role''' | + | '''To include a non-staff role''' on the team page (such as your site’s Guest Artist role), add a comma and the ID of the desired role. |
* Example: $staffRanks->push(Settings::get('admin_user'), 3, 5); | * Example: $staffRanks->push(Settings::get('admin_user'), 3, 5); |
Revision as of 19:11, 30 April 2023
Description | Creates a team page with all staff members. |
---|---|
Author(s) | AnimatedCritter |
Status | stable |
Github | extension/staff-team-page |
LK Version | 2.1.0 |
Contains a Migration | |
This extension creates a team page that displays all members of a website's staff. This includes the addition of staff profiles, which are small segments of text and collection of contact links staff members can customize.
Installation
Pull and merge the branch, making sure to address any merge issues.
Afterwards, run the following commands in your console:
php artisan migrate
php artisan update-extension-tracker
Configuration
By default, the admin account and all users with ranks possessing staff permissions will display on the team page. To adjust what users are visible on the team page, please see your app\Http\Controllers
, under the getTeamIndex()
function.
To include a non-staff role on the team page (such as your site’s Guest Artist role), add a comma and the ID of the desired role.
- Example: $staffRanks->push(Settings::get('admin_user'), 3, 5);
- Be careful NOT to include ranks with tons of users (such as regular members), as there is no pagination.
- Notice that users with non-staff roles cannot update their staff profiles, so a user with a staff role will have to update it for them via the user index (/admin/users).
To remove the admin account from the listing, delete Settings::get('admin_user')
from $staffRanks->push()
.
Troubleshooting
If you are having any issues (or have suggestions to improve this extension) you can find me over on the Lorekeeper Discord server (AnimatedCritter#7094)!