Problem/Motivation

When I am editing a documentable entity, and I am on the config for that entity, I should see a "documentation" tab that is the document.

If a documentation entity does not exist, then that tab should take me to / show the cm_document add form prepopulated with the right enitty selected.

The entity should be visible as a documentation tab that appears on a

  • content type edit /admin/structure/types/manage/BUNDLENAME
  • vocabulary edit /admin/structure/taxonomy/manage/VOCABULARYNAME
  • field instance edit /admin/structure/types/manage/BUNDLENAME/fields/node.event.FIELDNAME
  • paragraph type edit /admin/structure/paragraphs_type/PARAGRAPHNAME
  • block edit /admin/structure/block/block-content/manage/BLOCKNAME
  • media edit /admin/structure/media/manage/MEDIANAME
  • menu

Blocked by #3339241: Document alias should match documented entity

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

swirt created an issue. See original summary.

swirt’s picture

Issue summary: View changes
swirt’s picture

Priority: Normal » Major
swirt’s picture

This is no longer blocked. The proper aliases are created and are ready to be used.

swirt’s picture

I think this article describes the approach
https://www.mandclu.com/blog/creating-dynamic-tabs-content-types

jaydarnell’s picture

I'm looking into this now swirt to see if I can come up with a solution.

swirt’s picture

Component: Code » Content model document
swirt’s picture

Issue summary: View changes

  • swirt committed b98b4b22 on 1.0.x
    Issue #3339245 by swirt: Add Tabs for fieldable entity documents
    
swirt’s picture

Status: Active » Fixed

This has now been added. It optionally adds a "Documentation" tab to menu, media, node, vocabulary, and paragraphs. It does not add them at the field level. That is a separate issue #3389614: Add document tab for field level documentation Currently the "documentation" tab shows whether or not a CM Document exists for that bundle. If one exists, clicking the tab reveals it. If one does not exists, a 404 is returned.

swirt credited mandclu.

swirt’s picture

swirt’s picture

Crediting Mandclu because without his article, it would have taken me much longer to figure out how to do this.

swirt’s picture

Status: Fixed » Closed (fixed)

Went out with 1.0.15