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 stereotype as filter for contents UI #13770

Merged
merged 9 commits into from
Jun 8, 2023

Conversation

MikeAlhayek
Copy link
Member

Fix #13769

Here are some screenshots while the stereotype parameter is used.
image

image

Here is a view when no stereotype provided

image

@hishamco
Copy link
Member

Did you create a dropdown for Stereotypes?

@MikeAlhayek
Copy link
Member Author

MikeAlhayek commented May 29, 2023

No. The stereotype is a value provided in the URI just like we do today with contentTypeId parameter in the route data

@hishamco
Copy link
Member

So, how can I choose them?

@MikeAlhayek
Copy link
Member Author

From the release notes

OrchardCore.Contents Module

The Contents admin UI now provides a way to manage content items of content types that share the same Stereotype.

For example, lets say we want list all content items of a content types that use Test stereotype. To do that, add an admin menu item that directs the user to /Admin/Contents/ContentItems?stereotype=Test. Adding stereotype=Test to the URL will render the UI using any content type that has Test as it's stereotype.

@hishamco
Copy link
Member

To do that, add an admin menu item that directs the user to /Admin/Contents/ContentItems?stereotype=Test. Adding stereotype=Test to the URL will render the UI using any content type that has Test as it's stereotype.

I see, I though you added a new dropdown to list the available stereotypes :)

@MikeAlhayek
Copy link
Member Author

The idea is to render the UI with only content types that share the same stereotype so it would have to be part of the URI not as a drop down menu.

Menu would be nice in the Content type definition page for stereotype.

@hishamco
Copy link
Member

I agree with the idea, but I don't know where the stereotype is passed.

@MikeAlhayek MikeAlhayek enabled auto-merge (squash) June 8, 2023 23:47
@MikeAlhayek MikeAlhayek merged commit 2003b56 into OrchardCMS:main Jun 8, 2023
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.

Add stereotype as filter for contents UI
3 participants