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
Issue fork content_model_documentation-3339245
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
Comment #2
swirtComment #3
swirtComment #4
swirtThis is no longer blocked. The proper aliases are created and are ready to be used.
Comment #5
swirtI think this article describes the approach
https://www.mandclu.com/blog/creating-dynamic-tabs-content-types
Comment #6
jaydarnellI'm looking into this now swirt to see if I can come up with a solution.
Comment #7
swirtComment #8
swirtComment #10
swirtThis 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.
Comment #12
swirtComment #13
swirtCrediting Mandclu because without his article, it would have taken me much longer to figure out how to do this.
Comment #14
swirtWent out with 1.0.15