Difference between revisions of "Extensions:Item Subcategory"
m Tag: 2017 source edit |
Tag: 2017 source edit |
||
Line 1: | Line 1: | ||
− | {{Extensioninfobox|title=Item Subcategory|desc=Adds subcategories to items for organizational purposes|auth=CH3RVB|status=testing|github={{Github|CH3RVB|branch=extension/item-subcategory}}|LKVer=2.0.0|migration=yes|package=no}} | + | {{Extensioninfobox|title=Item Subcategory|desc=Adds subcategories to items for organizational purposes|auth=CH3RVB|status=testing|github={{Github|user=CH3RVB|branch=extension/item-subcategory}}|LKVer=2.0.0|migration=yes|package=no}} |
Add subcategories to items, alongside main categories. For example, an item can be classified as category Potion but also subcategory Trait Potion. These subcategories are mostly for organizational purposes and can't have their ability to be held or named by characters changed, it's dependent on their main category instead. | Add subcategories to items, alongside main categories. For example, an item can be classified as category Potion but also subcategory Trait Potion. These subcategories are mostly for organizational purposes and can't have their ability to be held or named by characters changed, it's dependent on their main category instead. | ||
Revision as of 09:12, 11 October 2022
Description | Adds subcategories to items for organizational purposes |
---|---|
Author(s) | CH3RVB |
Status | testing |
Github | extension/item-subcategory |
LK Version | 2.0.0 |
Contains a Migration | |
Add subcategories to items, alongside main categories. For example, an item can be classified as category Potion but also subcategory Trait Potion. These subcategories are mostly for organizational purposes and can't have their ability to be held or named by characters changed, it's dependent on their main category instead.
These subcategories have their own info pages like regular categories, can have images uploaded, and can have descriptions of their uses, etc.
Installation
Pull the branch, handle any conflicts, and
php artisan migrate
and
php artisan optimize
You might not need to optimize, but migration is a requirement to make the extension function.
Configuration
None
Usage
As stated before, subcategories can't have their held/named status changed, you will still have to rely on this from the main categories of the items.
Troubleshooting
Known issue: Sometimes creating a subcategory then assigning it to an item displays an "invalid subcategory" error and the application fails. In the mean time a quick fix is to delete the subcategory and make a new one, I'm currently unsure of what causes this exactly.
You can find me in the LK server as SUPERCOOL if you have any issues or questions!
Images
https://www.merlotarpg.com/world/item-subcategories
You can find it in use on my site!