Показать сообщение отдельно
Старый 19.07.2011, 11:13   #5
vasiliy997
Новенький
 
Регистрация: 19.04.2011
Адрес: Благовещенск(Амур.обл.)
Сообщений: 13
По умолчанию

Цитата:
Сообщение от void
Где-то проставлен лишний htmlSpecialChars
Вроде всё нормально.
DS одноколоночного шаблона(Полностью)
Код:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
	<meta type="array">
		<langDisable>1</langDisable>
	</meta>
	<ROOT type="array">
		<tx_templavoila type="array">
			<title>ROOT</title>
			<description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
		</tx_templavoila>
		<type>array</type>
		<el type="array">
			<field_menu type="array">
				<tx_templavoila type="array">
					<title>Main menu</title>
					<description>Map this element to the HTML element containing the dummy menu</description>
					<sample_data type="array">
						<numIndex index="0">[ Here goes my dynamic menu... ]</numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<tags>*:inner</tags>
					<proc type="array">
						<int>0</int>
						<HSC>0</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
					<TypoScriptObjPath>lib.menu_1</TypoScriptObjPath>
				</tx_templavoila>
			</field_menu>
			<field_content type="array">
				<tx_templavoila type="array">
					<title>Page content</title>
					<description>Map this to the container element for page content</description>
					<sample_data type="array">
						<numIndex index="0">[Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. Here goes my page content. ]</numIndex>
					</sample_data>
					<eType>ce</eType>
					<TypoScript>10= RECORDS
10.source.current=1
10.tables = tt_content</TypoScript>
					<proc type="array">
						<int>0</int>
						<HSC>0</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
					<oldStyleColumnNumber>0</oldStyleColumnNumber>
					<enableDragDrop>1</enableDragDrop>
				</tx_templavoila>
				<TCEforms type="array">
					<label>Page content</label>
					<config type="array">
						<type>group</type>
						<internal_type>db</internal_type>
						<allowed>tt_content</allowed>
						<size>5</size>
						<maxitems>200</maxitems>
						<minitems>0</minitems>
						<multiple>1</multiple>
						<show_thumbs>1</show_thumbs>
					</config>
				</TCEforms>
			</field_content>
			<field__printversionurl type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Print version link URL</title>
					<description><![CDATA[Map this DS element only to an “href” attribute of an <a>-tag!]]></description>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<tags>a:attr:href</tags>
					<preview></preview>
					<TypoScriptObjPath>lib.print_url</TypoScriptObjPath>
				</tx_templavoila>
			</field__printversionurl>
		</el>
	</ROOT>
</T3DataStructure>
DS FCE(Полностью)
Код:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
	<meta type="array">
		<langDisable>1</langDisable>
	</meta>
	<ROOT type="array">
		<tx_templavoila type="array">
			<title>ROOT</title>
			<description>Select the HTML element on the page which you want to be the overall container element for the template.</description>
		</tx_templavoila>
		<type>array</type>
		<el type="array">
			<field_header type="array">
				<tx_templavoila type="array">
					<title>header</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>input_h</eType>
					<TypoScript>
10 = TEXT
10.current = 1
10.typolink.parameter.field = field_linkurl
</TypoScript>
					<proc type="array">
						<int>0</int>
						<HSC>1</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
				</tx_templavoila>
				<TCEforms type="array">
					<label></label>
					<config type="array">
						<type>input</type>
						<size>48</size>
						<eval>trim</eval>
					</config>
				</TCEforms>
			</field_header>
			<field_bodytext type="array">
				<tx_templavoila type="array">
					<title>Bodytext</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>text</eType>
					<TypoScript></TypoScript>
					<proc type="array">
						<HSC type="integer">1</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
				</tx_templavoila>
				<TCEforms type="array">
					<label>Bodytext</label>
					<config type="array">
						<type>text</type>
						<cols>48</cols>
						<rows>5</rows>
					</config>
				</TCEforms>
			</field_bodytext>
			<field_image type="array">
				<tx_templavoila type="array">
					<title>Image</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>image</eType>
					<TypoScript>
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 200
10.params = align="right" style="margin-left: 10px; margin-right: 5px;"
</TypoScript>
					<preview></preview>
				</tx_templavoila>
				<TCEforms type="array">
					<label>Image</label>
					<config type="array">
						<type>group</type>
						<internal_type>file</internal_type>
						<allowed>gif,png,jpg,jpeg</allowed>
						<max_size>1000</max_size>
						<uploadfolder>uploads/tx_templavoila</uploadfolder>
						<show_thumbs>1</show_thumbs>
						<size>1</size>
						<maxitems>1</maxitems>
						<minitems>0</minitems>
					</config>
				</TCEforms>
			</field_image>
			<field_ltitle type="array">
				<tx_templavoila type="array">
					<title>Link title</title>
					<sample_data type="array">
						<numIndex index="0">My Link</numIndex>
					</sample_data>
					<eType>input</eType>
					<tags>a</tags>
					<TypoScript type="NULL"></TypoScript>
					<proc type="array">
						<int>0</int>
						<HSC>1</HSC>
						<stdWrap></stdWrap>
					</proc>
					<preview></preview>
				</tx_templavoila>
				<TCEforms type="array">
					<label>Link title</label>
					<config type="array">
						<type>input</type>
						<size>48</size>
						<eval>trim</eval>
					</config>
				</TCEforms>
			</field_ltitle>
			<field_linkurl type="array">
				<type>attr</type>
				<tx_templavoila type="array">
					<title>Link URL</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>link</eType>
					<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
10.typolink.returnLast = url
10.htmlSpecialChars = 0</TypoScript>
					<proc type="array">
						<HSC>1</HSC>
						<stdWrap></stdWrap>
						<int>0</int>
					</proc>
					<preview></preview>
					<tags>a:attr:href</tags>
				</tx_templavoila>
				<TCEforms type="array">
					<label>Link URL</label>
					<config type="array">
						<type>input</type>
						<size>15</size>
						<max>256</max>
						<checkbox></checkbox>
						<eval>trim</eval>
						<wizards type="array">
							<_PADDING type="integer">2</_PADDING>
							<link type="array">
								<type>popup</type>
								<title>Link</title>
								<icon>link_popup.gif</icon>
								<script>browse_links.php?mode=wizard</script>
								<JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
							</link>
						</wizards>
					</config>
				</TCEforms>
			</field_linkurl>
		</el>
	</ROOT>
</T3DataStructure>
TS(Полностью)
Код:
# Menu 1 cObject
lib.menu_1 = HMENU
# First level menu-object, textual
lib.menu_1.1 = TMENU
lib.menu_1.1 {
# Normal state properties
NO.allWrap = <div class="menu1-level1-no"> |
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu1-level1-act">
}
# Second level menu-object, textual
lib.menu_1.2 = TMENU
lib.menu_1.2 {
# Normal state properties
NO.allWrap = <div class="menu1-level2-no"> |
NO.stdWrap.htmlSpecialChars = 1
# Enable active state and set properties:
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.allWrap = <div class="menu1-level2-act">
}

# Default PAGE object:
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

#Print Version URL:
lib.print_url = TEXT
lib.print_url.value = index.php?id={page:uid}&print=1&no_cache=1
lib.print_url.htmlSpecialChars = 1
lib.print_url.insertData = 1
[globalVar = GP:print > 0]
lib.print_url.value = index.php?id={page:uid}
[global]
vasiliy997 вне форума   Ответить с цитированием