Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KBA: Fixes links not opening in new tab in OXOMI KBAs #1963

Merged
merged 4 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/resources/default/kb/en/user/noodle.html.pasta
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</li>
<li>
Macro calls: <k:inlineCode>isEmpty("test")</k:inlineCode>. All available macros are listed here:
<a href="/system/tags">Tagliatelle Tag Overview</a>.
<k:link link="/system/tags" name="Tagliatelle Tag Overview" target="_blank"/>.
</li>
<li>
If statements: <k:inlineCode>if (condition) { statements; }</k:inlineCode>
Expand Down
25 changes: 18 additions & 7 deletions src/main/resources/default/kb/en/user/tagliatelle.html.pasta
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<k:article code="T2IQI" lang="de" parent="AHJEC" title="Tagliatelle Template Engine" permissions="" crossReferences="HP9RC">
<k:article code="T2IQI"
lang="de"
parent="AHJEC"
title="Tagliatelle Template Engine"
permissions=""
crossReferences="HP9RC">
<i:block name="description">Defines the syntax of the Tagliatelle Template Engine.</i:block>

<i:block name="sidebar">
Expand All @@ -11,13 +16,15 @@

<k:section heading="Common" anchor="common">
<p>
<b>Tagliatelle</b> is template engine which renders a statically typed and compiled templates. This is mainly
<b>Tagliatelle</b> is template engine which renders a statically typed and compiled templates. This is
mainly
used to render the HTML output of the web-server but can be used to generate any form of text output.
sabieber marked this conversation as resolved.
Show resolved Hide resolved
</p>
<p>
Tagliatelle uses Noodle (<k:ref code="HP9RC" />) as expression language. An expression can be placed anywhere
Tagliatelle uses Noodle (<k:ref code="HP9RC"/>) as expression language. An expression can be placed anywhere
in the template by prefixing it with an <b>@@</b>, i.e. <k:inlineCode>@@myVariable</k:inlineCode>. If the
boundaries of the expression are unclear, it can be put into parentheses like <k:inlineCode>@@(3+4)</k:inlineCode>.
boundaries of the expression are unclear, it can be put into parentheses like
<k:inlineCode>@@(3+4)</k:inlineCode>.
If a tag expects an expression anyway, the "@@" can be omitted. (Note that the "@@" can be escaped by
putting two in a row: <k:inlineCode>@@@@</k:inlineCode>.
</p>
Expand All @@ -29,8 +36,10 @@
</k:section>
<k:section heading="Anatomy of a tag" anchor="anatomy-of-a-tag">
<p>
Tags are organized in <b>tag libraries</b>. Each library has a prefix assigned, e.g. <b>k</b>. All templates for
this tag library are then placed in <k:inlineCode>tags/k/tagName.html.pasta</k:inlineCode> and can be referenced
Tags are organized in <b>tag libraries</b>. Each library has a prefix assigned, e.g. <b>k</b>. All templates
for
this tag library are then placed in <k:inlineCode>tags/k/tagName.html.pasta</k:inlineCode> and can be
referenced
using <k:inlineCode>&lt;k:tagName&gt;</k:inlineCode>.
</p>
<p>
Expand All @@ -42,6 +51,8 @@
</p>
</k:section>
<k:section heading="Available tags and macros" anchor="available-tags-and-macros">
A list of all available tags and macros can be found here: <a href="/system/tags">Tagliatelle Tag Overview</a>.
A list of all available tags and macros can be found here: <k:link link="/system/tags"
name="Tagliatelle Tag Overview"
target="_blank"/>.
scireum-mbo marked this conversation as resolved.
Show resolved Hide resolved
</k:section>
</k:article>