Feature #18193
closedCV "bottom" section
0%
Description
This is a ticket to discuss implementation of the "bottom" section of the CV. This section is made up of an arbitrary number of rows, and each row has two "cells": the "field title" and the "field content".
My initial thought is that we'll create a block "CV Row" or something like that. This Row block will enforce a Heading block on the left. On the right, we'll have InnerBlocks with a pretty generous subset of allowedBlocks. The entire bottom section would then be its own block type, with allowedBlocks limited to 'CV Row' only.
When creating a new CV, we can probably fill in a few placeholder rows - say, Education, Academic Interests, and Positions, similar to how our current profiles work. But we should have logic in the display of blocks, perhaps just in the CSS but maybe in the form of a content filter, that prevents these placeholder blocks from appearing on the public CV if the user hasn't filled them in.
One special case will be the Positions row, which will need a special Positions block. This will mirror the current functionality of Positions, which stores the position data in a structured way (using WP taxonomies). We'll use one of the block save callbacks to parse the block content and mirror it as necessary.
Related issues
Updated by Boone Gorges over 1 year ago
- Related to Feature #17768: CV Editing and Publishing added
Updated by Jeremy Felt over 1 year ago
My initial thought is that we'll create a block "CV Row" or something like that
I like this and read it as:
- CV Rows
- CV Row
- Heading
- Inner blocks (paragraph, list, etc..)
- CV Row
- ...
- CV Row
prevents these placeholder blocks from appearing on the public CV if the user hasn't filled them in
We can add logic to the block's render that skips any row without inner block content.
One special case will be the Positions row, which will need a special Positions block
I've only recently been playing with variations, so everything looks like a variation to me, but this could be a variation on the CV Row block so that other bits of structure are maintained in the same place.
Updated by Jeremy Felt over 1 year ago
In the feature/17769-commons-profile
branch, we now have...
- CV Rows is a block that allows for one or more CV Row blocks to be added as inner blocks.
- CV Row is a block that displays one row with an
h2
and a single paragraph.
We should be able to add variations for CV Row as needed to apply slightly different markup, though a Positions block may need its own space entirely.
These blocks are all added with their placeholders when a profile is created. As with #18192, I'll be working through these to keep refining.
Updated by Boone Gorges over 1 year ago
Looking awesome! I don't have a lot of experience using block variations (I tried to create new social-links variations once but I got stuck) so I'm looking forward to seeing how you do that. It would be nice to have a couple of them out of the box: Publications, Education, Academic Interests, all of which would be the same except for their default header text.
Updated by Boone Gorges about 1 year ago
- Related to Feature #18467: "Positions" migration to new CV editor added
Updated by Boone Gorges 12 months ago
- Target version changed from 2.2.0 to 2.3.0