Skip to content

Commit

Permalink
Merge pull request #797 from plone/voltohandson-2023
Browse files Browse the repository at this point in the history
Voltohandson 2023
  • Loading branch information
jackahl authored Oct 1, 2023
2 parents 6087185 + 22e9cf8 commit 18faa7b
Show file tree
Hide file tree
Showing 26 changed files with 1,206 additions and 529 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/voltohandson/_static/latest_news.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/voltohandson/_static/ploneorg-frontpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/voltohandson/_static/slider_screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 19 additions & 1 deletion docs/voltohandson/breadcrumbs.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,31 @@ myst:

## Hiding them from the App first level component

We want to hide breadcrumbs from the homepage.
We want to hide breadcrumbs from the homepage and change the styling a bit.

We can do it by using bare styling, since Volto injects CSS classes in the body that help us to style depending on the object, the content type and the path.
Volto does it very much like Plone does.

```less
//breadcrumbs
.contenttype-plone-site .ui.secondary.vertical.segment.breadcrumbs {
display: none;
}

.ui.secondary.vertical.segment.breadcrumbs {
background-color: @white;
border-bottom: none;
.ui.breadcrumb {
.divider {
color: @black;
}
.section {
color: @black;

&.active {
color: @black;
}
}
}
}
```
24 changes: 16 additions & 8 deletions docs/voltohandson/configandcleanup.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,30 @@ Make sure you save your page after deleting all Blocks and before editing the `c

## Making the Title block deletable

The config will be located inside the `config.js` folder in your projects `src` directory. Iside you will find the following code:
The config will be located inside the `index.js` file in your policy addons `src` directory. Inside you will find the following code:

```js
// All your imports required for the config here BEFORE this line
import '@plone/volto/config';
export default function applyConfig(config) {
// Add here your project's configuration here by modifying `config` accordingly
}
const applyConfig = (config) => {

return config;
};

export default applyConfig;

```

To enable removing the title block you only need to add the following line to override the original `requiredBlocks` array inside the `applyConfig` function:

```js
config.blocks.requiredBlocks = [];
const applyConfig = (config) => {
config.blocks.requiredBlocks = [];

return config;
};

export default applyConfig;
```

```{hint}
You can find all default configurations in your `ommelette/src/config/`.
You can find all default configurations in your `omelette/src/config/`.
```
Loading

0 comments on commit 18faa7b

Please sign in to comment.