Skip to content

Conversation

@dario-daza
Copy link
Contributor

@dario-daza dario-daza commented Jan 6, 2026

Proposed Changes

This PR add the styleProperties field to be queried outside the _map object of the contentlet like this:

query getPageData($url: String!) {
  page(url: $url) {
    containers {
      containerContentlets {
        contentlets {
          identifier
          title
          styleProperties # outside map field
        }
      }
    }
  }
}

Checklist

  • GraphQLTests.json‎: add test for top level style properties in graphql request.
  • ContentFields.java: Include StyleProperties in the contentFields of the Contentlets.
  • Contentlet.java: Create new constant for the name "styleProperties"

This PR fixes: #33696

This PR fixes: #33696

@dario-daza dario-daza marked this pull request as ready for review January 6, 2026 02:13
@dario-daza dario-daza requested review from fabrizzio-dotCMS, jcastro-dotcms, nollymar and wezell and removed request for jcastro-dotcms January 6, 2026 17:44
Copy link
Contributor

@wezell wezell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dario proved out that StyleProperties are not stored in the main cached version of the contentlet - nice work.

@dario-daza dario-daza added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 3bac600 Jan 6, 2026
38 checks passed
@dario-daza dario-daza deleted the 33696-task-update-graphql-to-expose-style-properties branch January 6, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TASK] Update GraphQL to Expose Style Properties

4 participants