• Inhalt als PDF-Datei herunterladen
  • Optimierter Druck
Thema mit vielen Antworten

TYPO3-Browser: Dateilinks, Filelinks für tt_news.news_files


Autor Nachricht
Verfasst am: 23. 06. 2011 [11:39]
sylv1
sylvain hess
Dabei seit: 22.06.2011
Beiträge: 17
Hi everybody,

I finally get the field "filescaption" with the RECORDS cObject like this:
TYPOSCRIPT
files = TEXT
        files {
            if {
            	isTrue = ###TX_IPJJDOCS_MAIN.FILES###
            }         
            wrap = <ul>|</ul>
            split {
              token = ,
              cObjNum = 1
              wrap = <li>|</li>
              1 = TEXT
              1 {
                current = 1
                filelink {
                 labelStdWrap.cObject = RECORDS
                 labelStdWrap.cObject {
                 source = {GPvar: tx_browser_pi1 | showUid}
                 source.insertData = 1
                 tables = tx_ipjjdocs_main
                 conf.tx_ipjjdocs_main >
                 conf.tx_ipjjdocs_main = TEXT
                 conf.tx_ipjjdocs_main.field = filescaption
                 }
               }
                target = _blank
                //path = uploads/tx_ipjjdocs/
                path =
	         icon = 1
	         icon.wrap = |
	         icon_link = 1
	         size = 1
	         size.bytes = 1
                 size.bytes.labels = Byte| KB| MB| GB
                 size.wrap = (|)
              }
            }
         }
        }

But the last problem is, i have to "split" the values (',' separated for eg.), but it doesn't work.. maybe because there is an other "split" option before ?
Something like:
TYPOSCRIPT
conf.tx_ipjjdocs_main.listNum.split {
token = ,
cObjNum = 1
}

but only the first one is taken. All the "files" have the same name as the first.
Any idea where i'm wrong ?

Thks in advance for your help,
Sylv1
Verfasst am: 23. 06. 2011 [12:14]
sylv1
sylvain hess
Dabei seit: 22.06.2011
Beiträge: 17
right, this is the final code, if it can help somebody
TYPOSCRIPT
files = TEXT
        files {
            if {
            	isTrue = ###TX_IPJJDOCS_MAIN.FILES###
            }         
            wrap = <ul>|</ul>
            split {
              token = ,
              cObjNum = 1
              wrap = <li>|</li>
              1 = TEXT
              1 {
                current = 1
                filelink {
                 labelStdWrap.cObject = RECORDS
                 labelStdWrap.cObject {
                 source = {GPvar: tx_browser_pi1 | showUid}
                 source.insertData = 1
                 tables = tx_ipjjdocs_main
                 conf.tx_ipjjdocs_main >
                 conf.tx_ipjjdocs_main = TEXT
                 conf.tx_ipjjdocs_main.field = filescaption
                 conf.tx_ipjjdocs_main.split {
              	  token.char = 10
              	  returnKey.data = register:SPLIT_COUNT
           	 }
                }
               }
                target = _blank
                //path = uploads/tx_ipjjdocs/
                path =
	         icon = 1
	         icon.wrap = |
	         icon_link = 1
	         size = 1
	         size.bytes = 1
                 size.bytes.labels = Byte| KB| MB| GB
                 size.wrap = (|)
              }
            }
         }
        }


Nice day to all and thks Ivo for your help ;]



Powered by TYPO3 und mm_forum Extension

  • Inhalt als PDF-Datei herunterladen
  • Optimierter Druck