script

Tuesday, April 9, 2013

News tt_news title in breadcrumb

TYPO3

TYPOSCRIPT

lib.breadcrumb = COA
lib.breadcrumb {
 10 = COA
 10{
    10 = HMENU
    10 {  
      special = rootline
      special.range = 0|-1
      1 = TMENU
      1.noBlur = 1
      1.target = _self
      1.wrap = |
      1.NO {
        doNotLinkIt = 1
        stdWrap.field = nav_title // title
        ATagTitle.field = nav_title // title
        #ATagParams =  class="breadcrumb"
        linkWrap = | || <span style="font-size:15px;"> › </span>|
      }
      
      1.CUR = 1
      1.CUR{
        doNotLinkIt = 1
        linkWrap = <span style="font-size:15px;"> › </span>|
        doNotLinkIt = 1
      }
   }
  }
  
  20 = RECORDS
  20{
    tables = tt_news
    dontCheckPid = 1
    source.data = GP:tx_ttnews|tt_news
    conf.tt_news = TEXT
    conf.tt_news.field = title
    wrap = <span style="font-size:15px;"> › </span>|
  }
}

Monday, April 8, 2013

Wizard in flexform of TYPO3

<TCEforms>
                                    <exclude>1</exclude>
                                    <label>Slider Link</label>
                                    <config>
                                        <type>input</type>
                                        <size>30</size>
                                        <max>256</max>
                                        <checkbox></checkbox>
                                        <eval>trim</eval>
                                        <wizards type="array">
                                          
                                            <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>
                                </TCEforms>

IRRE in flex form of TYPO3

<T3DataStructure>
  <meta>
    <langDisable>1</langDisable>
  </meta>
  <sheets>
    <sDEF>
      <ROOT>
        <TCEforms>
          <sheetTitle>LLL:EXT:portfolio_function/locallang_tca.xml:portfolio_function.pi_flexform.sheettitle</sheetTitle>
        </TCEforms>
        <type>array</type>
        <el>
          <titleContainer>
                <TCEforms>
                    <tx_templavoila>
                        <title>Section Title</title>
                    </tx_templavoila>
                </TCEforms>
                <section>1</section>
                <type>array</type>
                <el>
                    <titleWrap>
                        <type>array</type>
                        <tx_templavoila>
                            <title>Slider</title>
                        </tx_templavoila>
                        <el>
                            <slider_image>
                                <TCEforms>
                                    <exclude>1</exclude>
                                    <label>Slider Image</label>
                                    <config>
                                        <type>group</type>
                                        <internal_type>file</internal_type>
                                         <allowed>gif, jpg,jpeg,png,bmp</allowed>
                                         <max_size>10000</max_size>
                                        <size>1</size>
                                    </config>
                                </TCEforms>
                            </slider_image>
                            <slider_content>
                                <TCEforms>
                                    <exclude>1</exclude>
                                    <label>Slider Content</label>
                                    <config>
                                        <type>text</type>
                                        <cols>30</cols>
                                        <rows>5</rows>
                                        <eval>required</eval>
                                      </config>
                                     
                                </TCEforms>
                            </slider_content>
                            <slider_content>
                                <TCEforms>
                                    <exclude>1</exclude>
                                    <label>Slider Content</label>
                                    <config>
                                        <type>text</type>
                                        <cols>30</cols>
                                        <rows>5</rows>
                                        <eval>required</eval>
                                      </config>
                                      <!--<defaultExtras>richtext[*]:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras>-->
                                </TCEforms>
                            </slider_content>
                        </el>
                    </titleWrap>
                </el>
            </titleContainer>
          <!--<cat_sel>
           <TCEforms>
            <label>LLL:EXT:portfolio_function/locallang_tca.xml:portfolio_function.pi_flexform.sel_cat</label>
            <config>
             <type>select</type>
              <itemsProcFunc>tx_getCategories->getCategories</itemsProcFunc>
            </config>
            </TCEforms>
         </cat_sel>
           <sender_email>
            <TCEforms>
              <label>LLL:EXT:portfolio_function/locallang_tca.xml:portfolio_function.pi_flexform.sender_email</label>
              <config>
                <type>input</type>
                <size>25</size>
              </config>
            </TCEforms>
          </sender_email>
           <sender_name>
            <TCEforms>
              <label>LLL:EXT:portfolio_function/locallang_tca.xml:portfolio_function.pi_flexform.sender_name</label>
              <config>
                <type>input</type>
                <size>25</size>
              </config>
            </TCEforms>
          </sender_name>
          <email_subject>
            <TCEforms>
              <label>LLL:EXT:portfolio_function/locallang_tca.xml:portfolio_function.pi_flexform.email_subject</label>
              <config>
                <type>input</type>
                <size>25</size>
              </config>
            </TCEforms>
          </email_subject>-->
        </el>
       
      </ROOT>
    </sDEF>
  </sheets>
</T3DataStructure>