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

Remove element_dom_id helper #2369

Merged
merged 5 commits into from
Sep 4, 2022
Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Sep 2, 2022

What is this pull request for?

Builds on top of #2368

Removes two previously deprecated helpers

Checklist

@tvdeyen tvdeyen added this to the 6.1 milestone Sep 2, 2022
@tvdeyen tvdeyen changed the title Remove element dom Remove implicit element dom ids Sep 2, 2022
@tvdeyen tvdeyen force-pushed the remove-element-dom-id branch 3 times, most recently from f4d0dc4 to 4ea29d5 Compare September 3, 2022 20:21
@tvdeyen tvdeyen changed the title Remove implicit element dom ids Remove element_dom_id helper Sep 3, 2022
@tvdeyen tvdeyen marked this pull request as ready for review September 3, 2022 20:26
Copy link
Contributor

@mamhoff mamhoff left a comment

Choose a reason for hiding this comment

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

This goes into Alchemy 7 i guess?

@tvdeyen
Copy link
Member Author

tvdeyen commented Sep 4, 2022

This goes into Alchemy 7 i guess?

6.1

@tvdeyen tvdeyen force-pushed the remove-element-dom-id branch from 4ea29d5 to 9af22cd Compare September 4, 2022 10:35
@tvdeyen tvdeyen mentioned this pull request Sep 4, 2022
3 tasks
We cannot use the id, because that will change if publish the page.
The position will be the same across versions and combined with
the name it is unique on each page.

Fixes AlchemyCMS#2354
Use `element.dom_id` instead.
Please implement your own unique DOM ID for your elements and
pass it as anchor to your URLs.
@tvdeyen tvdeyen force-pushed the remove-element-dom-id branch from 9af22cd to 2b8680c Compare September 4, 2022 16:08
@tvdeyen tvdeyen merged commit 48781d8 into AlchemyCMS:main Sep 4, 2022
@tvdeyen tvdeyen deleted the remove-element-dom-id branch September 4, 2022 16:51
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.

2 participants