Google sitemap XML (weeaar_googlesitemap)
Základné nastavenie TS setup
config {
baseURL = www.yourdomain.sk
}
sitemap = PAGE
sitemap {
typeNum = 200
10 >
10 < plugin.tx_weeaargooglesitemap_pi1
10.pid_list = 1
10.recursive = 3
10.allowedDoktypes = 1,2,4
10.languageVar = L
10.showLanguages = 0
10.domain < config.baseURL
config {
disableAllHeaderCode = 1
additionalHeaders = Content-type:text/xml
no_cache = 1
xhtml_cleaning = 0
}
}
Nastavenie pre jazyky
[globalVar = GP:L=0]
sitemap.10.showLanguages = 0
[globalVar = GP:L=1]
sitemap.10.showLanguages = 1
[globalVar = GP:L=2]
sitemap.10.showLanguages = 2
[globalVar = GP:L=3]
sitemap.10.showLanguages = 3
[globalVar = GP:L=4]
sitemap.10.showLanguages = 4
[global]
Výsledok dostaneme na URL
EN: index.php?type=200
SK: index.php?type=200&L=1
Nastavenie pre EXT realurl
(súbor typo3conf/localconf.php)
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => array(
...
'fileName' => array(
'acceptHTMLsuffix' => 1,
'index' => array(
'index.html' => array(
'keyValues' => array(
'type' => 0
),
),
'sitemap.xml' => array(
'keyValues' => array(
'type' => 200
),
),
),
'print' => array(
'print.html' => array(
'keyValues' => array(
'type' => 98
),
),
),
),
...
),
);
Výsledok s nastavením realurl dostaneme na
www.sitename.eu/sitemap.xml
| Žiadne dokumenty ani odkazy k tejto stránke. | ||
Generátor typoscriptu
Vytvára typoscript pre bežné použitie. Generátor je jednoduchý na obsluhu, stačí vyplniť zopár položiek formulára.