Skip to content

Added new RenderElementsEvent #6024

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

Closed
wants to merge 1 commit into from

Conversation

leevigraham
Copy link
Contributor

The new event allows plugin / module authors to override the template rendering for the elements index container.

@brandonkelly brandonkelly added this to the 4.0 milestone May 5, 2020
@brandonkelly
Copy link
Member

This would be a breaking change due to the changed interface method.

@leevigraham
Copy link
Contributor Author

This would be a breaking change due to the changed interface method.

Is there anyway to load the source from the sourceId in the event? I think there is… let me play for an hour.

@leevigraham
Copy link
Contributor Author

@brandonkelly fixed the PR so there's no breaking changes. The source was already being determined a few lines below so I just moved that up and included it in the event.

https://github.com/craftcms/cms/pull/6024/files#diff-73a4b977fac97aabd14c25bdc70a3d5fR583-L587

Turns out this is a very minor code change in the end.

@brandonkelly brandonkelly modified the milestones: 4.0, 3.5 May 6, 2020
@leevigraham
Copy link
Contributor Author

@brandonkelly Do you need me to reissue this to fix the conflicts? I would love to see it in 3.5.

@brandonkelly
Copy link
Member

It’s on my list to look into. Merge conflicts should be easily resolved, don’t worry about it :)

@narration-sd
Copy link
Contributor

broad shoulders, as dependable, @brandonkelly - take care :)

@leevigraham
Copy link
Contributor Author

leevigraham commented May 14, 2020

@brandonkelly resolved the conflicts :) as I'm working locally from my fork.

@leevigraham leevigraham force-pushed the issues/6023 branch 7 times, most recently from d5a7a13 to 8cd998c Compare May 20, 2020 11:51
@leevigraham leevigraham force-pushed the issues/6023 branch 4 times, most recently from 90e0f0f to 8de415b Compare June 3, 2020 09:34
@brandonkelly brandonkelly modified the milestones: 3.5, 3.6 Jul 30, 2020
@leevigraham leevigraham force-pushed the issues/6023 branch 2 times, most recently from 3ef5cd7 to 8a97cd5 Compare August 14, 2020 03:26
The new event allows plugin / module authors to override the template rendering for the elements index container.
@leevigraham
Copy link
Contributor Author

@brandonkelly Just listened to the devode.fm podcast… 😂

@brandonkelly
Copy link
Member

Hahaha, sorry LG :)

@leevigraham
Copy link
Contributor Author

@brandonkelly All good, glad you like the concept. Closing this just saves me a force push and managing two forks :)

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.

3 participants