[TYPO3-english] include external txt file with typoscript?

Sebastian Michaelsen sebastiangebhard at hoch2.de
Fri Jun 11 11:55:29 CEST 2010


Am 11.06.10 11:42, schrieb messsi messsi messsi:
>
> Hi list,
>
> I have an idea but I don't know if typoscript is capable of doing this.
>
> I use Skype and I want people to know my status in plain text. I found this: http://mystatus.skype.com/yourusername.txt and it works perfectly.
> Now I want this external txt file (http://mystatus.skype.com/username.txt) to be included in my layout, so I want a marker which I can use in the layout of my website.
>
> So I could have MYUSERNAME (###marker###) and the end result should be MYUSERNAME (Online)
>
> Is it possible to do this with typoscript?
No, not with a TypoScript-Only Solution. To read the external file you 
need PHP Code. You could invoke a PHP-Script with a USER Object

includeLibs.skypeStatus = fileadmin/php/userSkypeStatus.php
page.10.marks{
   SKYPESTATUS = USER
   SKYPESTATUS.userFunc = user_skypeStatus->main
   SKYPESTATUS.readfile = http://mystatus.skype.com/username.txt
}

Hope that helps,

Sebastian
>
> Thanks in advance! :-) 		 	   		
> _________________________________________________________________
> Alles wat je wilt weten over Windows 7, en meer !
> http://www.windows.nl/windows7



More information about the TYPO3-english mailing list