-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add compendium browser information to wiki (#3831)
Co-authored-by: Kim Mantas <[email protected]>
- Loading branch information
Showing
5 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
![Up to date as of 3.3.0](https://img.shields.io/static/v1?label=dnd5e&message=3.3.0&color=informational) | ||
|
||
> [!IMPORTANT] | ||
> The compendium browser takes advantage of new features introduced in Foundry V12 and only works in that version or later. None of the features described on this page will be available in Foundry V11. | ||
The compendium browser is a new application for finding content from across multiple compendiums using searching and filtering. The browser can be accessed using the "Open Compendium Browser" button at the top of the Compendium Packs sidebar tab. | ||
|
||
![Compendium Browser - Standard Mode](https://raw.githubusercontent.com/foundryvtt/dnd5e/publish-wiki/wiki/images/compendium-browser/standard-mode.jpg) | ||
|
||
## Modes | ||
|
||
The compendium browser has two modes: standard and advanced. These modes can be changed using a toggle at the top of the window. In standard mode (visible above), the tabs represent specific useful categories for searching, such as classes, subclasses, spells, feats, and monsters. | ||
|
||
In advanced mode (seen below), the tabs are split into actor and item lists and by default the browser will display all actors or items. On each tab additional filtering can be used to narrow in on a specific set of types. | ||
|
||
![Compendium Browser - Advanced Mode](https://raw.githubusercontent.com/foundryvtt/dnd5e/publish-wiki/wiki/images/compendium-browser/advanced-mode.jpg) | ||
|
||
The browser can also be activated from elsewhere in the system in locked mode. In this case the browser will be locked to a specific item type and potentially additional filters could be automatically applied. This mode is used for places where a specific choice must be made, such as choosing a class for your character or selecting a creature to summon. | ||
|
||
![Compendium Browser - Class Selection](https://raw.githubusercontent.com/foundryvtt/dnd5e/publish-wiki/wiki/images/compendium-browser/class-selection.jpg) | ||
|
||
## Module Support | ||
|
||
The compendium browser will automatically pick up content from any enabled modules, displaying results to players so long as they are able to view a given compendium pack. There is no need for modules to do anything for their users to gain access to content through the compendium browser, but additional hints may be provided to aid in its functionality. | ||
|
||
When searching for content the compendium browser will use type hints on compendium pack definitions in the module manifest if provided to determine what kind of content is included in the compendium. If no hints are provided, the compendium will always be scanned, but if specific types are specified then it might be skipped if the user isn't searching for those types, potentially improving performance. | ||
|
||
```json | ||
{ | ||
"name": "spells", | ||
"label": "Spells (SRD)", | ||
"system": "dnd5e", | ||
"path": "packs/spells", | ||
"type": "Item", | ||
"flags": { | ||
"dnd5e": { | ||
"types": ["spell"] | ||
} | ||
} | ||
} | ||
``` | ||
|
||
The flag `flags.dnd5e.types` on a compendium pack in `module.json` should contain an array with the specific item or actor types in that compendium. Providing an empty array here will prevent the browser from searching that pack. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.