Start page
Start page

Start page / Tutorials / First project / Link templates / Output in HTML

Defining output in HTML

The HTML tab is used to define how the link information will appear on the website.

$CMS_IF(!lt_pageref.isEmpty)$
<a href="$CMS_REF(lt_pageref)$">
<u>$CMS_VALUE(if(!lt_text.isEmpty, lt_text, "Link"))$</u>
</a>
$CMS_END_IF$
  

$CMS_IF(!lt_pageref.isEmpty)$

Specifies the name of the $CMS_IF(...)$ instruction used. A condition is specified in the instruction. (The reference name for the link target is "lt_pageref". The component is checked for Not Empty.)

<a href="$CMS_REF(lt_pageref)$"

Output of the link target. The example of output in HTML as well as general syntax is described under "Template development".

<u>$CMS_VALUE(if(!lt_text.isEmpty, lt_text, "Link"))$</u>

Formatted output of the link text. This checks the link text for not empty. If there is an empty value, "Link" is substituted as the output.

  

Example of a section with two links

A link has a value for link text (Solar energy) and a link with an empty value for link text (Link). For each link, the hand cursor appears as a mouseover effect just like in the menu navigation.

© 2005 - 2015 e-Spirit AG | All rights reserved. | Last change: 2014-09-08