module.exports = {
extend: 'apostrophe-widgets',
label: 'Learn More',
instructions: 'Learn More Widgets',
addFields: [
{
name: 'learnMore',
type: 'string',
label: 'Name for the Link',
required: false,
},
]
};
How can we set the default value.
I'm the lead developer of Apostrophe at P'unk Avenue.
Just use the def property:
{
name: 'learnMore',
type: 'string',
label: 'Name for the Link',
required: false,
def: 'Learn More'
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With