Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Is there plans to introduce D8 version of this module?
We (@InternetDevels team) would like to help you with development of this version.
Thanks, @ipo4ka704 and (@Rumato).
Comment | File | Size | Author |
---|---|---|---|
#28 | maxlength-2220169-port-to-d8-28.patch | 25.93 KB | mordonez |
#26 | maxlength-2220169-port-to-d8-26.patch | 25.14 KB | mordonez |
#22 | maxlenth-d8-2220169-22.patch | 14.56 KB | tannerjfco |
#20 | updating_all_files_for_drupal_8x_from_7x3x-2220169-12.patch | 50.96 KB | Anonymous (not verified) |
#11 | updating_all_files_for_drupal_8x_from_7x3x-2220169-11.patch | 49.62 KB | breta |
Comments
Comment #1
dawehnerI guess noone yet considered to work on a new version but it is certainly worth to think about it.
Drupal 8 might offer enough metadata to have a proper integration into title/body and all kind of other fields without additional effort.
Comment #2
ipo4ka704 CreditAttribution: ipo4ka704 commentedThanks for reply. Ok, I got it. If there are plans to introduce D8 version of this module, please notify as.
Comment #3
vasi1186 CreditAttribution: vasi1186 commentedI created a branch for D8, and start working on it at Drupal Dev Days Szeged.
Comment #5
ebeyrent CreditAttribution: ebeyrent commentedCan you please make a dev release so people can start testing?
Comment #6
frjo CreditAttribution: frjo commentedI have created a 8.x-1.x release now, it will show up as soon as the build scripts on d.o. have done their bit.
Comment #7
ebeyrent CreditAttribution: ebeyrent commentedI don't see a D8 release yet - do you have to enable it?
Comment #8
frjo CreditAttribution: frjo commentedI have enabled it to display on the project page now, it was only listed on the releases page before.
Comment #9
breta CreditAttribution: breta commentedHere is patch for 7.x-3.x version of Maxlength. This patch updating all files to be compatible with drupal 8.
Comment #10
gvsoHi @breta, thanks for the path but the patch didn't apply to me, even if you do it with simplytest.me, you will get an error
However I also noticed these ones
\No newline at end of file and maybe they will be unnecessary if this will be for D8
You removed the hook_permission() and didn't use an .permissions.yml instead
This won't work
Please make the patch work.
Comment #11
breta CreditAttribution: breta commentedI add the permissions and now the help function works when I tested it on my computer. I tested applying patch too and it worked for me now.
Comment #12
naveenvalechaAwesome work!.Some fixes that needs reroll.
Seems you forgot to remove the #.
This is automatically added by drupal.org packaging script.So its not needed.SImply remove it.
@typo here.
<?php
Just add the line at the EOF in next reroll.
little code sniffer issue.
Just add the line in the next reroll.
Comment #13
naveenvalechaChanged the version.
Also remove the license.txt it is automatically added by the drupal.org packaging script.
Comment #14
webiator GmbH CreditAttribution: webiator GmbH commentedIs anyone currently working on this?
In order to make this work we have to keep this in mind https://www.drupal.org/node/2225801
Comment #15
dawehner@brutzelspeck
If you want to work on it, feel free to ping me and get maintainer permissions ...
Comment #16
vasi1186 CreditAttribution: vasi1186 at Amazee Labs commentedI started again to work on it.
I replaced the hook_field_attach_form() with hook_field_widget_form_alter().
Comment #17
FrancewhoaWe would be happy to contribute testing patch, quality assurance, documentation, and agile project management services if needed
Any additional volunteers to port Maxlength module from Drupal 7 to 8?
Related pages
Comment #18
FrancewhoaI updated this ticket title so it's easier to find with aggregators and search engines
Comment #19
FrancewhoaThat related ticket shows the D8 porting status on the module project page under "Recommended releases" section at https://www.drupal.org/project/maxlength
Which invites additional contributors to join the efforts
Details at https://www.drupal.org/project/contrib_tracker
Comment #20
Anonymous (not verified) CreditAttribution: Anonymous commentedWe need the maxlength modul in our project. We had to port them. This patch make the module working with the D8 Version. It's not full ported but you can use the basic function including executing the nessesary javascripts to show the countdown.
The patch based on the last D8 dev version.
Comment #21
dawehner@Almare
Ideally patches are created via GIT, so stuff like the LICENSE.txt or changed info.yml files aren't committed as well.
Comment #22
tannerjfco CreditAttribution: tannerjfco commentedThe patch in #20 couldn't apply to either dev release or git, so here's a re-roll
Comment #24
frjo CreditAttribution: frjo commentedCommitted #22 to 8.x-1.x, thanks for working on this!
Comment #26
mordonez CreditAttribution: mordonez as a volunteer commentedAfter install maxlength module from d8 branch i've get the following error at admin/structure/types/manage/page/form-display:
[Sat Mar 05 00:22:52 2016] [error] [client 127.0.0.1] Recoverable fatal error: Argument 1 passed to maxlength_field_widget_third_party_settings_form() must be an instance of WidgetInterface, instance of Drupal\\Core\\Field\\Plugin\\Field\\FieldWidget\\StringTextfieldWidget given in /Users/mordonez/Sites/d8/modules/custom/maxlength/maxlength.module on line 65
I'd take a chance to share a patch that i done to get maxlength running on D8. I have taken the liberty to do some changes for myself:
- I've removed title code because now is a field.
- I've removed the settings of truncate html (because is not ported yet)
- I've removed the settings of summary (because is not ported yet)
- Removed tinymce code (ckeditor in core).
- Added the library
Any comments are welcome.
Comment #27
Michèle CreditAttribution: Michèle commented@mordonez
thank you very much for this patch! I had a similar error in conjunction with the Paragraphs module (see this issue). Your patch has resolved the problem. :-)
Comment #28
mordonez CreditAttribution: mordonez as a volunteer commentedHere another version porting truncate and summary.
I've deleted schema files, because i think is not necessary when uses hook_field_widget_third_party_settings_form or i didn't found the way to do it..
Comment #29
mordonez CreditAttribution: mordonez as a volunteer commentedComment #30
mordonez CreditAttribution: mordonez as a volunteer commentedI've changed the status to review, but i don't know if i can change it from a closed (fixed) issue or I need to create another issue to porting the module.
Comment #31
Anonymous (not verified) CreditAttribution: Anonymous commentedI tested your patch mordonez from #28 and it works as expected.
@tannerjfco thx for the reroll.
Comment #33
dawehnerPeople use that patch in production, so yeah let's get it in. We can refine the Drupal 8 version more, this is for sure. Thank you for the patch. Committed and pushed
Please open new issues for other problems. Thank you!