Цитата:
Сообщение от NiKRON
Как label сделать константой? Остальное мне понятно.
|
надо создать поле с типом TS объект, замепить его на этот label
lib.label уже нужно будет задать в TS коде шаблона
то что я писал по поводу констант - это более сложный вариант.. он наверное здесь не нужен
имелось ввиду вот это:
Цитата:
<?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_link type="array">
<tx_templavoila type="array">
<title>Link</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>link</eType>
<TypoScript>
<![CDATA[
10 = TEXT
10.wrap = <div class="but-1"><span><b>|</b></span></div>
10.value = {$TSconst.watch_video}
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,menuba r=0,scrollbars=1</JSopenParams>
</link>
</wizards>
</config>
<label>Link</label>
</TCEforms>
</field_link>
</el>
</ROOT>
</T3DataStructure>
|