PECE-project / drupal-pece

PECE development repository
GNU General Public License v3.0
21 stars 28 forks source link

Replace Panopoly module with a Drupal 10 equivalent #376

Open MegaKeegMan opened 7 months ago

MegaKeegMan commented 7 months ago

We could really use some screenshots of the several places where panels are being used to build custom page layouts.

The typical Modern Drupal approach addresses this issue with layout builder.

MegaKeegMan commented 7 months ago

Some meeting notes regarding this issue:

The migration challenge is translating panels layouts to core's layout builder.

Were people allowed to create their own layouts?

Used Hadix (Panels-compatible) theme's approach for a limited set of layouts that could be used, tested to ensure they were mobile friendly.

Later on, some users were assigned with roles that had access to enter the place that was dangerous and started creating different layouts, became out of control just for the five people who were able to find that.

The majority of PECE essays will be in the standard three-column layout.

It is all right that if the ones that do not have the right format, we can let the people who did it differently be angry and then fix it up as they want themselves.

We will likely in the future increase the number of layouts offered, but not let people create their own.

mikefortun commented 7 months ago

here's a couple with their live links:

image

https://disaster-sts-network.org/content/project-portal-environmental-injustice-global-record/essay

mikefortun commented 7 months ago

standard 3 column layout

image

https://disaster-sts-network.org/content/unfolding-disaster-tustin-ca-navy-hangar-fire/essay

mikefortun commented 7 months ago

1 column header and footer, with 3-column sections

image

https://disaster-sts-network.org/content/formosa-plastics-archive/essay

MegaKeegMan commented 7 months ago

@mikefortun will this be relevant for any content types besides essays?

mikefortun commented 7 months ago

no unless we converge memos and essays

mikefortun commented 7 months ago

here are the options the admin has:

image

majority of essays will be the 3 column default, after that I think PECE sutro, pond double, and sutro double are really the only ones used

MegaKeegMan commented 7 months ago

I realize it's an interesting thought to merge the 2 but I am still anti, at least personally. Not that it is my choice.

mikefortun commented 7 months ago

i started playing with PECE sutro on this:

image image

going for a "bookish" look https://worldpece.org/content/depositivism/essay

mikefortun commented 7 months ago

here's the build version of that -- I had to work to get the two-columns to play well together:

image image
mikefortun commented 7 months ago

those were mostly text boxes that I just pasted into, rather than artifacts (with the exception of the image)

revagomes commented 5 months ago

Another alternative I consider a good fit for that use case is using Paragraphs + Layout Paragraphs modules to achieve the same level of modular components, drag-and-drop and contextual edit features that Panopoly has provided for Drupal 7.

Paragraphs: https://www.drupal.org/project/paragraphs Layout Paragraphs: https://www.drupal.org/project/layout_paragraphs

Layout Paragraphs vs Layout Builder Layout Paragraphs provides an effortless drag-and-drop editing experience for writers, editors, and marketers. It has been designed from the ground up to meet the needs of people who work with content. Unlike Layout Builder in Drupal core, Layout Paragraphs is not a site building tool. Rather, Layout Paragraphs is an authoring tool. (Also note that Layout Paragraphs is compatible with Layout Builder, meaning both can be installed and used on the same site.)

image

MegaKeegMan commented 5 months ago

I am currently experimenting with this on a different project, and it mostly seems good. I am running into a weird issue where paragraphs added into the layout paragraph are displayed twice. The second instance seems to be outside of the layout paragraph, while the first one inside. It is possible that I am configuring something incorrectly, but I have not seen an issue about this in the layout paragraphs module. I was actually about to put this down in the short term, but it might make sense for me to pick it back up and troubleshoot if you are actively thinking about this as a solution.

MegaKeegMan commented 5 months ago

More than likely, the display was poor due to a template that was no longer applicable. Will share an update on this next week.

mikefortun commented 5 months ago

again with my usual "...but what do I know?" preface but: this looks promising to me! are there different templates like Panoply, or is it flexible enough to make different layouts?