adds custom categories guide

This commit is contained in:
Christian Beutel
2024-06-15 18:34:19 +02:00
parent 369e63972c
commit 6a6308255c
3 changed files with 20 additions and 0 deletions

View File

@@ -48,6 +48,10 @@ export default defineConfig({
}, {
label: 'Lists',
link: '/guides/lists/'
},
{
label: 'Custom categories',
link: '/guides/custom-categories/'
}, {
label: 'Import/Export',
link: '/guides/import-export/'

Binary file not shown.

After

Width:  |  Height:  |  Size: 460 KiB

View File

@@ -0,0 +1,16 @@
---
title: Custom categories
description: How to create custom trail categories
---
wanderer uses categories to classify what kind of activity a trail belongs to. Out of the box you get: Biking, Canoeing, Climbing, Hiking, Skiing and Walking. However, you can adapt these categories to your needs or add completely new ones.
## Backend access
First, you need access to the PocketBase backend. If you are using docker make sure to forward the internal port 8090 to a public port. With the default configuration, the PocketBase admin panel is available at `http://localhost:8090/_/`. If this is your first time visiting the panel you will need to create an admin account. Afterwards, you will have access to all tables in the backend and can modify the underlying data directly.
## Modifying categories
![Pocketbase Categories](../../../assets/guides/pocketbase_categories.png)
In the PocketBase admin panel, click on the `categories` table in the list on the left side. All existing categories will be listed here. To edit one simply click on the row, edit the data you want to change, and click "Save". To delete a category check the box at the beginning of the row and click "Delete selected". To create a new category click the "New record" button in the top right corner, give your new category a name and a background image, and click "Save".