SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.19k stars 405 forks source link

Documentation/Example for Page Part Spina::Option #547

Closed mhoelter closed 2 years ago

mhoelter commented 4 years ago

Hello, it's listed that Spina has the ability for an Option page part (https://www.spinacms.com/guide/themes/page-parts#main), but I can't seem to find any examples of it being used anywhere.

Is there an example of the Option page part somewhere I could use for reference?

Thanks!

Bramjetten commented 4 years ago

I don’t have an example ready, but you can add it like this:

{
    name:      'option',
    title:          'Option',
    partable_type:  'Spina::Option',
    values: ['a', 'b']
  }
stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.