Contenttype as a field?

A forum for Bolt related questions / issues

Contenttype as a field?

Postby Stardog » Thu Aug 07, 2014 10:00 am

Can we group fields together into one and reuse them in a contenttype?

Instead of this:

Code: Select all
news:
    name: News Posts
    singular_name: News Post
    fields:
        title:
            type: text
            required: true
        slug:
            type: slug
            uses: title
        subheading:
            type: text
            required: true
        body:
            type: html
            height: 150px
...


We could have this:
Code: Select all
news:
    name: News Posts
    singular_name: News Post
    fields:
        standardfields:
            type: contenttype
...


Which uses this:
Code: Select all
standardfields:
    fields:
        title:
            type: text
            required: true
        slug:
            type: slug
            uses: title
        subheading:
            type: text
            required: true
        body:
            type: html
            height: 150px
...
Stardog
 
Posts: 1
Joined: Mon Apr 28, 2014 5:52 am

Return to Bolt Discussion

Who is online

Users browsing this forum: No registered users and 1 guest

cron