Update 'Upgrading Omeka core'

chris 2021-05-17 16:43:37 +02:00
parent 91d3c35f1e
commit cb964c52c4
1 changed files with 7 additions and 7 deletions

@ -1,13 +1,11 @@
Things to do after upgrading the Omeka core.
## Remove HTML block
Users can paste text into the Omeka HTML block. This is undesirable because html style and classes are included in the html.
## Remove unwanted blocks for page edit
We de not want unexpected formats.
For this reason we have developed the Markdown text module. Markdown allows basic HTML formatting without extra unwanted text formatting.
But we also want to remove the HTML block so users cannot include it in their pages.
Blocks are:
* **HTML**: Users can paste text into the Omeka HTML block. This is undesirable because html style and classes are included in the html. We de not want unexpected formats. For this reason we have developed the Markdown text module. Markdown allows basic HTML formatting without extra unwanted text formatting. But we also want to remove the HTML block so users cannot include it in their pages.
* tableOfContents
* searchingForm
You need to copy the page template from the omeka core into the arcHIVE theme.
@ -22,6 +20,8 @@ Then edit the new file, adding the line `<?php if ($layout == "html") { continue
```
<?php foreach ($this->blockLayout()->getLayouts() as $layout): ?>
-->> <?php if ($layout == "html") { continue; } ?>
-->> <?php if ($layout == "tableOfContents") { continue; } ?>
-->> <?php if ($layout == "searchingForm") { continue; } ?>
<button type="button" value="<?php echo $escape($layout); ?>" class="option">
<?php echo $escape($translate($this->blockLayout()->getLayoutLabel($layout))); ?>
</button>