Skip to content

Commit

Permalink
Update doc related to activityBar
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Jan 8, 2024
1 parent 4f644e0 commit bc53e54
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/customization.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@ In json files, you can just override the primary keys you need. You have to over

- `home.json` to define homepage settings.

- `activityBar`: This is a menu showing all search types (hiking practices, outdoor practices, tourist content categories and tourist events categories).

- `shouldDisplay`: Boolean allowing this menu to be displayed or not. Its default value is `true`.
- `numberOfItemsBeforeTruncation` The number of items displayed on the screen. To see the others, click on the "Show more" button. Its default value is `8`.
- `links`: Allows you to customize the order and display of categories links. It's an array containing an object with 3 properties:
```typescript
{
"type" : 'trek' | 'outdoorSite' | 'touristicContent' | 'touristicEvent' ;
"grouped" : boolean ; // If set to "true", all activities of the type are grouped under a single link.
"iconUrl" : string ; // Optional, url to replace default icon. Used only if "grouped" is set to "true",
}
```

More explanations in this [comments](https://github.com/GeotrekCE/Geotrek-rando-v3/issues/560#issuecomment-1858166341) (in French).

- `suggestions`: You can define blocks to display suggestions groups with treks ID, outdoor sites ID, services ID or events ID to highlight on homepage (see https://github.com/GeotrekCE/Geotrek-rando-v3/blob/main/frontend/customization/config/home.json).
Each group has the following properties :

Expand Down

0 comments on commit bc53e54

Please sign in to comment.