Russian TYPO3 community

Russian TYPO3 community (http://forum.typo3.ru/index.php)
-   TypoScript практикум (http://forum.typo3.ru/forumdisplay.php?f=27)
-   -   Отключить генерацию стандартного HTML-оформления (http://forum.typo3.ru/showthread.php?t=5051)

c0d3r 08.11.2007 17:16

Отключить генерацию стандартного HTML-оформления
 
Уважаемые, для отдельной страницы на TV-сайте нужно вставить готовую страницу, пропущенную через свой шаблонизатор, а не TV.

Решил сделать так:
Код:

page = PAGE
page.10 = USER_INT
page.10 {
        userFunc = user_specialpage
}

Всё хорошо, кроме одного - добавляются стандартные HTML блоки в начале и конце страницы. Как отключить их генерацию? Мне нужно, чтобы окончательный HTML код содержал только то, что выдаёт функция user_specialpage.

Наверное, можно настроить выдачу plain text? Через typeNum=99 это можно сделать, по-моему? Что-то не получается, наткаюсь на "The page is not configured! [type= 0][]"

Заранее спасибо за помощь.

c0d3r 08.11.2007 18:08

Нашёл-таки в TSref, вопрос снят :)

Код:

config.disableAllHeaderCode = 1
If this is set, none of the features of the PAGE-object is processed and the content of the page will be the result of the cObject array (1,2,3,4...) of the PAGE-object. This means that the result of the cObject should include everything from the <HTML> .... to the </HTML> tag !!
Use this feature in templates supplying other content-types than HTML. That could be an image or a WAP-page!


Часовой пояс GMT +4, время: 00:27.

Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot