Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 04 23:17
    philippemellenger commented #343
  • Jun 30 10:03
    LOBsTerr commented #342
  • Jun 30 09:47
    LOBsTerr commented #342
  • Jun 30 09:46
    LOBsTerr opened #357
  • Jun 29 16:01
    ademarco commented #343
  • Jun 29 15:55

    ademarco on 8.x-1.x

    Add initial GitHub Actions inte… Add PHP version env variable. Fix code sniffer issues. and 7 more (compare)

  • Jun 29 15:55
    ademarco closed #356
  • Jun 29 15:45
    ademarco synchronize #356
  • Jun 29 15:45

    ademarco on github-actions

    Address input device is not a T… (compare)

  • Jun 29 15:21
    ademarco synchronize #356
  • Jun 29 15:21

    ademarco on github-actions

    Trigger actions on pull request… (compare)

  • Jun 29 14:45
    ademarco synchronize #356
  • Jun 29 14:45

    ademarco on github-actions

    Add correct user to docker imag… (compare)

  • Jun 28 11:50
    ademarco synchronize #356
  • Jun 28 11:50

    ademarco on github-actions

    Remove Travis configuration. Add phpspec/prophecy-phpunit. (compare)

  • Jun 28 11:47
    ademarco synchronize #356
  • Jun 28 11:47

    ademarco on github-actions

    Fix code sniffer issues. (compare)

  • Jun 28 11:05
    ademarco synchronize #356
  • Jun 28 11:05

    ademarco on github-actions

    Add PHP version env variable. (compare)

  • Jun 28 11:02
    ademarco synchronize #356
Antonio De Marco
@ademarco
Yes that's coming next actually! :) we will have to resolve a few issues before getting there, but for the moment you can already use patterns in you definition preview since patterns are regular Drupal 8 render elements, see documentation here
Meinolf Droste
@capriosa
@ademarco Thx :)
Meinolf Droste
@capriosa
I've build a component with type: collection
In preview mode it works well. But how does a collection work with a DS view mode?
vikram8888
@vikram8888
where i can see patterns on drupal site
i have created two files
bootstrap.breakpoints.yml and pattern-blockquote.html.twig
but while navigating to mysite/pattern
page not found getting
vikram8888
@vikram8888
Antonio De Marco
@ademarco
@vikram8888 it's mysite/patterns
with an "s" at the end :)
@capriosa in order to use patterns in view modes you have to enable the ui_patterns_layouts module included in the project, check this doc page for more info http://ui-patterns.readthedocs.io/en/8.x-1.x/content/layout-plugin.html
Meinolf Droste
@capriosa
@vikram8888 You ca find the patterns overview page on "mysite/patterns"
@ademarco I've enabled the ui_patterns_layout_module. View modes works just fine but not with compoments from type:collection.
Antonio De Marco
@ademarco
ah yes type is still not implemented as such, it's just a placeholder for now
you need to use preprocessors for advanced use cases for now check docs here http://ui-patterns.readthedocs.io/en/8.x-1.x/content/developer-documentation.html#working-with-pattern-suggestions
Antonio De Marco
@ademarco
@capriosa you'll find more info on #65 about this
Meinolf Droste
@capriosa
@ademarco Thx, for now I solve this with a fieldgroup <div class="card-deck"> and a normal component with type:text.
Meinolf Droste
@capriosa
How can I get the value and the label of a checkbox in the patterns twig template? I want to get them separately.
Antonio De Marco
@ademarco
yeah that's still not supported out of the box, you have to make a custom preprocess
that's the preprocess suggestion you have available
Meinolf Droste
@capriosa
@ademarco thx
yareckon
@yareckon
Hi Antonio, I wanted to ask about a problem we are having with ui-patterns.
we've defined UI patterns in our theme, but now when exporting drupal config the theme is listed as a dependency under modules... leading do us being unable to reimport our site config
what do you suggest doing about this? Is there a way for ui-patterns to calculate it's dependencies in such a way that our theme can be a dep for all config that relies on a pattern provided by our theme?
or is providing patterns from a theme fundamentally a bad idea?
I had assumed that providing them from a theme was the semantically correct thing to do
yareckon
@yareckon

in core.entity_view_display.xxxx we should get somethinglike this
dependencies:
config:

- field.field.media.image.field_caption
- field.field.media.image.field_copyright
- field.field.media.image.field_image
- media_entity.bundle.image

module:

- field_layout
- image

theme:

- ourtheme
but we get

in core.entity_view_display.xxxx we should get somethinglike this
dependencies:
config:

- field.field.media.image.field_caption
- field.field.media.image.field_copyright
- field.field.media.image.field_image
- media_entity.bundle.image

module:

- field_layout
- image
  • ourtheme
Sherakama
@sherakama
Hello @ademarco & @aleksip. You have an amazing module set here and we are actively using it and wish to help contribute to it. We have opened up a few pull requests and are looking for some feedback and guidance so we can help facilitate your vision of this module. If you have some time could you let us know when you think you will have a few spare cycles to spend on this project. Thanks.
Aleksi Peebles
@aleksip
Hi @sherakama, all credit regarding UI Patterns goes towards @ademarco and Nuvole, I'm just an early adopter/fan. :) I've noticed the activity and PRs on GitHub, which is great! I too hope that @ademarco will find some time to review your stuff.
Sherakama
@sherakama
@aleksip Thanks for the reply. It is pretty great stuff coming out of this module and, I too, am a fan. We hope to use it for quite a few of our sites.
Antonio De Marco
@ademarco
hello everyone!
sorry for my loooong absence... I'm back at work on it, we have a session during DrupalCon Vienna about UI Patterns, my plan is to have a stable release by then, possibly integrating all the great work done by community on the module's issue queue
Antonio De Marco
@ademarco
@sherakama I'll have a look at your PRs asap, thanks for that!
Aleksi Peebles
@aleksip
@ademarco Great to have you back! 😊
Sherakama
@sherakama
Thanks @ademarco. Much appreciated. We are looking for some direction. It could be "No, this is not what we should do." "This is good, but needs x, y, and z". Or "Great!". Any which way, I am hoping to get a temperature reading on your thoughts to the approach of the variants in particular.
Motti Horesh
@mottihoresh
Hi, is it possible to define the Deriver class from within the Theme or does it have to be from a custom module?
wmac2018
@wmac2018
image:
label: Responsive Image
description: Images in Bootstrap are made responsive
fields:
img_src:
type: image
label: Image with 16x9
description: The placeholder image with 16x9
preview:
theme: image
uri: http://via.placeholder.com/640/480
img_alt:
type: text
label: Responsive Image
description: The image alt
preview: 'Responsive image'
use: '@atoms/04-image/01-responsive-image.twig'
This is the 01-responsive-image.ui_patterns file
The twig file is as follows:
<img src="{{ img_src }}" class="img-fluid" alt="{{ img_alt }}" />
I got an error when i try to access the patterns in /patterns in my drupal site
Please. help me to see what I did wrong in my ui_patterns.yml file
Thank you very much.
Christian Wiedemann
@christianwiedemann
@ademarco Hi let me know when you have time for a short discusson about ui pattern settings.
Antonio De Marco
@ademarco
hey @christianwiedemann ! Let's follow up on drupaltwig Slack channel, shall we? I've messaged you in private
Itshalffull
@Itshalffull
Hey @christianwiedemann and @ademarco , curious about the status of UI patterns settings as detailed here nuvoleweb/ui_patterns#112. This would be the killer feature for us. Has it been merged into the main module or added as a contrib module somewhere?