Account created on 6 November 2007, about 17 years ago
#

Merge Requests

More

Recent comments

🇩🇪Germany berliner

Great! Looking forward to a stable release then.
This is a great module!

🇩🇪Germany berliner

Yes, works as expected now in dem. Thanks!

🇩🇪Germany berliner

Yes, the dev branch looks good and I don't see this issue there anymore. Thanks!

🇩🇪Germany berliner

I have also run into the same issue as @joegl. My work-around looks like this:

  /**
   * {@inheritdoc}
   */
  public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
    $form = parent::buildConfigurationForm($form, $form_state);
    $input = $form_state->getUserInput();
    $element_parents = ['layout_paragraphs', 'config', 'column_widths'];
    $columns_width = NestedArray::getValue($input, $element_parents);
    if (!array_key_exists($columns_width, $this->getWidthOptions())) {
      NestedArray::setValue($input, $element_parents, $this->getDefaultWidth());
      $form_state->setUserInput($input);
    }
    return $form;
  }
🇩🇪Germany berliner

I have rebased the MR and made an additional change not redirect to the same requested URL if the webp creation succeeded. Only redirect to source image if the webp creation failed. Also did some cleanup of the comments and the method name in the ProxySubscriber to better reflect what it actually does.

🇩🇪Germany berliner

Can you have a look at the value of drupalSettings.layout_builder_ipe.entity_selector in your browser console. This variable should contain a CSS selector, and that selector should exist on the page. There might indeed be issues with the theme, but it's hard to tell from the distance.

🇩🇪Germany berliner

Didn't meant to drop the last changes.

🇩🇪Germany berliner

I don't have time to look at the MRs and update them, but I have re-rolled https://git.drupalcode.org/project/drupal/-/merge_requests/744 for 10.3.x. I'll upload that as a patch file for now.

🇩🇪Germany berliner

Unfortunately, due to the way that these buttons are now placed in the sticky header, by creating a new <label> tag, this breaks setups with more fancy custom buttons, e.g. with ajax behaviours attached.
Not sure if this issue should address that too.

🇩🇪Germany berliner

Thanks so much for creating this MR. Gin is sometimes a bit too opinionated :/

🇩🇪Germany berliner

I have tagged 1.0.0-alpha10 as a new release which adds support for Drupal 11.
https://git.drupalcode.org/project/layout_builder_ipe/-/commit/082df0767...

🇩🇪Germany berliner

I have just tagged a new release 1.0.0-beta10.
Please test with that and let me know if that solves your issue.

🇩🇪Germany berliner

Can you try with the dev version of this module please? I think your issue is fixed by https://git.drupalcode.org/project/layout_builder_ipe/-/commit/001cdcce5... which isn't yet in the tagged release.

🇩🇪Germany berliner

I can reproduce the problem. Will have a look at it.

🇩🇪Germany berliner

Run into this too and I don't think that we can pass HTML markup in Drupal.t().

I have created a patch that changes the way these default strings are handled and how translation can happen now. Not sure this covers all use cases, but I'll attach it here for review.

🇩🇪Germany berliner

Yes, thanks for the heads-up. It's always interesting to see what's out there in terms of new contrib modules. But I agree with the comments in 📌 Difference with layout_builder_ipe ? Active that both modules have different purposes.

🇩🇪Germany berliner

Flyke summarized it quite good in #3476122-4: Difference with layout_builder_ipe ? if you ask me. What do you want me to comment there?

🇩🇪Germany berliner

Yes, from my POV these are still experimental because I can't assess how this affects other, maybe more widely used, contrib modules. I use both of these features in production sites, but unless I get feedback from other users (or ideally bug reports that can be fixed and makes these features more mature), I prefer to mark them as experimental.

Maybe I didn't use the right term, I mean experimental not in the sense that I'm considering removing these anytime soon, but that the way they have been technical implemented suggests to me that they either break easily depending on the specific individual setup, or that they break features from other modules.

🇩🇪Germany berliner

Thanks for raising this issue drclaw!

While I generally agree with the patch, I'm just a bit confused how you encountered this issue. Looking quickly, I couldn't find anything that's actually broken due to the changes in page manager rc3 and my understanding is that even if $this->routeMatch->getParameter('page_manager_page_variant') (/src/LayoutBuilderIpeService.php?ref_type=heads#L476) fails, the call to $this->getEntity() in /src/LayoutBuilderIpeService.php?ref_type=heads#L488 provides a fallback (which actually looks at the request attributes just as you propose).

So for my own curiosity: Can you describe what is actually broken before this change?

🇩🇪Germany berliner

Last patch applies properly to 1.7. Thanks for the re-roll.

🇩🇪Germany berliner

Great! I'll close this issue then and add a link to the core patch to the project page. Not sure how to prevent this issue otherwise.

🇩🇪Germany berliner

Just in case you are on Drupal 10.3, did you try the patch from 🐛 Logic error in Drupal's lazy load for asset aggregation Active ? It should also apply to Drupal 10, even though the issue is marked for 11.

🇩🇪Germany berliner

Thanks for reporting. Can you update this issue with the following information?

  1. Exact version of Drupal Core
  2. Exact version of this module (ideally git commit)
  3. Do you have any core patches applied?
🇩🇪Germany berliner

FYI that the nonce value must be unique for every single request, so caching the nonce is not an option: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Securi...

This is in reply to #3203811-18: Support Content Security Policy

🇩🇪Germany berliner

Looks good and removes the deprecation message. Easy enough for an RTBC.

🇩🇪Germany berliner

No feedback and it fixes the issue for me, so I have merged this.
Feel free to re-open if the problem persists at your end.

🇩🇪Germany berliner

Good catch. I think that's curtesy of 🐛 Breaks resizing of uploaded images in ckeditor Fixed . Can you test if the MR fixes the issue for you?

🇩🇪Germany berliner

For discussion: Maybe something like this patch, which allows to opt-out of the gin breadcrumb processing doing this:

/**
 * Implements hook_preprocess_breadcrumb().
 */
function MY_MODULE_preprocess_breadcrumb(&$variables) {
  $node = \Drupal::routeMatch()->getParameter('node');
  if ($node->bundle() == 'MY_BUNDLE') {
    $variables['gin_breadcrumb_skip'] = TRUE;
  }
}
🇩🇪Germany berliner

The problem with this as far as I can see, is that whatever custom breadcrumb one puts in place, gin_preprocess_breadcrumb() will just overwrite it for all routes where an entity object can by extracted by _gin_get_route_entity().

So this doesn't look like a feature request, but more like a support request. It would be good to be able to opt-out of this behaviour on the gin side. The way it is right now feels a bit greedy.

Or is there already a way to opt out of this that I just didn't see?

🇩🇪Germany berliner

I have updated the MR with the patch and a minor correction for backwards compatibility.

I'll also add a patch file that works for 8.x-1.3.

🇩🇪Germany berliner

The patches have been a bit greedy though. Instead of only moving the form action submit buttons and button links into the dialogs button pane, it now moves all submit buttons and button links there.
So it's now doing exactly what it was meant not to do, according to this comment: https://git.drupalcode.org/project/layout_paragraphs/-/commit/9e6ce29756...

I have raised 🐛 Dialog form button logic is too greedy Active as a follow-up issue to fix this.

🇩🇪Germany berliner

The performance concern raised in #10 was about the patch in #5, which only changed the urls inside the srcset without also adapting the logic in ImageStyleDownloadController, so I don't see how that would still be an issue with the current patch.

🇩🇪Germany berliner

Updated patch from #38 for rc10. I hope I didn't miss anything.
I don't have the capacities right now to look at the MR unfortunately.

Still setting to "Needs work" to check if the MR needs modifications to be applied to the current dev.

🇩🇪Germany berliner

I personally appreciate the patche files from saurabh rawat to have something usable in D10.2.

🇩🇪Germany berliner

This works great and fixes the "Edit [term name]" on taxonomy pages as well. Just tested the last patch file but didn't look at the MR.

🇩🇪Germany berliner

This patch hides the "Add child" link from a terms entity operations if the vocabulary is set to use flat taxonomy.

🇩🇪Germany berliner

I get the feeling that this get's a bit out of hand here.
Those last patches do not seem to address the original issue about the changed button ids and the outdated references in the ajax subsystem. #12 should fix the issue as demonstrated by the "steps to reproduce", so this should be reviewed and tested. The other patches seem to be about different issues. Maybe it would be better to create a new issue for those with sufficient information to reliably reproduce the problems and then fixing them.

🇩🇪Germany berliner

Good catch. Thanks for the MR. Merged just now.

🇩🇪Germany berliner

berliner made their first commit to this issue’s fork.

🇩🇪Germany berliner

Rerolled #3 for rc9.

I would be in favour of not changing the ids in the first place though, just as hudri suggested. Removing unnecessary complexity is always preferable.

🇩🇪Germany berliner

This overflow issue somehow appeared again in rc8 on D 10.2. I didn't have time to investigate further at the moment, but the "table { width: 100% }" fix worked in my use case again, ignoring issues with table overflowing the page content horizontally.

🇩🇪Germany berliner

This seems to have been fixed in the meantime.

🇩🇪Germany berliner

Thanks @ultrabob. But this issue is about a missing listing page for "trashed" content, using the soft-delete feature of this module. I am able to see the worflow buttons. But the link to the trash leads to a 404.
Note: I'm not using the module for my project after all, so I won't be able to provide further details.

🇩🇪Germany berliner

Found an issue with the patch. The ProxySubscriber redirected to a non-valid URL. The attached patch fixes that.

🇩🇪Germany berliner

This is a re-roll of #8, which sounds like the better approach compared to #9 which removed the config part (form and schema). Patch applies to current dev and to 8.x-1.6. Seems to work as expected.

🇩🇪Germany berliner

I misread the last post and didn't look at the patch in detail, so I thought the update hooks were still missing.
Sorry for that.

🇩🇪Germany berliner

@Anybody The steps to reproduce from the issue description don't help you isolate the problem? It took me a while, but in the end I was able to reliably reproduce this issue in my setup.

🇩🇪Germany berliner

Drupal 9.4 is no longer supported, please upgrade to Drupal 9.5 or Drupal 10 which require PHP 8.1 or higher. PHP 7.4 is end of life since already and is not supported anymore.
The reported issue is due to PHP syntax not supported in PHP 7.4.

🇩🇪Germany berliner

Which version of Drupal and PHP are you running?

🇩🇪Germany berliner

Re-rolled for current dev.

🇩🇪Germany berliner

Updated patch with minor improvements and added tests.

Production build 0.71.5 2024