Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
meetings
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2019 at 17:22 UTC
Updated:
15 Nov 2023 at 01:44 UTC
Jump to comment: Most recent
Agenda:
Previous agenda: #3050243: [Layout Initiative meeting] 2019/4/30
| timplunkett (he/him) | Hi, Tim, from Philadelphia! |
| Jeff | Hello, Jeff in Knoxville |
| tedbow | Ted from New York, not that New York |
| kevincrafts | Hello I'm Kevin from Colorado |
| ashrafabed | Hey, Ashraf from Virginia |
| Mihaela (portulaca/prkos) | Hi all! Mihaela from Croatia |
| nord102 (he/him) | Hey, Jordan from Canada :wave: |
| thalles | Thalles, Belo Horizonte From Brasil |
| randyv | Hello, Randy from Everett Washington |
| shaal | Ofer, Florida |
| mikelutz (he/him) | Howdy! |
| bkosborne | Brian, from NJ, USA |
| timplunkett (he/him) | . |
| kevincrafts | Does my description/issue make sense? |
| tedbow | Couldnât some of this be done by https://www.drupal.org/project/layout_builder_restrictions ? or does layout builder not user hte node template at all? |
| timplunkett (he/him) | @tedbow first problem is that we unset all the other fields anyway |
| timplunkett (he/him) | so they're not available at the twig level |
| nord102 (he/him) | I think what this is referring to is making say the template blocks stay where they were placed without allowing for site editors to remove or move them |
| nord102 (he/him) | Almost like forcing the template and allow for additions only |
| nord102 (he/him) | right? |
| kevincrafts | yep |
| nord102 (he/him) | I can definitely see a use case for this, when you donât want a site editor completely overhauling a layout.. which could be handled via training, but I think it might be useful to have as functionality |
| Mihaela (portulaca/prkos) | LBR seems to apply globally on entities, while you want more fine-grained control WRT user permissions |
| tedbow | I see how this could be useful but it seems like an edge that could be handled by contrib. In contrib you could look certain sections that have the fields you donât want users to edit |
| Mihaela (portulaca/prkos) | so you wish LBR to include user permissions on top of the existing features? |
| timplunkett (he/him) | this issue is not the same but slightly similar: #3010975: Devise a locking/inheritance mechanism for overrides to mitigate when they become out of sync with the default layout |
| kevincrafts | for our case - we run Drupal as a service for our sites - our editors are pretty un-technical but they still need to do some simple layout of content, but we would like to template a lot of it - makes it much easier support wise for the 1200 sites we run |
| nord102 (he/him) | Yeah, I agree, this might be better suited as a contrib module as opposed to core Layout |
| kevincrafts | as someone just recently looking at this - where would be the best way to insert this from the contrib side? |
| kevinquillen | ^ |
| timplunkett (he/him) | even if it's going to be done in contrib there will likely need to be some core patches to get it working |
| tedbow | I simple-ish way would be remove the contextual links for the sections/blocks you donât want to be altered.  this wonât use  the template but it would allow certain sections to be locked which seems like the use case |
| timplunkett (he/him) | also gotta think about drag-n-drop |
| bkosborne | We also run Drupal as a service and use layout builder. We get around this problem in a sort of interesting way |
| kevinquillen | that wouldnt prevent, say, "Configure Section" > Remove |
| tedbow | if you remove configure section link also it would |
| timplunkett (he/him) | and also, wrt to fields being available in templates, this would be necessary https://gist.github.com/timplunkett/7fd67d16f1edb4957fafb01c284fb3dd |
| tedbow | that seems like a decent idea |
| bkosborne | We create another view mode called "Full page w/o layout builder". That view mode does not have LB enabled, just normal field UI. This is where the admins of the platform (me) configure the fields that we want "locked down". Then, in the actual layout builder for the full page display, we have a special block in there that renders the node using this special view mode. |
| kevincrafts | @tedbow but what you're suggesting is just hiding the links - the fields are still managed by LB right? |
| tedbow | New project https://www.drupal.org/project/layout_builder_at |
| Mihaela (portulaca/prkos) | Does asymmetric mean that you can translate the overrides separately from the global entity layout translation, so translations differ? |
| tedbow | It means you can have different layouts per language for overrides |
| Mihaela (portulaca/prkos) | Or it's more about first-second/left-right depending on LTR or RTL languages? |
| Mihaela (portulaca/prkos) | the latter then, makes sense |
| tedbow | no that is arleady handled by core |
| timplunkett (he/him) | common example is a newspaper. you might want completely different layouts (and content) for a different language |
| Mihaela (portulaca/prkos) | so what exactly is a "section translation"? Just a different layout applied for each language? |
| tedbow | not sure where you are getting âsection translationâ from |
| Mihaela (portulaca/prkos) | the project page |
| Mihaela (portulaca/prkos) | I think the description could be improved, with a screenshot maybe, it would be less confusing about what it actually does |
| tedbow | I donât see that phrase on the project page.yeah I didnât make the project. (edited) |
| tedbow | but yes the description needs to be updated. they just created it today |
| Mihaela (portulaca/prkos) | It makes the layout section field translatable |
| Mihaela (portulaca/prkos) | it is correct to call the Section a field? |
| tedbow | yep sorry i was looking for âsection translationâ. a bit different but gets into the details.sections are stored in multivalue field for overrides |
| Mihaela (portulaca/prkos) | the second part of the problem is that "translatable" is too vague because we usually imagine translations as text |
| Mihaela (portulaca/prkos) | ty, gotta love all the fieldability around us :slightly_smiling_face: |
| Mihaela (portulaca/prkos) | Is this a good description for this module, in general, and grammar check: |
| Mihaela (portulaca/prkos) | description: 'Apply different layouts to Sections for different languages.' |
| tedbow | no its more like: âAllow each translation to have a completely different layout override.â |
| Mihaela (portulaca/prkos) | so overrides only? pitty |
| tedbow | for now. though it could be supported at the default level. Not sure if they are planning to implement that |
| tedbow | it would be more difficult but probably possible |
| Mihaela (portulaca/prkos) | why more difficult? |
| Mihaela (portulaca/prkos) | I expect most sites would want to apply the layout globally per language, not having to override each translated node just to shift layout |
| timplunkett (he/him) | That's certainly a valid usecase, but not nearly as often requested |
| Mihaela (portulaca/prkos) | I don't think D8 has enough spread yet for multilinguals to come out with demands :slightly_smiling_face: |
Comments
Comment #2
tim.plunkettPushing back due to an empty agenda.
Comment #3
kevincrafts commentedhttps://www.drupal.org/project/drupal/issues/3054663
Comment #4
tedbowComment #8
Anonymous (not verified) commentedquietone credited Jeff.
Comment #14
quietone commentedComment #19
quietone commentedComment #20
quietone commentedNeed to add credit for randyv. What is the d.o username for randyv?
Comment #26
larowlan