[TYPO3-english] typoscript to check file existence?

Martin Bless m.bless at gmx.de
Tue Apr 13 10:28:31 CEST 2010


What the best typoscript to check if a file exists? I'm looking for
something like

  501.jsfile.if.isTrue.cObject = TEXT
  501.jsfile.if.isTrue.cObject.value = dummy
  501.jsfile.if.isTrue.cObject.typolink.parameter =fileadmin/script.js
  501.jsfile.if.isTrue.cObject.typolink.returnLast = url

Unfortunalety typolink will always return "fileadmin/script.js" no
matter if the file does exist or not

Have a nice day ...

Martin

-- 
http://mbless.de


More information about the TYPO3-english mailing list