Ghent
Account created on 11 November 2014, over 9 years ago
#

Merge Requests

More

Recent comments

🇧🇪Belgium brentg Ghent

Created a MR with a rerolled version against the 6.1.x branch

🇧🇪Belgium brentg Ghent

brentg changed the visibility of the branch 3352085-refactor-title-and to hidden.

🇧🇪Belgium brentg Ghent

I've added the patch from @sonfd as a file here so it gets listed on top of the page

🇧🇪Belgium brentg Ghent

Had some issues when using a link field inside layout builder on a translated page.
Issue was that the langcode was not passed along, so added a fallback for the langcode on layout builder pages

However, I have the feeling this patch is atm not the way to go as the str_pos is way too risky.
It's probably better to extend on one of the existing modules (e.g. linkit or link_field_autocomplete_filter) so that they support linking towards multiple entity types at the same time.

🇧🇪Belgium brentg Ghent

Patch applied for me as well.

For me the issue was introduced in #2919039, the fields I'm using are using a view instead of the default one, causing the target_bundles not to be available.

🇧🇪Belgium brentg Ghent

brentg created an issue.

🇧🇪Belgium brentg Ghent

Going to close this issue as the module is less useful with the coming of layout builder.

🇧🇪Belgium brentg Ghent

Thanks for the patch, applied it

🇧🇪Belgium brentg Ghent

Tested this with the facets 3.x version and works indeed

🇧🇪Belgium brentg Ghent

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

🇧🇪Belgium brentg Ghent

Hi @droddis I applied the automated patch (the stable release for Drupal 10 was already available)

If you want to help with the security coverage, feel free to request it!

🇧🇪Belgium brentg Ghent

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

🇧🇪Belgium brentg Ghent

The access can be handled in a block_type_form_alter

e.g. a variation of the following (this was only to exclude it from the 2 column layout)

function MODULE_block_type_form_alter(array &$form, FormStateInterface &$form_state, string $block_type) {

  switch ($block_type) {
    case 'cb_text':
      $current_section = $form_state->getFormObject()->getCurrentSection();
      if ($current_section->getLayoutId() === 'rs_two_col') {
        $form['field_columns']['#access'] = FALSE;
      }
      break;

  }
}

And the class can be added as following

function MODULE_block_content_view_alter(array &$build, BlockContentInterface $entity, EntityViewDisplayInterface $display) {
  if ($entity->hasField('field_columns')) {
    $columns = $entity->get('field_columns')->value ?? 'one-column';
    $build['#attributes']['class'][] = 'block--' . $columns;
  }
}
🇧🇪Belgium brentg Ghent

Created a first version with just the option.

Could probably be improved with other options as well (rel nofollow, force download, ....)

🇧🇪Belgium brentg Ghent

Already a bunch of stuff that is working a lot cleaner, but still some issues remaining:

  • When adding a block through layout builder, after adding the block, the page opens up in the layout builder iframe
  • Some css improvements that where done now should be redone with the current setup
  • Might be good to go over it with an ux expert to see what's still advised
🇧🇪Belgium brentg Ghent

Updated the default config with the schema_web_page_breadcrumb enabled.
Due to updates the order of config was also no longer correct, so that was updated as well.

Still needs to be tested on a fresh install

🇧🇪Belgium brentg Ghent

Refactored it so that it works similar as #3342038 with multiple entity types.

🇧🇪Belgium brentg Ghent

I've added a merge request with the updated selection criteria.

TODO:

  • This still needs to be tested as I've copied over the uuids that where already present
  • Figure out if there's a way to fix this on existing installations.
🇧🇪Belgium brentg Ghent

Patch seems to work for me, so going to mark this as reviewed & tested

🇧🇪Belgium brentg Ghent

I encountered some issues with #55 where when saving a taxonomy term link, it was giving an unexpected error, because $node was null, so added a small extra patch that fixes this issue.

🇧🇪Belgium brentg Ghent

Added a merge request that will use a separate render element instead of the description of fieldsets, as this is not supported by the gin admin theme.

🇧🇪Belgium brentg Ghent

Added fallback for when there are no items yet.
This can happen when using layout builder blocks when you create the page and the block is added by default but not yet saved.

🇧🇪Belgium brentg Ghent

Added patch file for the merge request that adds this functionality.

🇧🇪Belgium brentg Ghent

Added patch file for the merge request that adds this functionality and also fixes issues with the placeholders for the field

🇧🇪Belgium brentg Ghent

Added a patch that will fix the issue For node pages.

This will probably need a test to see if this fixes it for other people as well, maybe some automated tests.

This also only fixes it for node pages, when displaying it on other entities, the issue will still happen.

Production build 0.69.0 2024