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,
I made a sub-module that exposes a DS field or/and a block that shows all footnotes at once.
So if you have multiple fields with footnotes, all footnotes will be displayed as one in that block/field
If someone could verify or add some extra functionality, we could apply it as patch.
Comment | File | Size | Author |
---|---|---|---|
#11 | interdiff-n2603538-5-11.txt | 1.93 KB | LNakamura |
#11 | footnotes-n2603538-11.patch | 9.18 KB | LNakamura |
#10 | interdiff-n2603538-5-8.txt | 1.89 KB | LNakamura |
#8 | footnotes-n2603538-8.patch | 9.18 KB | LNakamura |
#5 | footnotes-n2603538-5.patch | 9.13 KB | LNakamura |
Comments
Comment #2
robin.ingelbrecht CreditAttribution: robin.ingelbrecht commentedComment #3
caseyb CreditAttribution: caseyb commentedHi,
Thanks for putting this up. I have downloaded the file and had a few issues trying to install - eventually unzipped as rar and manually added to modules folder.
With your module installed, a new Footnotes block appeared and I added it to the footer region. I can see the heading 'Footnotes' at the bottom of the page and the footnote itself no longer shows under the entry field as expected but I cannot see the footnote content appearing in the new block. Do I need to create a new DS display to view the footnotes in the block?
Update - Just tried moving the block to the main content area and it showed the footnote content there but at the top above all the content.
I'm actually wanting to have the footnotes show in a block at the bottom of a panels page so this would be great if I can get it working. At the moment, if I add the block on the panels page, it doesn't show up and the footnotes content itself still shows with the original field.
Hope this feedback helps and happy to keep testing it.
Tested on:
Drupal 7.39
Footnotes 7.x-2.5
Adaptive Sub-theme
Thanks!!
Comment #4
caseyb CreditAttribution: caseyb commentedUpdate to previous comment - this block seems to work as expected when added to different regions :)
For my particular use case, it doesn't seem to work for panels pages via views.
Comment #5
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedHi, Robin - thanks for creating this submodule!
We addressed a few Drupal coding standards issues in your code and I used that code base to create a patch.
Thanks again,
Lee
Comment #6
kepford CreditAttribution: kepford at Mediacurrent commentedThe patch from Lee in #5 applies cleanly.
Comment #7
DamienMcKennaSome minor quibbles:
Comment #8
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedThanks for the reviews, Bob and Damien!
Damien - I've addressed the issues you pointed out and re-rolled the patch. Please take a look at it when you have a chance.
Thanks,
Lee
Comment #9
kepford CreditAttribution: kepford at Mediacurrent commentedChanges look good.
Comment #10
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedAdding interdiff...
Comment #11
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedRe-rolling for a tiny tweak to the css...
Comment #12
kepford CreditAttribution: kepford at Mediacurrent commentedAh, I missed the bracket spacing in the CSS. Looks good now Lee.
Comment #13
LNakamura CreditAttribution: LNakamura at Mediacurrent commentedThanks, Bob!
Comment #14
Ada Hernandez CreditAttribution: Ada Hernandez at MTech, LLC commentedNeed this functionality in Drupal 8, so We're working in this now (this is a proposal)
1. Deactivate the footnotes for each individual field.
2. Hash the foot note using a deterministic hash and affix it as a CSS class (& html id on the
<a>
tag).3. Create a pseudo field to show in page footer.
4. Create a list in pseudo field by loading all fields on the page, hunting and collecting a list of all footnotes.
5. Use js to renumber the footnotes by using the deterministic hash.
Comment #15
yukare CreditAttribution: yukare commentedDo not change to drupal 8 while there is a patch for drupal 7 to commit.
Comment #17
yukare CreditAttribution: yukare commentedCommited to git. This is fixed n drupal 7 but we need a patch to drupal 8.
Comment #19
robin.ingelbrecht CreditAttribution: robin.ingelbrecht commentedIf I can make time, I want to write a D8 port...
Comment #20
pifagorDone
Comment #21
pifagor