# LinkTranslatorMapAction in Cocoon

0.9
Technical document

This document describes the LinkTranslatorMapAction of Cocoon.

LinkTranslatorMapAction

NAME | link-translator-map
WHAT | The `LinkTranslatorMapAction` component is used setup a simple link rewriting.
TYPE | Action, Sitemap Component
BLOCK | Block-Mail/Scratchpad
CLASS | org.apache.cocoon.acting.LinkTranslatorMapAction
SINCE | Cocoon 2.1
CACHEABLE | not applicable

Description

The `LinkTranslatorMapAction` sets up a simple link rewriting mapping.

Usage

Keeping outbounding links independing from its publishing URI is a simple usage scenario of `LinkTranslatorMapAction`.

Sitemap pipeline examples

    <map:match pattern="mail/*.html">
      <map:action type="link-translator-map">
        <!-- sitemap parameters -->
        <map:parameter name="main.css" value="../main.css"/>
      </map:action>
    </map:match>

Sitemap component configuration example

    <map:actions...
      <map:action name="link-translator-map"
        src="org.apache.cocoon.acting.LinkTranslatorMapAction"
        logger="sitemap.action.link-translator-map"
      />
      ...
    </map:actions>
    ...

Configuration

Explain the sitemap action configuration, options when declaring template action

Setup

Explain the sitemap action setup, ie options when using template action

Effect on Object Model and Sitemap Parameters

Bugs/Caveats

Describe limitation, bugs of LinkTranslatorMapAction

History

01-05-02: initial creation

See also

Links to related components pages.