Een hart voor de Drupal Community

Bij make it fly geloven we sterk in Drupal en Open Source software in het algemeen. We maken dagelijks gebruik van vele open source componenten en de vele Drupal modules die beschikbaar zijn. We dragen actief ons steentje bij aan de community door zelf patches, modules en documentatie te voorzien, daarnaast zijn enkele teamleden ook actief in de Drupal User Group vzw.

Een overzicht van onze bijdragen aan de Drupal community vind je terug op onze Drupal.org pagina. Naast het actief meerwerken aan de Drupal community, zetten we ook andere ontwikkelaars op weg door vragen te beantwoorden op Drupal Answers.

  1. Is it possible to add a marker popup with text when using the form formatter (Leaflet Map Default)

    Fons

    Hello thank you for your feedback, it does indeed steer me in the right direction.

    The geocoding might overcomplicate it a bit.

    I think I didn't take enough time to try to describe what I was looking for.

    In the current module you can drop markers which is great but there is no out of the box way (as I can see) to add some context to a marker (which is shown in the tooltip).

    For example it would be great to add markers in a neighbourhood to show locations like:

    • Drop marker on the map and add a label "Post office" (that is shown in a tooltip when viewing the marker on the map)
    • Drop marker on the map and add a label "School" (that is shown in a tooltip when viewing the marker on the map)
    • Drop marker on the map and add a label "Bakery" (that is shown in a tooltip when viewing the marker on the map)
    • Drop marker on the map and add a label "Coffee shop" (that is shown in a tooltip when viewing the marker on the map)

    Thank you for the time to answer my questions and the work on this module.

    Have a great day

    Fons

  2. Masquerade as Authenticated user role only

    Randal

    Hi @mitsuko,

    I'm not entirely certain what the case was anymore but when I built this module, I ran into some strange behaviour when the authenticated role wasn't present. I could test it again, but I figure it's not really important anymore.

    In any case, the reason you didn't run into any such incidents is because with your patch, behind the scenes the module would still apply the authenticated role (even if you didn't select it) in the submit handler.

    I think regarding the validation, we shouldn't worry about that anymore. Before it was deliberately made impossible to leave the role selectbox empty, so we had to double check in the validator to see if people didn't get around HTML validation and leave it empty anyway. But since we now want it to be left empty when required, we don't need that extra validation anymore.

    Any extra roles that are added through the inspector will also fail the form, since Drupal automatically handles that as invalid input as it wasn't in the form element's `#options` array.

  3. Is it possible to add a marker popup with text when using the form formatter (Leaflet Map Default)

    Fons

    Thank you for your answers, I was indeed referring to the widget (and not the formatter) my bad.

    As I can see now there is no default way to drop a marker on the map and add some text to the pop-up in the widget.

    I guess the only way to get around this for me is to add an address field (that gets geocoded) and a text field field and render that with a view / code on the map myself.

    Thank you for your feedback.

  4. Masquerade as Authenticated user role only

    Randal

    Hi @mitsuko,

    I see your point, it would be useful to only masquerade as the authenticated role, however I think I'll fix it somewhat differently.

    The authenticated role *should* always be selected, so removing it from the automatically selected roles might produce strange results. I'll just remove the 'required' parameter from the roles selector, leaving the field empty will result to only the authenticated role being enabled.

    That should cover every use case.

  5. Is it possible to add a marker popup with text when using the form formatter (Leaflet Map Default)

    Fons

    Problem/Motivation

    Hello, i'm currently using this awesome module and it's really nice. Thank you!

    The only feature that I miss / can't find is how to add marker popup data (preferably text) when using the form formatter (Leaflet Map Default).

    Now I can add markers (without data / pop-up info), polygons, lines, etc.

    How can this be achieved, can anyone put me in the right direction?

    Thanks in advance!

  6. Offer to co-maintain imagick

    Brecht Ceyssens

    Hi ivnish,

    I just added you as a co-maintainer. All help on the project is welcome!

    Kind regards Brecht Ceyssens

  7. TermStorage::loadTree is not language aware

    Randal

    Problem/Motivation

    As a result of #2615864, this module also suffers from issues with translations. It always retrieves taxonomy terms in their default language, rather than the current language.

    Steps to reproduce

    Create translations of the dictionary vocabulary terms, and add the words to a page in a different language than the default language of the terms.

    Proposed resolution

    Slightly rework the functionality regarding the loading of taxonomy terms in the TooltipManager class.

    I will create a MR with my proposal.

  8. Stable version release?

    Brecht Ceyssens

    Hi Hauke,

    Did you find the ResponsiveImageFormatter? https://git.drupalcode.org/project/combined_image_style/-/blob/1.0.x/src... I also created a formatter for media fields in a project of ours so you can configure combinations for each breakpoint in the display of an entity. No need for responsive images styles. Is that what you're looking for? If so, I can add my work to the project.

  9. Automated Drupal 11 compatibility fixes for tablefield

    Fons

    I just tested the patch in comment #4 and everything seems to work fine.

    I was wondering if this can get merged in a new release?

    For now I'll use the patch as this is one of the modules that holds me from upgrading to Drupal 11.

    Thank you!

  10. Install Tocbot library with composer

    Fons

    Problem/Motivation

    It would be nice if we could add the steps to add the Tocbot library that is used by this module with composer.

    Proposed resolution

    Update the Readme file and project detail page on drupal.org

    Remaining tasks

    Create a patch, if you are open to this suggestion I don't mind creating and posting the patch. -> Patch in comments

    As I see it now the following steps are needed:

    INSTALLATION VIA COMPOSER

    1. It is assumed you are installing Drupal with Composer (https://www.drupal.org/download).

    2. Add the following entry in the "repositories" section of your main composer.json file.

    {
                "type": "package",
                "package": {
                    "name": "tscanlin/tocbot",
                    "version": "4.30.0",
                    "type": "drupal-library",
                    "source": {
                        "url": "https://github.com/tscanlin/tocbot",
                        "type": "git",
                        "reference": "v4.30.0"
                    }
                }
            }
    

    Now you can run the following command to install chosen in the right folder:

    composer require tscanlin/tocbot

    3. Clear the cache 4. Go to Administration > Configuration > Content Authoring > Tocbot Settings (/admin/config/content/tocbot) 5. Configure the module to your needs 6. Click "Save configuration"

  11. Blazy renders the same classes on all blazy elements on a page.

    Fons

    Dear gausarts, thank you for the compliment and sorry to read that.

    Just a thought:

    If we would toggle this setting by default in the install file of the module it would only trigger / set it default for new installs.

    Existing installs wouldn't be affected, if you want to affect those (which you don't and I totally get that) you would add this in an update hook.

    If you are interested in a patch for the install file i'd be happy to make it but it is not a dealbreaker for me.

    Thank you for all your work and have a great evening! There are a lot of good people out there so try to focus on those, that may help!

  12. Blazy renders the same classes on all blazy elements on a page.

    Fons

    Thank you for your reply, I checked the Blazy settings page but it seems that I read over the checkbox to disable these classes.

    I just checked the setting and everything looks better / clean now.

    If I may suggest an upgrade I think it's fair to check this setting by default as a clean DOM is preffered over all these classes in most cases but that is just my view.

    Thanks!

  13. Blazy renders the same classes on all blazy elements on a page.

    Fons

    I created a patch that cleans out the function so the DOM is now a lot less bloated with unneeded classes.

    I might miss the point why all these classes are added on every media element but they are not needed for the module to work and I don't see the value they add.

    Feel free to enlighten me.

Sven Decabooter - Drupal Developer

"Onze teamleden bouwen zelf ook mee aan ons geliefde Drupal, en daar zijn we trots op"

Sven Decabooter
Drupal developer

Betrouwbare technologie, naadloze prestaties. Dat zijn onze Drupal-oplossingen.