- Issue created by @finnsky
- last update
about 1 year ago Custom Commands Failed - @finnsky opened merge request.
- Status changed to Needs review
about 1 year ago 7:24am 28 September 2023 - last update
about 1 year ago 30,364 pass - last update
about 1 year ago 30,364 pass - 🇷🇸Serbia finnsky
Maybe it is good play to use render of component
https://www.drupal.org/docs/develop/theming-drupal/using-single-director... → - Status changed to Needs work
about 1 year ago 4:10pm 28 September 2023 - 🇺🇸United States smustgrave
Believe this needs manual rebasing. MR is not mergable and rebase button not there.
- last update
about 1 year ago 30,366 pass - Status changed to Needs review
about 1 year ago 5:31pm 28 September 2023 - last update
about 1 year ago 30,366 pass - Status changed to Needs work
about 1 year ago 11:23pm 28 September 2023 - 🇺🇸United States smustgrave
I like the idea @finnsky had in #4 of using array. Don't think we have an example of that yet.
- 🇨🇴Colombia jidrone
Because those 4 are Drupal fields I would say the options are the following:
Option 1:
A formatter to be able to render the component as suggested in #4, which I think is out of the scope of this patch.
Option 2:
Use hook_theme_suggestions_HOOK to make all those fields to use a single template as suggested by Mark, the problem with this is how to set the icons properly, maybe by getting the field_name on each and assigning the icon accordingly.
- 🇷🇸Serbia finnsky
@jidrone gonna check second option.
At least i have no example of managing SDC render arrays on theme level. - last update
about 1 year ago 30,361 pass - last update
about 1 year ago Custom Commands Failed - Status changed to Needs review
about 1 year ago 7:19am 1 October 2023 - Status changed to Needs work
about 1 year ago 5:31pm 1 October 2023 - 🇺🇸United States smustgrave
CC failure.
IS may need to be updated if this is going to try a different approach. Still think we need an example of a render array for sdc but optionB is also an example we don't currently have.
- First commit to issue fork.
- last update
about 1 year ago 30,372 pass - Status changed to Needs review
about 1 year ago 12:24pm 4 October 2023 - 🇷🇸Serbia finnsky
I think can be reviewed as is. We have new component and new SDC usage example via template suggestion.
So if several fields use one component it may have twig template suggestion like:
`field__COMPONENT_NAME__component.twig`
OR
`field__COMPONENT_NAME__sdc.twig`
AND
be stored in `/templates/sdc/` directory of theme.
At least until SDC cannot generate formatters from components ;)
- 🇺🇸United States smustgrave
From a reviewer/committer standpoint the clearer an issue summary the quicker it moves along.
- Status changed to RTBC
about 1 year ago 7:49pm 5 October 2023 - 🇺🇸United States smustgrave
Took me longer to get back to this ticket then I thought.
I applied MR 4896 and the badges remained the same.
Before
After
Think this is a good example to add.
- last update
about 1 year ago 30,378 pass - Status changed to Needs work
about 1 year ago 2:53pm 6 October 2023 - last update
about 1 year ago Custom Commands Failed - Status changed to Needs review
about 1 year ago 1:53pm 20 October 2023 - 🇷🇸Serbia finnsky
@e0ipso
I just rebased. could you please take one more look on it. Your proposal in fact was in initial plan ;)
- Status changed to Needs work
about 1 year ago 7:52am 23 October 2023 - e0ipso Can Picafort
I think the best solution is 4 templates. Even if it's more verbose, IMO it is way more predictable.
I have the impression that we no longer benefit from SDC's main feature: everything is in the single directory instead we are back to fishing in preprocess functions. And while I think that will be unavoidable/adviceable in some situations, I think this is not one of those.
How do others feel about this?
Setting to Needs Review for discussion. Sorry for dragging this, we are colectivelly figuring this out.
- 🇷🇸Serbia finnsky
@e0ipso
I totally agree with you! This Umami is example theme for beginners. everything should be supersimple and predictable ;)
Let's revert with 4 twigs - last update
about 1 year ago 30,427 pass - Status changed to Needs review
about 1 year ago 8:29am 23 October 2023 - last update
about 1 year ago 30,427 pass - Status changed to RTBC
about 1 year ago 10:40am 23 October 2023 - 🇺🇦Ukraine snig
I can verify that I haven't observed any visual alterations following the most recent modifications related to four distinct templates.
- e0ipso Can Picafort
This looks good to me from a static review standpoint. As usual I cannot sign off any of the CSS, but if @snig confirms there are no visual regressions in any viewport size I am good with it.
- 🇺🇦Ukraine snig
@e0ipso Looks good for all the viewpoints. Proof attached.
- last update
about 1 year ago 30,438 pass - Status changed to Needs work
about 1 year ago 6:47pm 26 October 2023 - 🇫🇮Finland lauriii Finland
Posted one minor comment on the MR, otherwise looks good 👍
- last update
about 1 year ago 30,435 pass, 2 fail - last update
about 1 year ago 30,439 pass - Status changed to Needs review
about 1 year ago 9:03pm 26 October 2023 - Status changed to RTBC
about 1 year ago 1:52pm 27 October 2023 - 🇺🇸United States smustgrave
For what it's worth I thought the template suggestion was a good example of another way SDC could be leveraged vs needing 4 near identical templates. But not dying on that hill haha.
Seems @laurii's feedback has been addressed
- Status changed to Fixed
about 1 year ago 1:59pm 27 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.