silverstripe / silverstripe-elemental

Create pages in Silverstripe CMS using content blocks
http://dna.co.nz
BSD 3-Clause "New" or "Revised" License
110 stars 115 forks source link

ElementChildrenList is missing from v2? #232

Closed elliot-sawyer closed 6 years ago

elliot-sawyer commented 6 years ago

Has ElementChildrenList been intentionally removed for version 2? It seems to have disappeared from 1.9.1 onwards., or is there a workaround for its functionality?

robbieaverill commented 6 years ago

Yeah, moved to the elemental-list module

elliot-sawyer commented 6 years ago

That module doesn't seem to do the same thing? ElementChildrenList specifies a parent page and lists out the children. Elemental-List appears to be an orderable list of blocks.

robbieaverill commented 6 years ago

You're after this: https://github.com/dnadesign/silverstripe-elemental-list/blob/master/src/Model/ElementList.php

elliot-sawyer commented 6 years ago

Thanks, I'll check that out!

elliot-sawyer commented 6 years ago

I've checked out the module and tried to build with it, but this isn't the same functionality. While it does allow you to embed blocks within blocks that might contain other blocks until blockception occurs, it won't replicate the original functionality. If there's a blocktype that allows me to incapsulate a single page, I can use that to build a list of those blocks, but that's not the automatic solution it used to be. The most recently supported version for SS3 (1.9.1) allows you to inject a block that automatically lists out all of the child pages that exist under a particular SiteTree object. This was quite useful for doing things like tiles on landing pages, but I can't see how someone would use this new module to do that.

I'm happy to split the work out into a separate module and support it myself if it truly is abandoned, but it seems like it got lost in the move to SS4 so I thought I'd raise it as a bug.

robbieaverill commented 6 years ago

I see what you’re after. We removed any opinionated blocks for the SS4 version leaving only the framework for them. If you want that block I suggest making a new module or adding it to user code :-)

elliot-sawyer commented 6 years ago

This one might work with some modifications, I'll start there first: https://github.com/dynamic/silverstripe-elemental-section-navigation

robbieaverill commented 6 years ago

Sounds good! Feel free to update the readme in this module with new blocks repositories!

korthjp17 commented 6 years ago

I just opened a PR to update the readme with more block modules ping #234