Skip to content

Remove unneeded nesting in the ExcerptData and SeoData#7

Merged
alexander-schranz merged 2 commits into
Prokyonn:enhancement/seo-dynamic-datafrom
alexander-schranz:enhancement/seo-dynamic-data-flatten
Nov 21, 2025
Merged

Remove unneeded nesting in the ExcerptData and SeoData#7
alexander-schranz merged 2 commits into
Prokyonn:enhancement/seo-dynamic-datafrom
alexander-schranz:enhancement/seo-dynamic-data-flatten

Conversation

@alexander-schranz

@alexander-schranz alexander-schranz commented Nov 21, 2025

Copy link
Copy Markdown

Continue of: sulu#8383

The excerptData should not include the array with key excerpt and seoData not key with seo.

So its $dimensionContent->setExcerptData(['title' => 'Excerpt Title')]);

@alexander-schranz alexander-schranz force-pushed the enhancement/seo-dynamic-data-flatten branch 2 times, most recently from 4586410 to 735ed89 Compare November 21, 2025 18:35
@alexander-schranz alexander-schranz marked this pull request as draft November 21, 2025 18:35
@alexander-schranz alexander-schranz changed the title Flatten the ExcerptData and SeoData Remove unneeded nesting in the ExcerptData and SeoData Nov 21, 2025
@alexander-schranz alexander-schranz force-pushed the enhancement/seo-dynamic-data-flatten branch 3 times, most recently from 666a350 to 24893f9 Compare November 21, 2025 18:48
@alexander-schranz alexander-schranz force-pushed the enhancement/seo-dynamic-data-flatten branch 4 times, most recently from 0427e1a to e4bfd2e Compare November 21, 2025 19:17
@alexander-schranz alexander-schranz force-pushed the enhancement/seo-dynamic-data-flatten branch from e4bfd2e to 6bb098f Compare November 21, 2025 19:27
@alexander-schranz alexander-schranz force-pushed the enhancement/seo-dynamic-data-flatten branch from 8e20f40 to 0bf1b77 Compare November 21, 2025 19:44
@alexander-schranz alexander-schranz marked this pull request as ready for review November 21, 2025 19:47

public function testMapWithInvalidExcerptProperty(): void
{
$this->markTestSkipped('TODO: we should implement this as soon as we implemented also unlocalized properties.');

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Like the test but currently skipped we should add something similar we do for templateMetadata to write the properties in localized and unlocalized correctly:

https://github.com/sulu/sulu/blob/aebcb9f253457463e96a941a0958dba43066a067/packages/content/src/Application/ContentDataMapper/DataMapper/TemplateDataMapper.php#L67-L72

@alexander-schranz alexander-schranz merged commit 0bf1b77 into Prokyonn:enhancement/seo-dynamic-data Nov 21, 2025
8 checks passed
@alexander-schranz alexander-schranz deleted the enhancement/seo-dynamic-data-flatten branch November 21, 2025 19:49
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.

1 participant