Skip to content
Documentation
Updated 11 minutes to read
Markdown

New 7.11

Standardize how a category of Article begins. A Template copies its content, content type, tags, and Custom Metadata into every new Article created from it — so a runbook, a design document, or an onboarding guide always starts from the same shape instead of a blank page. A Template can also use a Document Profile, and then supplies the starter text for each of the profile's sections.

  • ✅ Start new Articles from a consistent, pre-approved shape
  • ✅ Pair a Template with a Document Profile: the profile sets the structure, the Template fills in the starter text
  • ✅ Keep reusable macro placeholders in the Template body
  • ✅ Resolve Resource and C4 node macros from context when available
  • ✅ Trace every Article back to the Template it came from

All Articles, the Add Article dropdown, From Template, the Choose Template dialog filtered on Contoso with Use on Contoso Runbook Template, the editor with the banner Initialized from template Contoso Runbook Template and a new title, one line added, Save, View, and the new Article open for reading, animated walkthrough (7.12)
Animated walkthrough: Add Article > From Template…, pick the Template with Use, give the Article its title, add a line, Save, and View. {{ Resource.Name }} from the Template reads empty here: a Resource. variable is filled in only when the Article is created from a Resource. For a name that follows the item the Article is read for, use the document macro {{ entity.name }}.

A Template is a starting point for new Articles — its content, content type, tags, and Custom Metadata are copied into every Article created from it. Unlike a Snippet, a Template's content isn't included by reference: it's copied once, at creation, and the new Article is then free to diverge from it.

graph TD Template[fa:fa-clone Template: Incident Runbook] ArticleA[fa:fa-newspaper Article: DB Outage Runbook] ArticleB[fa:fa-newspaper Article: API Outage Runbook] Template -- Create From Template --> ArticleA Template -- Create From Template --> ArticleB ArticleA -- Based On Template --> Template ArticleB -- Based On Template --> Template

Two Articles created from the same Template. Each copy is independent after creation, but both remember their Source Template.

Concept Behavior
Copied at creation Content, content type, tags, and Custom Metadata — plus the Document Profile and the text of each Content Part, when the Template uses a profile
Independent afterward Editing the Template does not change Articles already created from it
Source Template Recorded on the new Article; visible in the reader and relationship views

New 7.11

A Template can use a Document Profile, just like an Article. The three document types then share the work:

graph LR Profile[fa:fa-list-check Document Profile - structure] Template[fa:fa-clone Template - starter text per section] Article[fa:fa-newspaper Article - the instance] Profile -- Structures --> Template Profile -- Structures --> Article Template -- Create From Template --> Article style Profile fill:#2678BD style Template fill:#E47528 style Article fill:#93d16d

The Document Profile (blue) owns the structure, the Template (orange) owns the starter text for each Content Part, and the Article (green) is the instance a user writes.

Owns
Document Profile The structure: Snippet Parts and Content Part slots
Template Starter text for each Content Part, plus tags and Custom Metadata
Article Its own text, written from that starting point
  • Editing the Template — choose a Document Profile in the Template editor, and the Template is shown in the same composite workspace as an Article: Snippet Parts locked, and one editor per Content Part for its starter text. The Template's reader shows the composed document.
  • Creating an Article from it — the new Article starts profile-based: the Template's Document Profile is preselected, and the Main Body and every other Content Part start with the Template's text. Template variables found in any Content Part are listed to fill in, as for the Main Body.
  • A Template without a profile — works as before: one body, copied into the new Article.

On a new installation, Nodinite seeds the Standard Technical Base Template, which uses the seeded Standard Technical Article Document Profile. It supplies starter text for the profile's two Content Parts — Describe purpose and scope. for the Overview Main Body, and Describe implementation details and operational context. for Details — while the profile supplies the header, Next Step, Related Topics, footer, and copyright Snippet Parts.

New 7.12 The seeded Template is marked Shipped by Nodinite: it can't be edited or deleted, and every Nodinite upgrade updates it in place. Clone it to make your own version. See Shipped by Nodinite.

Templates can contain the same macros as regular Articles. Macro placeholders are kept in the content and resolved when the Article is displayed.

Macro group Example Resolution behavior
Date and time {{ today }}, {{ now.utc }} Resolved at display time
Article {{ article.title }}, {{ article.url }} Resolved from the current Article
Environment {{ environmentname }} Resolved from the active environment
Resource / C4 node {{ resource.name }}, {{ node.name }} Resolved when the Article is opened in the matching context

A Template can also hold content tokens, including {ndx} inline icons placed with Insert Icon, the same icons as Component Types (requires a Mapify license). Like the rest of the content, they're copied into each new Article; see Inline Icons with {ndx}.

The editor's Template Guidance card starts Templates are starting points and are not bound to Resources, Categories, Applications, Repository items, or C4 nodes. It then explains that a Template may use a Document Profile, whose sections become the starter text of every new Article, and that a Template without a profile can compose with reusable Snippets. Last, it separates template variables such as {{ CurrentYear }} and {{ CurrentDate }}, filled in once when the Article is created, from document macros such as {{ article.title }} and {{ entity.name }}, resolved every time the Article is rendered for the item it is read for. Macro help lists them all; see the Macros Reference.

Which template variables are filled in depends on where you create the Article:

  • {{ CurrentYear }} and {{ CurrentDate }} are always filled in once, when the Article is created from the Template.
  • {{ Resource.Name }} and every other Resource., Category. and Application. variable is filled in only when the Article is created from that Resource, Category or Application. Created from the Articles list (Add Article › From Template…), there is no Resource, so the variable stays in the text as written, and the reader shows it as an unknown macro: empty.
  • For a name that should follow the item the Article is read for, use a document macro such as {{ entity.name }} instead of {{ Resource.Name }}.

Template Guidance card: Templates aren't bound to Resources, Categories, Applications, Repository items, or C4 nodes; a Template may use a Document Profile; the std-header, std-footer, std-next-step, and std-related-topics Snippet tokens; template variables such as CurrentYear and CurrentDate, filled in once; and document macros such as article.title and entity.name, resolved every time the Article is rendered (7.12)
The Template Guidance card in the editor: template variables are filled in once, document macros every time the Article is rendered.

  1. Start creating a new Article
  2. Choose Create From Template
  3. Pick a Template from the list
  4. The Article's content, content type, tags, and Custom Metadata are copied in; for a profile-based Template, the Document Profile is preselected and each Content Part starts with the Template's text
  5. A banner in the editor reads Initialized from template (name), with a link to the Template. Give the Article its title and click Save

You can also start from a Template in one click: the Add Article dropdown's From Template…, the Create Article From Template row action on the Templates overview, and the Create Article from this Template button on a Template's editor and reader pages. See Ways to Create an Article for every entry point and the templateId deep link. When a link carries both templateId and profileId, a profile-based Template's own Document Profile wins.

Create From Template picker shown when creating a new Article (7.12)
Example of choosing a Template while creating a new Article.

Some macros need context from where the Article is opened:

  • Opening the Article from a Resource provides resource.* values
  • Opening the Article from a C4 diagram node provides node.* values

If that context is missing, for example when the Article is read from the Articles list, those macros render empty; they resolve when the Article is viewed in a matching context. The editor and its preview always show them as typed. Macros are not template variables: a variable the editor can't resolve asks for its value with Apply Variables when you create the Article (see Template Variables and Macros).

An Article created from a Template remembers it. The reader and relationship views show Based On Template, linking back to the Template it came from — even after the Article's own content has since changed completely.

New 7.11

Your best Article is often the best starting point for the next one. Copy as Template turns an existing Article into a new Template, and leaves the Article itself untouched.

  1. Choose Copy as Template, either from the Article's row Action menu on the Articles overview, or from the Clone dropdown in the Article editor's header
  2. The Duplicate dialog suggests the title (Template)</em>; change it if you like</li> <li>Confirm — the new Template is created, and it opens in the browser</li> </ol> <p><img src="%7Bndm%7D/Documentation%20Pictures/IM/WebClient/Repository/Articles/CloneSplitButtonCopyAsTemplate.png" alt="Clone split button in the Article editor header, with Copy as Template in the dropdown (7.12)" class="nodinite-zoom"><br> <em>Example of Copy as Template in the Article editor's Clone dropdown.</em></p> <table> <thead> <tr> <th>What happens</th> <th>Behavior</th> </tr> </thead> <tbody> <tr> <td>Copied</td> <td>Title (as entered in the dialog), content, content type, tags, <a href="%7Bndr%7D/Repository%20Model/Custom%20Metadata/Overview.md">Custom Metadata</a>, and the <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md">Document Profile</a> when the <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Overview.md">Article</a> uses one</td> </tr> <tr> <td>Not copied</td> <td><a href="%7Bndr%7D/Administration/2.%20Monitor%20Management/3.%20Resources/Features/What%20is%20a%20Resource.md">Resource</a>, <a href="%7Bndr%7D/Administration/2.%20Monitor%20Management/5.%20Applications/Features/What%20is%20an%20Application.md">Application</a>, and <a href="%7Bndr%7D/Administration/2.%20Monitor%20Management/4.%20Categories/Features/What%20is%20a%20Category.md">Category</a> links, because a Template has none of them</td> </tr> <tr> <td><a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Writing%20a%20Profile-Based%20Article.md">Profile-based Article</a></td> <td>The Template keeps the Article's <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md">Document Profile</a>: the Main Body becomes the Template's body, and every other Content Part keeps its text as starter text. The <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Snippets.md">Snippet</a> Parts still come from the profile, so they aren't copied into the Template</td> </tr> <tr> <td>Plain <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Overview.md">Article</a></td> <td>The Template gets the Article's single body, as is</td> </tr> <tr> <td>Relationship</td> <td>The Template's <strong>Clone Source</strong> points at the original <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Overview.md">Article</a>, so the <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Reading%20Articles.md">relationship views</a> show where it came from. It has no Source Template</td> </tr> <tr> <td>Original <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Overview.md">Article</a></td> <td>Not modified. There's no in-place conversion: a document's kind never changes after it's created</td> </tr> <tr> <td>Permission</td> <td><a href="%7Bndr%7D/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20the%20Repository%20Model.md#fa-file-plus-create">Create</a> on <a href="%7Bndr%7D/Administration/3.%20Access%20Management/1.%20Roles/Features/Permission%20Set%20for%20the%20Repository%20Model.md#fa-newspaper-articles">Articles</a> (<code>Repository_Article_Create</code>), the same as Add and Clone</td> </tr> </tbody> </table> <p>Copy as Template is available for Articles only. To go the other way, create an Article from the Template as described above.</p> <h3><i class="fal fa-code" aria-hidden="true"></i> Web API</h3> <p>Copy as Template uses the existing duplicate endpoint of the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> <a href="%7Bndr%7D/Core%20Services/Web%20API/Overview.md">Web API</a> with a new optional query parameter, <code>targetDocumentType</code>:</p> <pre><code class="language-http">POST api/Articles/{id}/Duplicate?targetDocumentType=Template Content-Type: application/json { "Name": "Incident Runbook (Template)" } </code></pre> <table> <thead> <tr> <th><code>targetDocumentType</code></th> <th>Result</th> </tr> </thead> <tbody> <tr> <td>Omitted</td> <td>A copy of the same kind, as before</td> </tr> <tr> <td><code>Template</code> (or <code>2</code>), with an Article as the source</td> <td>The copy is written as a Template, following the rules above</td> </tr> <tr> <td>Any other value that changes the kind</td> <td><code>400 Bad Request</code>, with an input error on <code>TargetDocumentType</code></td> </tr> </tbody> </table> <p>The request body is unchanged, and the response is the created document with <code>201 Created</code>.</p> <h2><i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps</h2> <ul> <li><i class="fal fa-code" aria-hidden="true"></i> <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Macros%20Reference.md">Macros Reference</a></li> <li><i class="fal fa-list-check" aria-hidden="true"></i> <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Document%20Profiles.md">Document Profiles</a></li> </ul> <h2><i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics</h2> <ul> <li><i class="fal fa-newspaper" aria-hidden="true"></i> <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Overview.md">Knowledge base Articles</a></li> <li><i class="fal fa-puzzle-piece" aria-hidden="true"></i> <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Snippets.md">Snippets</a></li> <li><i class="fal fa-book-open" aria-hidden="true"></i> <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Reading%20Articles.md">Reading Articles</a></li> <li><i class="fal fa-magnifying-glass" aria-hidden="true"></i> <a href="%7Bndr%7D/Repository%20Model/Knowledge%20base%20Articles/Features/Content%20Search.md">Content Search</a></li> </ul>

...

Version:
Release date: N/A
Loading...

Explore Nodinite for 30 days – completely free

  • Find out why this is the leading O&M software
  • Prove your business case
  • Test the self-service for the business side

Loading...

See how Nodinite resolves your technical issues, in a LIVE Demo!

Once you submit this request:

  • We will give you a short call to understand the issues you want to tackle.
  • Understand solutions you have tried and why were you not happy with them.
  • Book a convenient slot for a LIVE demo!

Loading...