Here we go!

This is the 'princess' patch, which is the entirety of SCOTCH that we've been working on in the 'princess' branch (in this sandbox). We don't have many tests written, and we haven't actually swapped in the use of our display objects for any of the normal Drupal's normal routes - what we have is a test route, which you can see at /booze, that renders through the new method. There's no cheating there - hook_page_build() and hook_page_alter() are never called. You only get to make it onto the page if you are a correctly-participating block. There's also no UI for the new block system. The existing block UI remains in place, so to change things, you have to edit core/profiles/standard/config/display.bound.frontend.yml - that's the display that's used to render the /booze route.

For those concerned about my 'irreverent' naming habits, the only place that "booze" now appears in this code is on this test route, which obviously has no purpose other than being a development-in-progress demo, and thus is not destined for core anyway.

There are lots of new concepts here, and rather than delay this patch further by writing a novel trying to explain everything initially, I'm just gonna leave it at "go poke at it, have fun" for now. We can shape up this issue summary more over the coming days.

Anyone with a better idea for an issue title (or the version) should feel free to change it.

Easiest way for folks to check this out, at least to see the output, would be to pop it over to simpletest.me and go to /booze.

Here is the link to test the latest code in the princess branch Test the princess branch on simplytest.me

Comments

sdboyer’s picture

Status: Active » Needs review
StatusFileSize
new207.68 KB

and here's a first patch.

sdboyer’s picture

Issue summary: View changes

Updated issue summary.

sdboyer’s picture

Issue summary: View changes

Updated issue summary.

sdboyer’s picture

StatusFileSize
new207.68 KB

and one with the text on the /booze route all growed-up.

sdboyer’s picture

Issue summary: View changes

Updated issue summary.

sdboyer’s picture

Issue summary: View changes

Added link to sandbox

sdboyer’s picture

Issue summary: View changes

Updated issue summary.

larowlan’s picture

BTW Choose 8.x on simplytest.me, this applies against 8.x

larowlan’s picture

but doesn't work on simplytest.me :(, latest code in princess branch works fine.
To test the latest branch at anytime, use this link
http://simplytest.me/project/1441840/princess?patch[]=https://drupal.org...

larowlan’s picture

Issue summary: View changes

Updated issue summary.

mallezie’s picture

Version: 9.x-dev » 8.x-dev

I assume this issue is for drupal 8 ;-)

Status: Needs review » Needs work

The last submitted patch, scotch-2017681-2.patch, failed testing.

swentel’s picture

Status: Needs work » Needs review

Let's keep this to on needs review

larowlan’s picture

StatusFileSize
new45.51 KB

So to see this with something more tangible give This simplytest.me which is the 2014665-system-main-block branch that includes converting /user/register (view that in an incognito window).

A screenshot to wet your appetite:

Screen Shot 2013-06-14 at 7.05.55 AM.png

eclipsegc’s picture

Issue tags: +Blocks-Layouts, +scotch
eclipsegc’s picture

Adding some tags for easier tracking.

Eclipse

dlu’s picture

Component: base system » block.module

Moved to block.module per #2050763-16: Refine "base system" component (notes on refactoring of "base system" category here: https://docs.google.com/a/acquia.com/spreadsheet/ccc?key=0AusehVccVSq2dF...).

xjm’s picture

Version: 8.x-dev » 9.x-dev
sdboyer’s picture

yep...i'm squatting the distro namespace. we'll just have to eat shit for a while longer.

in addition to layouts module, we need to take out displays, as well.

the only other followups i may need, outside of the existing 'happy princess API' tags, is one to make it feasible to disable block module, but still use the block APIs. that might be a bit too much acrobatics, though, in which case i can just focus on disabling it at runtime.

eclipsegc’s picture

I think the biggest problem with that plan is that BlockManager exists in block module. If we want the api (sans entities) to be available to us, we need to probably move that to a Drupal\Core\Block namespace.

Eclipse

eclipsegc’s picture

Issue summary: View changes

updated issue summary to add simplytest.me link

catch’s picture

Title: SCOTCH » [meta] Improve support for SCOTCH
Version: 9.x-dev » 8.1.x-dev
Priority: Major » Normal
Status: Needs review » Needs work
Issue tags: +Needs issue summary update

Lots of this is getting touched by #2350943: [Meta] Untangle Drupal 8 page rendering in terms of enabling contrib to take over cleanly. Re-classifying.

eclipsegc’s picture

Status: Needs work » Postponed

There's a lot in this patch, 8.0.0 scotch is in a very good position and this will need serious re-evaluation based upon what's happening in contrib and what has already landed in core. Marking this postponed for the time being. We can look at this again once active 8.1.x development is happening and make a decision at that point.

Eclipse

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

tim.plunkett’s picture

Issue tags: -Blocks-Layouts

Not a part of #2811175: [plan] Add layouts to Drupal, untagging.
Should this just be closed?

eclipsegc’s picture

Status: Postponed » Closed (won't fix)

I think "yes, it should be closed." Acting accordingly. We'll let someone else un-close it if that become appropriate but I don't foresee that.

Eclipse