Difference between revisions of "Extensions:Item Entry Expansion"

From Lorekeeper Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
Tag: 2017 source edit
Line 19: Line 19:
 
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
 
<!-- Describe installation. Include any requirements (such as packages), necessary commands, etc. -->
 
Pull the branch and run <code>php artisan migrate</code>.
 
Pull the branch and run <code>php artisan migrate</code>.
 +
 +
If you intend to use or are using [[Extensions:Stacked Inventories]]-- or any of my extensions that make use of it, such as [[Extensions:Character Items]] or [[Extensions:Submission Addons]]-- instead pull {{Github|user=itinerare|branch=item-entry-expansion-inv-stacks}}. It implements a compatibility fix.
 
== Configuration ==
 
== Configuration ==
 
<!-- Is any configuration necessary? Describe it here! -->
 
<!-- Is any configuration necessary? Describe it here! -->

Revision as of 08:38, 4 July 2020

Item Entry Expansion
Description Provides for more robust item creation, editing, and world entry display.
Author(s) Mercury
Status Testing
Github item-entry-expansion
LK Version Unspecified
Contains a Migration



This adds several fields to the item creation/editing interface, as well as the corresponding display on world item entries.

The added fields are as follows:

  • Item Rarity (Expects a numerical value)
  • Reference Link
  • Item Artist (Uses the alias/URL system as present on character images)
  • Uses (Text field, supports raw HTML but expected to be brief)
  • Original source (Where/when the item was originally made available)
  • Purchase locations (Shops where the item may be purchased. Provides a list of (active) shops to select from.)
  • Drop locations (Prompts from which the item may be awarded. Provides a list of (active) prompts to select from.)

These are all optional, and do not display on the item's entry if not filled.

It also adds a display of an item's category, if set, to the item's world entry, and raises the item name character limit to 100 (from 25).

It has since also been updated to add an additional blade for viewing an individual item's information, accessed via its ID (/world/items/{id}). This has custom meta tag information provided for it (see Tutorial: Custom Meta Tags for more information.) It is linked via the magnifying glass icon on item entries in the item DB's world page, in the inventory stack modal, in the shop stock modal, and in the admin items panel (added to each item's name in the larger table).

Installation

Pull the branch and run php artisan migrate.

If you intend to use or are using Extensions:Stacked Inventories-- or any of my extensions that make use of it, such as Extensions:Character Items or Extensions:Submission Addons-- instead pull item-entry-expansion-inv-stacks . It implements a compatibility fix.

Configuration

You may want to add references to some of the values added to various places around Lorekeeper, depending on your needs-- for instance, adding uses to the item descriptions in shops.

Usage

Update item entries in the admin panel as desired.

Troubleshooting

Find me in the Lorekeeper discord if you encounter any issues!

See Also