Comments (6)
Hey @admench, yeah this behaviour is expected. I realise limiting block type counts per parent is more useful but I thought that kind of behaviour was not inline with what the setting described. There's also cases where you want to limit block types across the entire field too.
It's been suggested that there should be a "Max child blocks" setting per block type, but there's also a lot of other rule options that would be equally as useful. I don't want to pollute block types with many settings, but this one comes up a lot so I'll definitely add it in at some point soon.
In the meantime, cases like this could be solved by using a Matrix or SuperTable field inside a Neo block type.
from craft-neo.
Thanks for the explanation - I can give instructions to the content editor
for now, which is a workaround that I can manage easily. Great work with
the plugin thank you.
On Sunday, 24 July 2016, Benjamin Fleming [email protected] wrote:
Hey @admench https://github.com/admench, yeah this behaviour is
expected. I realise limiting block type counts per parent is more useful
but I thought that kind of behaviour was not inline with what the setting
described. There's also cases where you want to limit block types across
the entire field too.It's been suggested that there should be a "Max child blocks" setting per
block type, but there's also a lot of other rule options that would be
equally as useful. I don't want to pollute block types with many settings,
but this one comes up a lot so I'll definitely add it in at some point soon.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#40 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AApElP-xtJTjpLmPnde1UjszUDRDFmRpks5qYrc1gaJpZM4JSmeq
.
from craft-neo.
Now implemented in 1.4.0 which is currently still in testing. If you're interested you can grab the early release from the master branch.
from craft-neo.
Thanks Ben!
On 30 October 2016 at 05:59, Benjamin Fleming [email protected]
wrote:
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#40 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AApElErVAmfrYjKM7f99tbMAkwMIEDFiks5q5DJJgaJpZM4JSmeq
.
from craft-neo.
Hi Ben,
I have upgraded to 1.4.1 which still exhibits the same issue, is this deliberate, did you stick to your thoughts that it is better to limit the number of child block types for the entire entry rather than per-parent?
Thanks again
from craft-neo.
Sorry, Ignore my last comment, I just noticed the new 'Max Child Blocks' field.
Thanks for your continued work on this!
from craft-neo.
Related Issues (20)
- Upgrade to 4.x breaking content HOT 4
- Error trying to propagate Neo field after updating translation settings HOT 2
- Neo Not Saving Changes to Field Layout HOT 2
- Exponential increase of blocks when adding an existing entry to another site HOT 5
- [Craft 5] Allow Neo fields to be reusable in field layouts HOT 1
- How to approach eager-loading in Craft 5 HOT 4
- Neo block queries return duplicate child blocks HOT 8
- [Craft 5] Action Menu won't open after a new Block is added HOT 3
- Craft keeps showing "Unsaved Changes" upon saving of an entry with Neo fields HOT 1
- Getting Invalid Field Layout Error in CP HOT 1
- Change section and site in content migration: Neo blocks lost HOT 4
- Copy / Paste of Neo Blocks HOT 1
- Javascript Error When Trying to Add a Block in Neo HOT 2
- Settings menu for fields in the layout designer not opening in Craft 5 HOT 2
- benf\neo\elements\Block::useMemoized(): Argument #1 ($use) must be of type Illuminate\Support\Collection|array|bool, benf\neo\elements\db\BlockQuery HOT 1
- Conditional asset fields not saving values after switching condition HOT 1
- [5.x] Error after changing field handle: Field is not included in the available field layouts HOT 5
- Entries from another site can be selected in the back end, but they are not output in Twig templates. HOT 2
- Entry condition applied even for single pages HOT 3
- Duplicate entries appear in `orders` yaml files when deleting block types HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from craft-neo.