![]() |
Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community |
|
|
|
|
#1 |
|
Senior Member
|
TV 1.0.1.
Создаю 2 поля картинку и ссылку. В ТВ записан следующий код: Код:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<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_rowpicture1 type="array">
<tx_templavoila type="array">
<title>Row Picture1</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>imagefixed</eType>
<TypoScript>
10 = IMAGE
10.file = GIFBUILDER
10.file {
XY = 170,170
10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.maxW = 170
10.file.minW = 170
10.file.maxH = 170
10.file.minH = 170
}
</TypoScript>
</tx_templavoila>
<TCEforms type="array">
<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>
<label>Row Picture1</label>
</TCEforms>
</field_rowpicture1>
<field_rowpicturelink type="array">
<type>attr</type>
<tx_templavoila type="array">
<title>Row Picture1 Link</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
</TypoScript>
<proc type="array">
<HSC type="integer">1</HSC>
</proc>
</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>Row Picture1 Link</label>
</TCEforms>
</field_rowpicturelink>
</el>
</ROOT>
</T3DataStructure>
Уже второй час с TSRef мучаюсь)) imageLinkWrap не хочет работать с ГИФБИЛДЕРОМ судя по всему, а любые изменения для Link field тоже что-то ни к чему не приводят...
__________________
Персональный блог про заработок в интернете + полезных блога про typo3 и wordpress |
|
|
|
|
|
#2 |
|
Senior Member
|
В TSref для typolink есть параметр JSwindow_params. Вопрос, как его заставить работать? Код например такой:
Код:
10.stdWrap.typolink.parameter = 11 10.stdWrap.typolink.target = 300x300 10.stdWrap.typolink.JSwindow_params = status=1,menubar=1,scrollbars=1,resizable=1,location=1,directories=1,toolbar=1 в то время как работает: Код:
10.stdWrap.typolink.parameter = 11 300x300
__________________
Персональный блог про заработок в интернете + полезных блога про typo3 и wordpress Последний раз редактировалось Tod; 17.11.2006 в 02:43 |
|
|
|
|
|
#3 | |
|
Продвинутый
Регистрация: 12.10.2004
Адрес: Severodonetsk, Ukraine
Сообщений: 60
|
Цитата:
Код:
<TypoScript> 10 = IMAGE 10.file.import = uploads/tx_templavoila/ 10.file.import.current = 1 10.file.import.listNum = 0 10.file.maxW = 200 10.stdWrap.typolink.parameter.field = field_link_url 10.stdWrap.typolink.parameter.noTrimWrap =| | 700x560:menubar=0,scrollbars=1,resizable=0,location=0,toolbar=0| 10.altText.field = field_img_alttitle </TypoScript> удачи =) Последний раз редактировалось gunner; 17.11.2006 в 14:01 Причина: торможу после бессонной ночи =) |
|
|
|
|
|
|
#4 |
|
Senior Member
|
РАБОТАЕТ!
Спасибо за помощь... штука по идее не раз еще пригодится. --- еще бы толково указывать размеры этого нового окна, ну и передать ему возможность закрытия при клике на картинку. это реально?
__________________
Персональный блог про заработок в интернете + полезных блога про typo3 и wordpress Последний раз редактировалось Tod; 18.11.2006 в 01:51 |
|
|
|
|
|
#5 | |
|
Продвинутый
Регистрация: 12.10.2004
Адрес: Severodonetsk, Ukraine
Сообщений: 60
|
Цитата:
Код:
<TypoScript> 10 = IMAGE 10.file.import = uploads/tx_templavoila/ 10.file.import.current = 1 10.file.import.listNum = 0 10.file.maxW = 200 #10.stdWrap.typolink.parameter.field = field_link_url #10.stdWrap.typolink.parameter.noTrimWrap =| | 700x560:menubar=0,scrollbars=1,resizable=0,location=0,toolbar=0| #10.altText.field = field_img_alttitle 10.imageLinkWrap = 1 10.imageLinkWrap.enable = 1 10.imageLinkWrap.JSwindow = 1 10.imageLinkWrap.bodyTag = <BODY bgColor=black> 10.imageLinkWrap.wrap = <A href="javascript:close();"> | </A> 10.imageLinkWrap.width = 800m 10.imageLinkWrap.height = 600 10.imageLinkWrap.JSwindow.expand = 10,15 </TypoScript> |
|
|
|
|
|
|
#6 |
|
Новенький
Регистрация: 06.11.2006
Адрес: Иркутск
Сообщений: 23
|
Вопрос ... по моему по этой же теме ...
можно ли передать сюда какое-то значение? Код:
10.imageLinkWrap.enable = 1 |
|
|
|
|
|
#7 |
|
Senior Member
|
enable является stdWrap, так что ответ - да можно.
|
|
|
|