PDA

Просмотр полной версии : Вставка количества записей через TS


Valery Romanchev
10.06.2007, 00:13
Задача - вставить количество записей через TS внутри FCE

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>Выберите HTML-элемент на странице, который будет содержать все остальные элементы</description>
</tx_templavoila>
<type>array</type>
<el type="array">
<field_link_code type="array">
<tx_templavoila type="array">
<title>Link code</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>TypoScriptObject</eType>

<TypoScript>
<![CDATA[
5 = TEXT
5.value = >>&nbsp;
10 = TEXT
10.value = Комментарии
10.typolink.parameter.field = field_url
20 = CONTENT
20 {
table = tx_skpagecomments_comments
select {
selectFields = count(*) as count
pidInList = 187
andWhere{
field = field_url
wrap = pageid =|
}
}
renderObj = TEXT
renderObj {
field = count
noTrimWrap = | (всего |) |
# wrap = (всего | )
}
}
]]>
</TypoScript>

</tx_templavoila>
</field_link_code>
<field_url type="array">
<tx_templavoila type="array">
<title>Link</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
10 = TEXT
10.typolink.parameter.current = 1
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<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>
<label>Link</label>
</TCEforms>
</field_url>
</el>
</ROOT>
</T3DataStructure>