Skip to content

Allow creation of content elements#6

Merged
liayn merged 4 commits intomainfrom
bugfix/5-allow-creation-of-content-elements
Jan 29, 2021
Merged

Allow creation of content elements#6
liayn merged 4 commits intomainfrom
bugfix/5-allow-creation-of-content-elements

Conversation

@DanielSiepmann
Copy link
Copy Markdown
Collaborator

@DanielSiepmann DanielSiepmann commented Jan 22, 2021

Fixes: #5

@DanielSiepmann
Copy link
Copy Markdown
Collaborator Author

SkillDisplay/api-php#8 should be merged and released first. Then raise dependency.

@DanielSiepmann DanielSiepmann changed the title Bugfix/5 allow creation of content elements Allow creation of content elements Jan 22, 2021
@DanielSiepmann DanielSiepmann force-pushed the bugfix/5-allow-creation-of-content-elements branch from fb77927 to f82732d Compare January 22, 2021 10:42
Comment thread Classes/CampaignsFactory.php
Comment thread composer.json
@liayn
Copy link
Copy Markdown
Collaborator

liayn commented Jan 22, 2021

Thanks for the great improvement/fix!

@liayn
Copy link
Copy Markdown
Collaborator

liayn commented Jan 22, 2021

SkillDisplay/PHPToolKit#8 should be merged and released first. Then raise dependency.

Done.

@liayn liayn self-assigned this Jan 22, 2021
Content elements could not be created, since they needed campaigns.
In order to retrieve campaigns, the API needs to be created.
The API needs settings from current site, which is not available in that
context.

Therefore the factory is extended to also fetch site and their settings
based on page uid. The page uid is available in the context.

Since we now interact with guzzle, we add the dependency.
Wouldn't be necessary if SDK would have PSR compatible type hints.

Also tests were added for code, to keep code coverage.

Fixes: #5
The new field was introduced without any label.
That label is added, together with description and exclude.
This keeps consistency and explanation to editors.
@DanielSiepmann DanielSiepmann force-pushed the bugfix/5-allow-creation-of-content-elements branch from f82732d to 1e3646e Compare January 23, 2021 14:54
@liayn
Copy link
Copy Markdown
Collaborator

liayn commented Jan 24, 2021

Should be ready for merge, right?

@DanielSiepmann
Copy link
Copy Markdown
Collaborator Author

Yes.

@liayn liayn merged commit 19b7a95 into main Jan 29, 2021
@liayn liayn deleted the bugfix/5-allow-creation-of-content-elements branch January 29, 2021 09:31
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.

It's not possible to create contente elements

2 participants