Difference between revisions of "Extensions:Page Categories"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
(added sections)
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Extensioninfobox|title=Page Categories|desc=Categorize, sort, and display pages in the Encyclopedia|auth=Junijwi|status=testing|github={{Github|user=junijwi|branch=page-categories}}|migration=yes|package=no}}
+
{{Extensioninfobox|title=Page Categories|desc=Categorize, sort, and display pages in the Encyclopedia|auth=Junijwi|status=stable|github={{Github|user=junijwi|branch=page-categories}}|migration=yes|package=no}}
Adds categories with which one can sort their pages. These categories can be used to filter pages in the admin panel. These categories also display their pages in a new area called "lore pages" in the Encyclopedia.
+
Adds sections and categories with which one can sort their pages. Sections each get an area in the encyclopedia, and each is populated by their categories.
IMAGE: [https://i.gyazo.com/a5151dbf9f0bb8e5c9ea629f1c8e1a3a.png Lore Pages]
+
IMAGE: [https://i.gyazo.com/7fba0131bcd10558cedaf0c5232c0731.png Lore Pages]
 
Pages without a category will act as normal pages and will not be displayed anywhere without being manually linked.
 
Pages without a category will act as normal pages and will not be displayed anywhere without being manually linked.
 
== Installation ==
 
== Installation ==
Line 8: Line 8:
 
Be careful with merging conflicts if you installed anything else which adds things to the admin panel, but aside from that most things deal with pages or new files and shouldn't conflict with other extensions.
 
Be careful with merging conflicts if you installed anything else which adds things to the admin panel, but aside from that most things deal with pages or new files and shouldn't conflict with other extensions.
  
You can create page categories in the admin panel. Then, go edit a page to apply its category.
+
You can create page sections and categories in the admin panel. Then, go edit a page to apply its category.
 
== Configuration ==
 
== Configuration ==
 
HTML customization for the display of the pages in the Encyclopedia can be done in <code>resources\views\pages\page_categories.blade.php</code>, for example changing
 
HTML customization for the display of the pages in the Encyclopedia can be done in <code>resources\views\pages\page_categories.blade.php</code>, for example changing
Line 20: Line 20:
 
to make all the heights equal for same-row categories.
 
to make all the heights equal for same-row categories.
  
You can change the name of the "Lore Pages" at the sidebar in <code>resources\views\world\_sidebar.blade.php</code>. and header in <code>resources\views\pages\page_categories.blade.php</code>
 
 
== Usage ==
 
== Usage ==
 
<!-- Is there anything users should know about using your extension? -->
 
<!-- Is there anything users should know about using your extension? -->

Latest revision as of 23:58, 18 October 2020

Page Categories
Description Categorize, sort, and display pages in the Encyclopedia
Author(s) Junijwi
Status stable
Github page-categories
LK Version Unspecified
Contains a Migration






Adds sections and categories with which one can sort their pages. Sections each get an area in the encyclopedia, and each is populated by their categories. IMAGE: Lore Pages Pages without a category will act as normal pages and will not be displayed anywhere without being manually linked.

Installation

Pull the branch, push, and run php artisan migrate.

Be careful with merging conflicts if you installed anything else which adds things to the admin panel, but aside from that most things deal with pages or new files and shouldn't conflict with other extensions.

You can create page sections and categories in the admin panel. Then, go edit a page to apply its category.

Configuration

HTML customization for the display of the pages in the Encyclopedia can be done in resources\views\pages\page_categories.blade.php, for example changing

<div class="card">

into

<div class="card h-100">

to make all the heights equal for same-row categories.

Usage

Troubleshooting

Feel free to @ me in the discord (Juni#0448) for any issues.

See Also