Template bootstrap-3-9 is opposite to what it should be. Left is right and right is left.
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | 2669324-template-bootstrap-3-9-is-opposite-to-what-it-should-be-9.patch | 3.84 KB | trevorbradley |
| #4 | bootstrap_layouts-fix-for-10-layouts-2669324-8.x.patch | 6.85 KB | inteja |
Comments
Comment #2
gcharles commentedI also noticed this issue with multiple layouts.
Comment #3
darol100 commented@gcharles, Feel free to open new issues if you found a bug on a template. I'm adding the Novice tag to see if someone wants to jump in a fix this minor bug.
Comment #4
inteja commentedHere's a patch. Fixes 10 layouts left/right swapped or typos etc.
Comment #6
hs@henrikstrindberg.se commentedLayout templates 1-11 and 6-6 are also wrong.
Thanks
Comment #7
inteja commented@hstrindb what's wrong with 1-11 and 6-6? They look OK to me.
Comment #8
darol100 commentedI have created a new release 8.x-3.1, which contain @inteja fixes. For this reason, I'm closing this issue.
Comment #9
darol100 commentedComment #11
senpai commentedThe patch in comment #4 is a good start, but it doesn't fully address the "left-right-left, right?" game I'm still seeing as of v8.x-3.1.
To fully address this, all of the regions: declarations in bootstrap_layouts.layouts.yml need to occur as:
rather than the way some of them are now:
...since this order affects how the regions are presented in the Display Suite admin screens, especially when a layout is changed and the administrator is asked to re-map the content that existed in old region(s) to the new region(s).
In addition, as @hstrindb pointed out in comment #6, the patch did not seem to catch 100% of the lefty-righty reversed .twig templates.
Comment #12
trevorbradley commentedThis is similar enough to the problem I just hit that I'm going to add my comments here instead of making a new report.
bootstrap-6-6.html.twig is literally backwards. Right is on the left, and left is on the right:
It looks like 6-6 was missed in the patch.
Scanning through the rest of the templates... 1-11 also looks backward:
EDIT: Just checked... this is fixed in dev.
Comment #13
inteja commentedThe original issue was not with the order of columns in the markup (i.e. should 'left' be first or second in the markup?) but that in many templates the content of the column didn't match what was supposed to be in the column e.g.:
The order of columns within the markup is less important because bootstrap uses floats to pull the columns to the left or right IIRC.
Comment #14
trevorbradley commentedYup, the original (closed) issue I should have found was https://www.drupal.org/node/2706247
There's no actual pulling in the bootstrap html in the two column template twig files, so dev is correct in switching the order, placing left "first" in the HTML.
However, @Senpai's comment #11 is still valid. "Sidebar Left" really should appear above Sidebar Right" in the Display suite. (If it were alphabetical, I might understand. :)
I have *really* bad luck with patches, but I've got to break that streak sometime. Here's the patch I believe @Senpai was looking for. It's working nicely for me.
Comment #15
trevorbradley commented(This patch applies against 8.x-3.x-dev, not 8.x-3.1)
Comment #16
trevorbradley commentedComment #17
markhalliwellThis issue shouldn't have been re-opened, but rather a new one created referencing this one.
That being said, the above patch in #14 is, in fact, needed.
Setting to RTBC.
Comment #18
darol100 commentedThis patch become out-date with due to #2815613: Uncaught PHP Exception InvalidDataTypeException: "yaml_parse()". Changing the status to Needs Work.
Comment #19
trevorbradley commentedJust checked, it looks like the changes in patch #14 already went through.
Apologies for polluting the issue queue... In the future I'll try to keep separate patches to separate (but possibly related) issues.
We now return to a discussion of patch #4...
Comment #20
markhalliwellThis is being superseded by this related issue.