brabus23
09.10.2008, 15:48
Итак. Начнем по порядку что я уже сделал???
1. Установил ВИНДОВСКИЙ типо3 версии 4.2.1
2. в папку C:\Program Files\TYPO3_4.2.1\htdocs\Dummy\typo3conf\l10n
закачал руский язык
*админка русифицированна ))) Ура
3.закачиваю шаблон в папку
C:\Program Files\TYPO3_4.2.1\htdocs\Dummy\fileadmin\template\ test.html
-----содержимое-test.html-----------
<body bgcolor="#C0C0C0">
<div align="center"><table width="800" border="1" cellspacing="0" cellpadding="0" bordercolor="#CC3300" bgcolor="#FFFFFF">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100"><div align="center">логотип</div></td>
</tr>
<tr><td><hr size="1" color="#C0C0C0"></td></tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" nowrap><div style="padding: 10,10,10,10px;">меню</div></td><td width="1" nowrap bgcolor="#C0C0C0"></td>
<td><div style="padding: 10,10,10,10px;">контент</div></td>
</tr></table></td></tr></table></div>
-------------------------------------
4. Подключаю:
Создаю шаблон к странице, пишу в сетапе:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/template/test.html
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
Итог... получаю такой вариант страницы
------------------------------
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2008 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<title>Главная</title>
<meta name="generator" content="TYPO3 4.2 CMS" />
<script type="text/javascript" src="typo3temp/javascript_93077bb238.js"></script>
</head>
<body>
<body bgcolor="#C0C0C0">
<div align="center"><table width="800" border="1" cellspacing="0" cellpadding="0" bordercolor="#CC3300" bgcolor="#FFFFFF">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100"><div align="center">раз раз</div></td>
</tr>
<tr><td><hr size="1" color="#C0C0C0"></td></tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" nowrap><div style="padding: 10,10,10,10px;">меню</div></td><td width="1" nowrap bgcolor="#C0C0C0"></td>
<td><div style="padding: 10,10,10,10px;">контент</div></td>
</tr>
</table>
</td></tr></table></div>
</body>
</html>
------------------------------
которая выглядит так на вложении
Вопрос Как изменить кодировку на нормальную???
1. Установил ВИНДОВСКИЙ типо3 версии 4.2.1
2. в папку C:\Program Files\TYPO3_4.2.1\htdocs\Dummy\typo3conf\l10n
закачал руский язык
*админка русифицированна ))) Ура
3.закачиваю шаблон в папку
C:\Program Files\TYPO3_4.2.1\htdocs\Dummy\fileadmin\template\ test.html
-----содержимое-test.html-----------
<body bgcolor="#C0C0C0">
<div align="center"><table width="800" border="1" cellspacing="0" cellpadding="0" bordercolor="#CC3300" bgcolor="#FFFFFF">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100"><div align="center">логотип</div></td>
</tr>
<tr><td><hr size="1" color="#C0C0C0"></td></tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" nowrap><div style="padding: 10,10,10,10px;">меню</div></td><td width="1" nowrap bgcolor="#C0C0C0"></td>
<td><div style="padding: 10,10,10,10px;">контент</div></td>
</tr></table></td></tr></table></div>
-------------------------------------
4. Подключаю:
Создаю шаблон к странице, пишу в сетапе:
temp.mainTemplate = TEMPLATE
temp.mainTemplate {
template = FILE
template.file = fileadmin/template/test.html
}
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 < temp.mainTemplate
Итог... получаю такой вариант страницы
------------------------------
<!DOCTYPE html
PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--
This website is powered by TYPO3 - inspiring people to share!
TYPO3 is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.
TYPO3 is copyright 1998-2008 of Kasper Skaarhoj. Extensions are copyright of their respective owners.
Information and contribution at http://typo3.com/ and http://typo3.org/
-->
<title>Главная</title>
<meta name="generator" content="TYPO3 4.2 CMS" />
<script type="text/javascript" src="typo3temp/javascript_93077bb238.js"></script>
</head>
<body>
<body bgcolor="#C0C0C0">
<div align="center"><table width="800" border="1" cellspacing="0" cellpadding="0" bordercolor="#CC3300" bgcolor="#FFFFFF">
<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="100"><div align="center">раз раз</div></td>
</tr>
<tr><td><hr size="1" color="#C0C0C0"></td></tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" nowrap><div style="padding: 10,10,10,10px;">меню</div></td><td width="1" nowrap bgcolor="#C0C0C0"></td>
<td><div style="padding: 10,10,10,10px;">контент</div></td>
</tr>
</table>
</td></tr></table></div>
</body>
</html>
------------------------------
которая выглядит так на вложении
Вопрос Как изменить кодировку на нормальную???