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

Use the picker to select article target in news and calendar #6551

Merged
merged 2 commits into from Nov 22, 2023

Conversation

aschempp
Copy link
Member

News and calendar events currently allow to select an article target. They render a dropdown list of all articles of visible root nodes.

With this PR, the user can now use the picker to select an article, which I think is a superior interface. The only disadvantage is that one must have access to articles in the backend. We could use an callback to modify the field on-the-fly, but I'm not sure that's worth the effort?

PS: I remember having discussed this a long time ago and I was surprised this isn't implemented yet. Maybe someone remembers if I'm missing something?

@aschempp aschempp added this to the 5.3 milestone Nov 20, 2023
@aschempp aschempp requested a review from a team November 20, 2023 20:36
@aschempp aschempp self-assigned this Nov 20, 2023
bytehead
bytehead previously approved these changes Nov 20, 2023
Toflar
Toflar previously approved these changes Nov 21, 2023
Copy link
Member

@leofeyer leofeyer left a comment

Choose a reason for hiding this comment

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

Did you deliberately not remove the tl_calendar_events::getArticleAlias() method as well?

@aschempp aschempp dismissed stale reviews from Toflar and bytehead via 47ea4c1 November 22, 2023 10:38
@aschempp
Copy link
Member Author

nope, removed in 47ea4c1

Copy link
Member

@Toflar Toflar left a comment

Choose a reason for hiding this comment

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

-100 LoC and +UX, love it 😄

@leofeyer leofeyer merged commit 436db87 into contao:5.x Nov 22, 2023
16 checks passed
@leofeyer
Copy link
Member

Thank you @aschempp.

@aschempp aschempp deleted the feature/article-target branch November 23, 2023 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants