Difference between revisions of "Extensions:Page Categories"

From Lorekeeper Wiki
Jump to navigation Jump to search
(add info)
Tag: 2017 source edit
m
Tag: 2017 source edit
Line 10: Line 10:
 
You can create page categories in the admin panel. Then, go edit a page to apply its category.
 
You can create page 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 <code><div class="card"></code> into <code><div class="card h-100"></code> to make all the heights equal for same-row categories.
+
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 <code><syntaxhighlight lang="html"><div class="card"></syntaxhighlight></code> into <code><div class="card h-100"></code> to make all the heights equal for same-row categories.
 
== Usage ==
 
== Usage ==
 
<!-- Is there anything users should know about using your extension? -->
 
<!-- Is there anything users should know about using your extension? -->

Revision as of 22:49, 19 September 2020

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



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. 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 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

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