Skip to content

Antlers tag not outputting data from custom JSON-LD #543

@Hoko2021

Description

@Hoko2021

Bug description

Possibly linked to this feature that was implemented: #536

Thank you quickly adding this feature, very useful. It's not an urgent issue as with our implementation it will be static values.

When putting in Antler tags in the fields as described in the documentation, the tags are rendered instead of the data they should pull from the cascade. E.g. {{ title }} renders as is like `"name": "{{ title }}"

How to reproduce

  1. Add Custom JSON-LD to site/section defaults or entry
  2. Include Antler tags that are in the cascade like "site:url" or "title"
  3. Save/Publish
  4. Look in the respective script head tag

Logs

Environment

Environment
 Laravel Version: 12.56.0
 PHP Version: 8.3.29
 Composer Version: 2.8.9
 Environment: build
 Debug Mode: OFF
 Maintenance Mode: OFF
 Timezone: Europe/London
 Locale: en

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

Drivers
 Broadcasting: log
 Cache: database
 Database: mysql
 Logs: stack / single
 Mail: log
 Queue: sync
 Session: file

Storage
 public/storage: LINKED

Statamic
 Addons: 4
 Sites: 6 (Site 1, Site 2, Site 3, and 3 more)
 Stache Watcher: Disabled
 Static Caching: half
 Version: 6.14.0 PRO

Statamic Addons
 aerni/font-awesome: 4.0.1
 statamic/eloquent-driver: 5.6.3
 statamic/importer: 2.1.0
 statamic/seo-pro: 7.6.1

Statamic Eloquent Driver
 Addon Settings: eloquent
 Asset Containers: eloquent
 Assets: eloquent
 Blueprints: eloquent
 Collection Trees: eloquent
 Collections: eloquent
 Entries: eloquent
 Fieldsets: eloquent
 Form Submissions: eloquent
 Forms: eloquent
 Global Sets: eloquent
 Global Variables: eloquent
 Navigation Trees: eloquent
 Navigations: eloquent
 Revisions: eloquent
 Sites: eloquent
 Taxonomies: eloquent
 Terms: eloquent
 Tokens: eloquent

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions