| Comment | File | Size | Author |
|---|---|---|---|
| #18 | footnotes setting.png | 47.54 KB | dhavalpanchal |
| #6 | Screenshot 2024-02-23 145130.png | 6.4 KB | nickdickinsonwilde |
Issue fork footnotes-3423588
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
scott_euser commentedThanks for looking into this! Can you check if without the patch that any of your blocks are lazy loaded? If so you may need the 'Support for ajax loaded citations' bit mentioned on the homepage.
Another possibility is that you don't have this bit from the homepage in place "Set the block configuration for 'Current entity context for caching' to 'Node from URL'". If you could check/confirm those two options please
Comment #4
nickdickinsonwildeAlmost certainly lazy loaded - do have bigpipe enabled. On the homepage I just see
Beyond placing it is there anything needed?
Adding it to my node via preprocess
Will investigate the caching options.
Comment #5
scott_euser commentedAh sorry I can see that needs better documentation in case your are programmatically creating the block. If you add the block via the UI it's lazy loaded as well and has an option ''Group footnotes using JavaScript" which gets triggered to also watch for new footnotes appearing on ajax load completions.
Comment #6
nickdickinsonwildeJust did it via the block UI instead and that is still getting wrong automatic numbers - it is getting all the numbers correctly and collecting them - it is just each text block/ckeditor area resets to 1.
![multiple [1] footnotes](/files/issues/2024-02-23/Screenshot%202024-02-23%20145130.png)
ex:
The links do point to the correct spots, just the numbers reset each text field.
Comment #7
nickdickinsonwildeNote, this is being used with Layout Paragraphs (but all paragraphs on the same node/field), so chance that is impacting it versus straight paragraphs but I don't think so.
Comment #8
scott_euser commentedOkay thanks for the info, curious to figure this one out and get test coverage for it. I'll see if I can reproduce as well. I do like Layout Paragraphs as well, solid UI, have not played with it for a while so a good opportunity :)
Comment #9
scott_euser commentedYes I can see this happening in Layout Paragraphs. MR on the way
Comment #11
scott_euser commentedSo the Footnotes All Block JS was having two issues:
Comment #12
scott_euser commentedOkay, I think your branch does not hurt either to try to get it right without the JS. With lazy builder stuff in some setups will need the fixed JS. Unless I hear otherwise from you, I will merge both branches next week. Thanks!
Comment #14
scott_euser commentedOkay, going to give up on cspell for now until #3423402: Document how to use the CSPELL job provides some clarity. Anyways they are warnings not failures.
Comment #16
scott_euser commentedComment #18
dhavalpanchal commented@scott_euser I am using Paragraphs and facing the same issue. I’m currently using version 4.0.0-beta5 of the Footnotes module. The content type uses Paragraphs, and the problem occurs when I add new paragraph of the same type within the same node — the footnote numbering restarts from one instead of continuing sequentially.