sâmbătă, 10 decembrie 2011

TYPO3: realurl

realurl & danp_realurlconfigurator  or easy configuration of RealUrl

  1. Install the extension: Realurl Configurator (danp_realurlconfigurator).
  2. If the installation was successful, the ADMIN TOOLS will have a new module: Realurlconf. Click it!
  3. In the top-right list select: Base-Configuration.
  4. Click on the bold link Try to create from 2).
  5. Click on the bold link Copy default content (attention overrides) from 2).
  6. Go to Extension Manager module from ADMIN TOOLS.
  7. Find the extension RealURL: speaking paths for TYPO3 (realurl) and click on it.
  8. In the Configuration section alter these:
    1. Path to configuration file: change from 'typo3conf/realurlconf.php' to 'typo3conf/realurlconf.php'.
    2. Enable automatic configuration: uncheck.  

realurl &multi-lingual content

Suppose that Realurl Configurator extension is already installed.
Suppose that we have to additional languages: Russian with id 1 and English with id 2.
  1. Go to the Realurlconf module from ADMIN TOOLS.
  2. In the top-right list select: Edit RealUrl-Config.
  3. In the nice online editor change these:
    1. In the preVars array find the array which starts with
      array(
      'GETvar' => 'L',
      change the valueMap array to
      'valueMap' => array(
      'ru'=>'1',
      'en'=>'2',
      )
  4. Click Save button.

realurl misc

To avoid problematic situations in the future you can add to the pagePath array this
'rootpage_id' => 1,
Where the id 1must be changed to the id of the root page of the site (where the main template is located).

Sometimes RealUrl appends to the url the tail '.html'. To disable this feature add (or change it if already exists) to the fileName array this
'defaultToHTMLsuffixOnPrev'=>0,



    Niciun comentariu:

    Trimiteți un comentariu