Giter Site home page Giter Site logo

Comments (4)

ericras avatar ericras commented on August 30, 2024

Base on "USING an alternate 'class'" where we'll want layout settings like css classes and background image, i think we probably want to create a "DCF Layouts" module

from project-herbie.

ericras avatar ericras commented on August 30, 2024

Will probably want to split the DCF layouts module out into its own project someday but for now i've just included it in the main project

from project-herbie.

macburgee1 avatar macburgee1 commented on August 30, 2024
  1. Layouts can be used without Layout Builder. Layout Discover is needed to register layouts, however.

dcf_layouts.info.yml

  dependencies:
-   - layout_builder
+   - layout_discovery
  1. If DCF Layouts is going to reside within this project (for now), it should be moved to /web/modules/custom/dcf_layouts

  2. Code Review

$ phpcs --standard=Drupal,DrupalPractice dcf_layouts/

FILE: ...ge2/Sites/project-herbie-eric/web/modules/dcf_layouts/dcf_layouts.info.yml
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------
  1 | WARNING | Remove "version" from the info file, it will be added by
    |         | drupal.org packaging automatically
 11 | WARNING | All dependencies must be prefixed with the project name, for
    |         | example "drupal:"
--------------------------------------------------------------------------------


FILE: ...erbie-eric/web/modules/dcf_layouts/src/Plugin/Layout/ThreeColumnLayout.php
--------------------------------------------------------------------------------
FOUND 6 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
 27 | ERROR | [x] Concat operator must be surrounded by a single space
 27 | ERROR | [x] Concat operator must be surrounded by a single space
 31 | ERROR | [x] Concat operator must be surrounded by a single space
 31 | ERROR | [x] Concat operator must be surrounded by a single space
 35 | ERROR | [x] Concat operator must be surrounded by a single space
 35 | ERROR | [x] Concat operator must be surrounded by a single space
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...-herbie-eric/web/modules/dcf_layouts/src/Plugin/Layout/TwoColumnLayout.php
--------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 27 | ERROR | [x] Concat operator must be surrounded by a single space
 27 | ERROR | [x] Concat operator must be surrounded by a single space
 31 | ERROR | [x] Concat operator must be surrounded by a single space
 31 | ERROR | [x] Concat operator must be surrounded by a single space
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 98ms; Memory: 8MB

Issue 1 in dcf_layouts.info.yml can be ignored. This module isn't being hosted on Drupal.org.

  1. Layout implementation issues - There are issues with some of the layouts. I'll document those in a separate post.

  2. We should have a conversation about the Builder Page content type and how it fits within a larger content strategy.

from project-herbie.

macburgee1 avatar macburgee1 commented on August 30, 2024

DCF One Column

  • 100% OK

DCF Two Column

  • 50%/50% OK
  • 33%/67% OK
  • 67%/33% OK
  • 25%/75% OK
  • 75%/25% OK

DCF Three Column

  • 25%/50%/25% - Second region always 12/12 span
  • 33%/34%/33% - Second region always 12/12 span
  • 25%/25%/50% - Second region always 12/12 span
  • 50%/25%/25% - Second region always 12/12 span

DCF Three Column

DCF Four Column

  • 25%/25%/25%/25% - No DCF classes are printing
  • No layout configuration options available

DCF Four Column

from project-herbie.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.