Difference between revisions of "Extensions:Admin Only Pages"

From Lorekeeper Wiki
Jump to navigation Jump to search
(Attempted to fix my error. The template does NOT want to behave.)
Tag: 2017 source edit
(Undo revision 432 by Preimpression (talk))
Tag: Undo
Line 1: Line 1:
[[Extensions:Admin Only Pages#mw-head|Jump to navigation]] [[Extensions:Admin Only Pages#p-search|Jump to search]]
+
{{Extensioninfobox|title=the extension's name|desc=A short description|auth=Author(s)|status=status (such as WIP, testing, stable)|github={{Github|user=username|branch=branch}}|migration=yes/no|package=yes/no}}
{| class="wikitable"
+
<!-- Put a short summary of your extension here! -->
|+Admin Only Pages
 
!Description
 
|Set pages as admin-only.
 
|-
 
!Author(s)
 
|Preimpression
 
|-
 
!Status
 
|testing
 
|-
 
!Github
 
|admin-only_pages
 
|-
 
! colspan="2" |Contains a Migration
 
|-
 
| colspan="2" |
 
* [[Template:Extensioninfobox|<abbr>v</abbr>]]
 
* [[Template talk:Extensioninfobox&action=edit&redlink=1|<abbr>t</abbr>]]
 
* [[Template:Extensioninfobox&action=edit|<abbr>e</abbr>]]
 
|}
 
 
 
 
 
 
 
This is a simple extension based on vanilla Lorekeeper. It allows admins to set pages to be admin-only. When a non-admin or guests attempts to visit an admin-only page, they will be redirected to the home page with the standard warning. This warning is contained in the Controller and is separate from the regular admin middleware, so if you have edited that flash elsewhere, you'll need to edit it again here.
 
 
 
 
== Installation ==
 
== Installation ==
Pull the branch.
+
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
php artisan migrate
 
Push your branch.
 
 
 
Done!
 
 
 
 
== Configuration ==
 
== Configuration ==
There is a very simple migration that adds a column called "admin_only". No other configuration should be necessary.
+
<!-- Is any configuration necessary? Describe it here! -->
 
 
 
== Usage ==
 
== Usage ==
Pre-existing pages will automatically be set to false (0 in the database.) To set a page to be admin-only, go to the admin panel and edit the page. The toggle will be right below the Is-Visible toggle.
+
<!-- Is there anything users should know about using your extension? -->
 +
== Troubleshooting ==
 +
<!-- Are there known issues or errors that require user action? Who should they contact, and where, for support? -->
 +
== See Also ==
 +
<!-- Any relevant other pages. You may consider linking to related extensions, for instance. -->

Revision as of 19:57, 5 July 2020

the extension's name
Description A short description
Author(s) Author(s)
Status status (such as WIP, testing, stable)
Github branch
LK Version Unspecified





Installation

Configuration

Usage

Troubleshooting

See Also