- Issue created by @luke.stewart
- 🇳🇱Netherlands JurriaanRoelofs
Thanks for the issue and your ideas! We are aware that our current solution is not optimal. The problem we solved with the commit you pointed out is the rendering of empty regions. Without this commit we saw sidebars regions being rendered even when there were no blocks in the sidebars. We need to find a better solution that does not render region markup while also fixing the problem with blocks being undetected when they do not have text nodes.
We will start work on this tomorrow and keep you posted.
Kind regards,
Jurriaan Roelofs
CEO, Chief Product Officer, DXPR Thanks @jurriaanroelofs
Do you remember how to replicate " sidebars regions being rendered even when there were no blocks in the sidebars" it seems like this would impact bootstrap5 theme as well? Would be interested to see what was going on.
- 🇳🇱Netherlands JurriaanRoelofs
Hi Luke, one of our developers will be working on this issue this week, we'll keep you posted!
- Assigned to Tirupati_Singh
- Merge request !23440072-sidebars-do-not: Fixed siderbars blocks render issue. → (Closed) created by Tirupati_Singh
- Issue was unassigned.
- Status changed to Needs review
2 months ago 3:39pm 19 April 2024 - 🇮🇳India Tirupati_Singh
Hi @luke.stewart and @JurriaanRoelofs, I've fixed the sidebar blocks rendering issue. Please review the MR, attaching a screenshot for reference.
Hmm.
Am I missing something here?When I tested I got the block rendering but not in the right place.
I'm assuming this is because the changes you have made are only to the test to see whether to render the side bar and not to where you are setting the container class:
https://git.drupalcode.org/project/dxpr_theme/-/blob/5.x/templates/page.... and checking it:
https://git.drupalcode.org/project/dxpr_theme/-/blob/5.x/templates/page....
to ensure that the body content region gets the correct bootstrap col classes.- 🇮🇳India Tirupati_Singh
@luke.stewart, I had placed the Search block in the Primary region to test whether the block render issue resolved or not. You can place the block in any available region as per your requirements.
- 🇳🇱Netherlands JurriaanRoelofs
Thank you Tiru, your changes will break the bug fix referenced in this issue regarding rendering of empty regions. We have an alternative fix under review internally that we will merge soon.
- Status changed to Fixed
about 1 month ago 7:59am 21 May 2024 - 🇳🇱Netherlands JurriaanRoelofs
Hello guys,
We finally have a commit addressing this issue. It is not a perfect solution, this issue is very complex and needs to be fixed in core. The issue is under discussion in core for 14 years already:
https://www.drupal.org/node/953034 →Our current workaround is not perfect as it is based on a whitelist of tags:
https://git.drupalcode.org/project/dxpr_theme/-/commit/7810b0c78d866e705...A proper solution will have to come from Drupal core. Thank you for your help!
I'm marking this fixed because its committed to 6.x branch but I cannot select this as version on the issue, so mind that it is not fixed on 6.0.0-beta1.
Automatically closed - issue fixed for 2 weeks with no activity.