# Link Templates ## Overview Link templates in FirstSpirit are specialized templates that implement hyperlinks within web projects. They enable consistent link formatting and behavior across an entire project. Links serve multiple purposes: facilitating site navigation, directing users to additional information, providing access to downloadable files, and connecting to external resources. Unlike page templates or section templates, link templates function as reusable components that are integrated into input components rather than being directly deployed. Template developers use link templates to establish standardized link handling and presentation throughout FirstSpirit projects. ## Link Template Structure Each link template consists of five main configuration areas: ### 1. Properties Tab Contains all essential link template settings and basic configuration options. ### 2. Form Tab Defines input components for pages, allowing editors to configure link properties and content. ### 3. Rules Tab Enables conditional logic that can affect elements or properties based on specific conditions. ### 4. Snippet Tab Controls how pages display in overview lists and other aggregated views. ### 5. Template Set Tab Determines how content appears in template sets and manages template relationships. ## Supported Link Types FirstSpirit supports eight distinct varieties of links, each serving different purposes: ### 1. Internal Links References to pages within the same FirstSpirit project, enabling navigation between project content. ### 2. Image Links Clickable images that function as standalone links without requiring separate target definitions. ### 3. Download Links Links that trigger file retrieval, allowing users to download documents, media, or other resources. ### 4. External Links Links to destinations outside the current FirstSpirit project, pointing to other websites or web resources. ### 5. E-mail Links Mailto links that open the user's default email client with a pre-populated address. ### 6. Dataset Links Links to database records, connecting to structured data stored in FirstSpirit databases. ### 7. Remote Links References to content in other FirstSpirit remote projects, enabling cross-project linking. ### 8. Image Map Links Mouse-sensitive images with multiple clickable regions, each potentially linking to different destinations. ## Using Link Templates ### Integration with Input Components Link templates are accessed through specialized input components in FirstSpirit. They are not deployed directly but rather integrated into forms where editors can select and configure them. #### Primary Input Components for Links **Direct Link Components:** - `FS_CATALOG` with `type="link"` and `` - `CMS_INPUT_LINK` **Components Supporting Links Among Other Content:** - `CMS_INPUT_DOM` - Supports text, images, and links within rich content - `CMS_INPUT_DOMTABLE` - Table-based content with embedded link support - `CMS_INPUT_IMAGEMAP` - Image maps with clickable regions ### Limiting Available Link Templates By default, all link templates in the project are available to editors for selection in input components. To restrict which link templates can be chosen, use the following approaches: #### For CMS_INPUT_LINK, CMS_INPUT_DOM, CMS_INPUT_DOMTABLE, and CMS_INPUT_IMAGEMAP Use `LINKEDITORS` and `LINKEDITOR` tags to specify allowed templates: ```xml ``` This configuration limits the available link templates to only "internalLink" and "externalLink" templates. #### For FS_CATALOG Use `TEMPLATE` with `uid` tags to specify allowed link templates: ```xml