[TYPO3-templavoila] click-enlarge not for all images

Philipp Holdener philipp at holdener.ch
Tue Nov 20 17:26:47 CET 2007


Dmitry Dulepov [typo3] schrieb:
> Hi Philipp!
> 
> Philipp Holdener wrote:
>> Is there a possibility to enable click-enlarge just for a few images 
>> (not for all)?
> 
> As an idea: make a separate checkbox field in DS (no_map). It will be 
> visible when editing FCE. Enable link if it is checked.
> 
> I did not try myself but I hope this will would work ok.
> 


Hello Dmitry

I tryed this DS (Select with values 0/1 -> should enable 
10.imageLinkWrap.field = field_click  )... but it doesn't work! :-(




<?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>Wählen Sie das HTML-Element der Seite, das Sie als 
übergeordnetes Container-Element des Templates möchten.</description>
		</tx_templavoila>
		<type>array</type>
		<el type="array">
			<field_titel type="array">
				<tx_templavoila type="array">
					<title>Produkttitel</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>input</eType>
					<proc type="array">
						<HSC type="integer">1</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>48</size>
						<eval>trim</eval>
					</config>
					<label>Produkttitel</label>
				</TCEforms>
			</field_titel>
			<field_bild type="array">
				<tx_templavoila type="array">
					<title>Bild</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>imagefixed</eType>
					<TypoScript><![CDATA[
	10 = IMAGE
	10.format = jpg
	10.altText.field = field_bildbeschreib
          10.titleText.field = field_bildbeschreib
		10.file.import = uploads/tx_templavoila/
		10.file.import.current = 1
		10.file.import.listNum = 0
		10.file.maxW = 200
		10.file.minW = 100
		10.file.maxH = 150
		10.file.minH = 75

###################################
### BEGIN code to enlarge image ###
###################################
10.imageLinkWrap.field = field_click
10.imageLinkWrap {
   bodyTag = <body style="background-color:#fff;">
   wrap = <a href="javascript:close();"> | </a>
   width = 800m
   height = 600m
   effects=
   JSwindow = 1
   JSwindows {
     newWindow = 0
     expand = 17,20
     }

   enable = 1
   typolink.parameter.field=image_link
   typolink.extTarget = _blank
}
#################################
### END code to enlarge image ###
#################################
	
		
		
							]]></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>Bild</label>
				</TCEforms>
			</field_bild>
			<field_bildbeschreib type="array">
				<tx_templavoila type="array">
					<title>Bildbeschreib</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>input</eType>
					<proc type="array">
						<HSC type="integer">1</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>input</type>
						<size>48</size>
						<eval>trim</eval>
					</config>
					<label>Bildbeschreib</label>
				</TCEforms>
			</field_bildbeschreib>
			<field_text type="array">
				<tx_templavoila type="array">
					<title>Text</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>rte</eType>
					<TypoScript><![CDATA[
	10 = TEXT
	10.current = 1
	10.parseFunc = < lib.parseFunc_RTE
							]]></TypoScript>
					<oldStyleColumnNumber type="integer">0</oldStyleColumnNumber>
					<proc type="array">
						<HSC type="integer">0</HSC>
					</proc>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>text</type>
						<cols>48</cols>
						<rows>5</rows>
						<softref>typolink_tag,images,email[subst],url</softref>
					</config>
					<label>Text</label>
				 
<defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
				</TCEforms>
			</field_text>
			<field_totop type="array">
				<tx_templavoila type="array">
					<title>Totop</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>none</eType>
					<TypoScript><![CDATA[
10 = TEXT
10.wrap = <div class="clear produktup">|</div>
10.value = <img src="/fileadmin/templates/images/produktup.gif" alt="To 
Top" width="13" height="13" />
10.typolink.target =
10.typolink.parameter = #top
10.typolink.title = To Top

							]]></TypoScript>
				</tx_templavoila>
			</field_totop>
			<field_click type="array">
				<tx_templavoila type="array">
					<title>Click-Enlarge</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>select</eType>
				</tx_templavoila>
				<TCEforms type="array">
					<config type="array">
						<type>select</type>
						<items type="array">
							<numIndex index="0" type="array">
								<numIndex index="0"></numIndex>
								<numIndex index="1"></numIndex>
							</numIndex>
							<numIndex index="1" type="array">
								<numIndex index="0">Bild ohne click-enlarge</numIndex>
								<numIndex index="1">0</numIndex>
							</numIndex>
							<numIndex index="2" type="array">
								<numIndex index="0">Bild mit click-enlarge</numIndex>
								<numIndex index="1">1</numIndex>
							</numIndex>
							
						</items>
						<default>0</default>
					</config>
					<label>Click-Enlarge</label>
				</TCEforms>
			</field_click>
		</el>
	</ROOT>
</T3DataStructure>


More information about the TYPO3-project-templavoila mailing list