addAutolinks

Verlinkt die in einer Tabelle eingetragenen Wörter mit den zugeordneten Links

TAG

<wsl:addAutolinks path=""></wsl:addAutolinks>

Attribute

[PATH]
path *
Pfad der Autolink-Datei
String
target
Linkziel
String
class
CSS-Klasse
Integer
limit
Maximale Anzahl der zu ersetzenden Wörter
[0|1]
caseSensitive
Falls Groß-/Kleinschreibung berücksichtigt werden soll
Integer
maxDifferentAutolinks
Limitiert die maximal zu ersetzenden unterschiedlichen Autolinks
[0|1]
noAutolinksInHeadlines
Falls in Überschriften keine Autolinks gesetzt werden sollen
String
infoForEditor
Zusatzinformation, die dem Redakteur im Titel angezeigt wird

Beispiel: Auszug aus dem Element text.wysiwyg.wItem.php

...
  <xsl:template match="wd:item[@type = 'text.wysiwyg']">
    ...
            <xsl:choose>
              <xsl:when test="php:functionString('wVariables::getValue', 'autolinks_active', '/de-wGlobal') = 'yes' and php:functionString('wVariables::getValue', 'autoacronyms_active', '/de-wGlobal') = 'yes'">
                <wsl:addAutolinks path="{$wProjectPath}/wGlobal/content/autolinks/standard.wAutolinks.php" limit="{php:functionString('wVariables::getValue', 'autolinks_limit', '/de-wGlobal', '', '')}" maxDifferentAutolinks="{php:functionString('wVariables::getValue', 'autolinks_max_different', '/de-wGlobal', '', '')}" class="{php:functionString('wVariables::getValue', 'autolinks_class', '/de-wGlobal', '', '')}"><xsl:attribute name="infoForEditor"><xsl:value-of select="php:functionString('wTexts::showTextUser', 'Editable at global content', 'Automatisch generierter Link, bearbeitbar über globale Inhalte / Autolinks', 'Pour éditer en contenu global')"/></xsl:attribute><wsl:addAcronyms path="{$wProjectPath}/wGlobal/content/acronyms/standard.wAcronyms.php" elementName="abbr" limit="{php:functionString('wVariables::getValue', 'autoacronyms_limit', '/de-wGlobal', '', '')}" caseSensitive="{php:functionString('wVariables::getValue', 'autoacronyms_casesensitive', '/de-wGlobal')}" maxDifferentAcronyms="{php:functionString('wVariables::getValue', 'acronyms_max_different', '/de-wGlobal', '', '')}"><xsl:value-of disable-output-escaping="yes" select="wd:fragment[@id = 'text']"/></wsl:addAcronyms></wsl:addAutolinks>
              </xsl:when>
              ...
              <xsl:otherwise>
                <xsl:value-of disable-output-escaping="yes" select="wd:fragment[@id = 'text']"/>
              </xsl:otherwise>
            </xsl:choose>
    ...
  </xsl:template>
...