[TYPO3-templavoila] Hello + question

Bart van Eijck - Senet BV bvaneijck at senet.nl
Wed Dec 7 08:55:42 CET 2005


First off, hello everybody.

I just subscribed to this list. My name is Bart van Eijck and I'm from the 
Netherlands. We have a big Typo3/Templavoila site for a customer of us and I 
have a very specific question the Dutch Typo3 mailing list wasn't able to 
answer.

The situation is this:

I have made a FCE (Flexible Content Element) in Templavoila that simply is a 
2-colum table with text on the left and one or more pics on the right. I 
made "one or more pictures" on the right accoriding to this: 
http://typo3.org/documentation/document-library/doc_tut_ftb1/Content_Element_with/

This is all working fine, but I want the pics to have a popup link to a 
bigger version of the pic. Not seeing a way how to do this graphically 
(through the Templavoila interface), I just made the pic a hyperlink so the 
users could link it to the file of the bigger version and select "_blank" as 
traget so it sort of looks like a pop-up. Now the customers complaint is 
that if there's no bigger version of the pic, there still is an empty 
hyperlink href="". In Firefox (my main browser) this works ok and just links 
to the page itself, but in IE it links to the root of the website (back to 
the starting page!).

I have been looking at the Typoscript in the XML of the Data Structure (DS) 
of my FCE, but I don't seem to find out how to make it a proper pop-up. I 
have included my DS below. Does anybody here have any idea on how to fix 
this?

Thanks in advance!

Bart

=================================

<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_maintext type="array">
                <tx_templavoila type="array">
                    <title>Main text field</title>
                    <sample_data type="array">
                        <numIndex index="0"></numIndex>
                    </sample_data>
                    <eType>text</eType>
                    <TypoScript>
                       <![CDATA[
                           10 = TEXT
                           10.current = 1
                           10.parseFunc = < lib.parseFunc_RTE
                        ]]>
                    </TypoScript>
                    <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>
                    </config>
                    <label>Main text field</label>
                    <defaultExtras>richtext[*]:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>
                </TCEforms>
            </field_maintext>
            <field_pic_container type="array">
                <type>array</type>
                <section>1</section>
                <tx_templavoila type="array">
                    <title>Picture container</title>
                    <eType>input</eType>
                </tx_templavoila>
                <el type="array">
                    <field_picture type="array">
                        <type>array</type>
                        <tx_templavoila type="array">
                            <title>Picture element</title>
                            <eType>image</eType>
                        </tx_templavoila>
                        <el type="array">
                            <field_picture type="array">
                                <tx_templavoila type="array">
                                    <title>Picture</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.stdWrap.typolink.parameter.field = field_link_image
         </TypoScript>
                                    <tags>a</tags>
                                </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>Picture</label>
                                </TCEforms>
                            </field_picture>
                            <field_caption type="array">
                                <tx_templavoila type="array">
                                    <title>Caption</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>Caption</label>
                                </TCEforms>
                            </field_caption>
                            <field_link_image type="array">
                                <type>attr</type>
                                <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
 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>Link</label>
                                </TCEforms>
                            </field_link_image>
                        </el>
                    </field_picture>
                </el>
            </field_pic_container>
        </el>
    </ROOT>
</T3DataStructure> 




More information about the TYPO3-project-templavoila mailing list