HyperLink Field

From Sense/Net Wiki
Jump to: navigation, search
  •  
  •  
  •  
  •  
  • 100%
  • 6.0
  • Enterprise
  • Community
  • Planned

Overview

HyperLink is a Field that stores a link to the required content or webpage.

Field handler

  • handler: SenseNet.ContentRepository.Fields.HyperLinkField
  • short name: HyperLink

Usage in CTD:

   <Field name="LinkTo" type="Hyperlink">
   ...
   </Field>

Configuration

The following properties can be set in the field's configuration:

  • UrlFormat: can hold two values "HyperLink" or "Picture". Default value is "HyperLink".

Example/Tutorials

Fully featured example:

 <Field name="MyHyperlinkField" type="HyperLink">
      <DisplayName>My Hyperlink Field</DisplayName>
      <Description>Hyperlink content</Description>
      <Configuration>
        <UrlFormat>HyperLink</UrlFormat>
      </Configuration>
 </Field>

Related links

References