Skip to content

Commit

Permalink
Rename adding-installing-new-block.md to integrate-new-block.md
Browse files Browse the repository at this point in the history
Tidy up html_meta
Add MyST markup
  • Loading branch information
stevepiercy committed Nov 18, 2024
1 parent 28854ed commit 699018d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 40 deletions.
39 changes: 0 additions & 39 deletions docs/customizing-volto-light-theme/adding-installing-new-block.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/customizing-volto-light-theme/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ This training is best suited for developers who have prior experience with Volto
concepts
creating-new-project
installing-vlt
adding-installing-new-block
integrate-new-block
theming
question-answer
```
38 changes: 38 additions & 0 deletions docs/customizing-volto-light-theme/integrate-new-block.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
myst:
html_meta:
"description": "Adding New Block"
"property=og:description": "Adding New Block"
"property=og:title": "Adding New Block"
"keywords": "Plone, Volto, Training, Volto Light Theme, Integrate, block"
---

# Integrate a new block

In this training module, we'll learn how to integrate the `@plone-collective/volto-relateditems-block` into VLT. This block allows you to create links to related content in your Plone site.

## Install `@plone-collective/volto-relateditems-block`

To install the related items block, make sure you are in the {file}`frontend/packages/volto-my-project` folder, and use the following command:

```shell
pnpm install @plone-collective/volto-relateditems-block
```

After installation, ensure that the add-on is included in the `addons` key of your project's {file}`package.json`:

```json
"addons": [
"@eeacms/volto-accordion-block",
"@kitconcept/volto-button-block",
"@kitconcept/volto-heading-block",
"@kitconcept/volto-highlight-block",
"@kitconcept/volto-introduction-block",
"@kitconcept/volto-separator-block",
"@kitconcept/volto-slider-block",
"@plone-collective/volto-relateditems-block",
"@kitconcept/volto-light-theme"
],
```

That's it! Your project should now be using `@plone-collective/volto-relateditems-block`, which shows related items for the content as a list of links.

0 comments on commit 699018d

Please sign in to comment.