Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Fields block -server side rendered - for [bw_fields shortcode] #21

Closed
bobbingwide opened this issue Dec 13, 2018 · 2 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

bobbingwide commented Dec 13, 2018

This would be a nice addition to use to document the Block CPT.

Requirements

  • a Fields block for the [bw_fields] [bw_field] shortcode, from oik-fields
  • Allows display of meta data and virtual fields

Proposed solution

  • New block oik-block/fields - Fields
  • Implemented as a dynamic block for server side rendering
  • Easy options for choosing the fields attribute: featured, etc
  • Checkbox to choose [bw_fields] or [bw_field] logic; with or without labels
  • Allow entry of field names too

The block to be added to the list of experimental blocks in #16.

@bobbingwide bobbingwide added the enhancement New feature or request label Dec 13, 2018
@bobbingwide bobbingwide self-assigned this Dec 13, 2018
@bobbingwide bobbingwide changed the title Create a Fields block for [bw_fields shortcode] Create a Fields block -server side rendered - for [bw_fields shortcode] Dec 14, 2018
@bobbingwide
Copy link
Owner Author

bobbingwide commented Dec 15, 2018

While developing this block I used the sctext field type for the Icon: field for the Blocks CPT. The shortcode was expanded in the front end but not when invoked by the REST server. This probably needs to be fixed in either oik-fields or oik. It's not a show stopper.

@bobbingwide
Copy link
Owner Author

The Fields block is delivered by the oik-blocks.
In v0.6.0 the Fields block added support for 3 additional fields:

  • post date
  • post modified date
  • author name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant