Replies: 1 comment
-
Provided from https://gitter.im/PiranhaCMS/Piranha?at=6278fca510cfc315bc6e73de provided by https://github.com/GangsterGeek89. If we alter
to add in a private property and custom getter/setter;
this will set the default value of the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Firstly, this project is great - we're currently using it in-house to create the new site for a local college and we've made some great progress with the "open-ness" of the manager, hooking our own Course API, etc in.
Once small thing we have noticed, and it may be me looking in the wrong place but we have a
BlockGroup
with a Generic DataSelectField for selecting an option that alters the UI slightly for a given list ofCustomBlock
, something similar to this;Where
MyCustomClass
is extended from the example given in the docs, and just hooked upto a list a objects for now rather than using the DB.When this is rendered into the
BlockGroup
Component we don't seem to be able to specify a default value for it. We can catch it on the UI side if null/empty when rendering, but ideally we'd want this box to default to a set value in the manager, in theBlockGroup
component, NOT the individualCustomBlock
component. It seems themodel
has an ID which it would use as the Get/Set for theCustomOption
, but I can't see where I would set this in class files.We've tried the constructor of this
BlockGroup
and the constructor of theMyCustomClass
object.Any help would be appreciated, and apologies if it's just something I've missed!
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions