Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom sorting documentation #770

Merged

Conversation

matthiasseghers
Copy link
Contributor

Q A
Fixed tickets N/A
Related PRs N/A
License MIT

What's in this PR?

Adds a section that explains how to customize the fields of smart_content that are displayed on the admin side. By making small adjustments, you can change the configuration without having to write a custom data provider with a custom entity. This can be particularly helpful when sorting needs to be done on a custom property for one of the types, or when certain functionality is fixed. For instance, you may want to overwrite the sorting method without giving the option to overwrite it with a custom QueryBuilder. These changes to the documentation file are meant to clarify and simplify the process of customizing smart_content fields on the admin side.

Why?

The documentation currently doesn't mention that certain parts of the DataProvider can be overwritten to make minor changes to the configuration without having to create a custom data provider. Additionally, it doesn't explain how to sort by a custom property based on one of the templates.

@alexander-schranz alexander-schranz merged commit bc507fb into sulu:2.x Apr 12, 2023
@alexander-schranz
Copy link
Member

@matthiasseghers thank you!

@matthiasseghers matthiasseghers deleted the smartcontent-custom-sorting branch April 13, 2023 13:22
martinlagler pushed a commit to martinlagler/sulu-docs that referenced this pull request Feb 13, 2024
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.

None yet

2 participants