When adding a new contenttype foo_bar_qux, you might get this error when requiesting a page:
Twig\Error\RuntimeError:
An exception has been thrown during the rendering of a template ("Parameter "contentTypeSlug" for route "listing" must match "homepage|pages|entries|blocks|page|entry|block" ("foo_bar_qux" given) to generate a corresponding URL.").
It's remedied bu running bin/console cache:clear, but this is not very user friendly.
The text was updated successfully, but these errors were encountered:
container params can only be set before the container is compiled, which means we cannot update the container bolt.requirement.contenttypes param at runtime. That means when a new content type is created, cache has to be cleared.
This looks, however, like an important usability issue impacting the "simplicity of creating content" aim of Bolt :/
When adding a new contenttype
foo_bar_qux
, you might get this error when requiesting a page:It's remedied bu running
bin/console cache:clear
, but this is not very user friendly.The text was updated successfully, but these errors were encountered: