Skip to content

[5.x] Can't add to allowedContentTags nor allowedContentModifiers #14436

@edalzell

Description

@edalzell

Bug description

There's no way to add some modifiers/tags to allowedContentTags or allowedContentModifiers. For view_config_allowlist there's an @default but it doesn't look that has been replicated in the other ones.

This means you have to copy all of the defaults into your config file.

How to reproduce

  1. Create an addon that has a tag,
  2. Create a tag in your app
  3. Add content that has those tags
  4. Add the addon tag to the config
  5. See error for app tag

Logs

Environment

Environment
Application Name: Zakat Foundation of America
Laravel Version: 11.51.0
PHP Version: 8.3.30
Composer Version: 2.9.5
Environment: local
Debug Mode: ENABLED
URL: zakat.test
Maintenance Mode: OFF
Timezone: America/Los_Angeles
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: null
Cache: file
Database: mysql
Logs: stack / daily
Mail: log
Queue: sync
Session: file

Livewire
Livewire: v3.7.15

Statamic
Addons: 15
Sites: 4 (zakat.org (EN), zakat.org (AR), zakat.org (TR), Mobile App)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.73.18 PRO

Statamic Addons
aryehraber/statamic-captcha: 1.17.0
edalzell/forma: 3.1.2
jacksleight/statamic-bard-mutator: 2.3.1
jacksleight/statamic-distill: 1.1.1
marcorieser/statamic-livewire: 4.5.3
statamic-rad-pack/runway: 7.14.0
statamic-rad-pack/typesense: 2.4.0
statamic/seo-pro: 6.11.8
transformstudios/events: 5.8.3
transformstudios/front: 3.1.2
transformstudios/github: dev-main
transformstudios/metal-prices: dev-2185-april-4-release
transformstudios/neon: dev-2185-april-4-release
transformstudios/review: 5.2.0
transformstudios/simple: 5.43.3

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions