Skip to content

Commit

Permalink
[DOCS] Add link to centralized content pid lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
swirtSJW authored Oct 21, 2023
1 parent 7727e8d commit 736f55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion READMES/content-model-centralized-content.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The target_type and the target_uuid provide the details about where the content
2. Add a "Centralized Content Descriptor" paragraph that provides the Title and Description for the paragraph that you will be creating next. This will only appear as guidance for the editors on the node you are creating.
3. Add a paragraph of any type that you need to appear where this centralized content is used. Make sure this paragraph is sorted to appear immediately below the Centralized Content Descriptor you created in the previous step.
4. Wait for this content to appear in the sanitized database you pull into your sandbox.
5. On your sandbox, in the entity bundle that will be the destination for the centralized content, add a field of type "Entity Field Fetch field". Prefix the field's machine name with "cc_". In the settings for the set the target entity type as "Node" since the content is coming from a Centralized content node. Set the node id and the machine name of the field and the uuid of the paragraph to be fetched. (with Tome gone, we will need a cleaner way to get the paragraph UUID)
5. On your sandbox, in the entity bundle that will be the destination for the centralized content, add a field of type "Entity Field Fetch field". Prefix the field's machine name with "cc_". In the settings for the set the target entity type as "Node" since the content is coming from a Centralized content node. Set the node id and the machine name of the field and the uuid of the paragraph to be fetched. The [PID can be found here](https://prod.cms.va.gov/admin/content/audit/centralized-content-paragraphs).
6. Add a "Tooltip" field group widget on both the "Manage form display" and "Manage display" tab for the entity. Then move your field_cc_ field(s) into the field group.
![Example Tooltip and entity field fetch arrangement](images/fetch-field.png)
7. Save and export your entity configuration as you would for adding any field.
Expand Down

0 comments on commit 736f55e

Please sign in to comment.