Re: [TYPO3-english] Typoscript in a file
Am 14.03.2011 16:00, schrieb Tomasz Melcer: On 14.03.2011 14:06, Tomas Mrozek wrote: Main disadvantage is that you're not able to use T3editor with syntax coloring... ...while the advantage is that you use full scale text editor with syntax coloring plus much much more. ;-) Yes... as long as you have syntax coloring scheme. I found nothing for vim. So googling for typo3 vim syntax file shows (German only - sorry): http://www.tugle.de/know_how/typo3_tutorials/typoscript_komfortabel_editieren/syntax_highlighting_mit_gvim.html But for me it is still much easier to edit, I got so much used to vim that I tend to write :wq everywhere. Me, too :) HTH Falko ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
For the ones that were not able to understand how to use TS in a file instead that in the DB I just have found this: http://jasonlefkowitz.net/2007/01/easier_typoscri/ It suggests also a mixed way, using external editors through a Firefox add on, nut I think this has been already made old by the new editor in Typo3 available since 4.4.x. But is there an english version of this link? http://www.typo3.net/forum/beitraege/thema/39250/ Il 14/03/2011 16.04, Tomasz Melcer ha scritto: On 13.03.2011 23:24, Ivano Luberti wrote: If I have well understood you cannot have different templates in different sub trees? Do you mean that you have several TS files one for each template record? My webpage isn't complicated enough for this to be required -- one 10kB TS file, including lots of comments. But I imagine having multiple files with page-specific TS included in relevant parts would be next step for me. I also still use config editor for site-specific and page-specific configuration. Tomasz Melcer ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
W dniu 11-03-13 19:13, Tomasz Melcer pisze: Hello, I am now writing all my TypoScript in a file, and my template record is just including this file. This makes me easier to coordinate with changes to html/css template, as I can keep everything in Subversion. Are there any disadvantages of this method compared to keeping TS in the database? Thanks, Tomasz Melcer Main disadvantage is that you're not able to use T3editor with syntax coloring... so... if you feel pretty well with TSref it's no problem. This model is quite good, when there is some team that should have 'mirrored' configuration for their local - development environments. On the other hand, when I'm working alone on projects I prefer to store templates in DB. Finally, in case of subtemplates (that Ivano is asking in some post below) there is possible to use TS conditions to make individual configuration on the chosen part of tree only. ie.: [PIDinRootline = 123, 345] page.10 page.10 plugin.tx_someplugin_pi1 page.10.code = SINGLE [global] -- Marcus 'biesior' Biesioroff http://www.typo3.pl | TYPO3 Polish Community T3CI ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
Am 14.03.2011 10:34, schrieb Marcus 'biesior' Biesioroff: W dniu 11-03-13 19:13, Tomasz Melcer pisze: Hello, I am now writing all my TypoScript in a file, and my template record is just including this file. This makes me easier to coordinate with changes to html/css template, as I can keep everything in Subversion. Are there any disadvantages of this method compared to keeping TS in the database? Thanks, Tomasz Melcer Main disadvantage is that you're not able to use T3editor with syntax coloring... so... if you feel pretty well with TSref it's no problem. Since TYPO3 4.5.x its possible to edit those linked files in t3editor :) This model is quite good, when there is some team that should have 'mirrored' configuration for their local - development environments. On the other hand, when I'm working alone on projects I prefer to store templates in DB. Finally, in case of subtemplates (that Ivano is asking in some post below) there is possible to use TS conditions to make individual configuration on the chosen part of tree only. ie.: [PIDinRootline = 123, 345] page.10 page.10 plugin.tx_someplugin_pi1 page.10.code = SINGLE [global] -- Regards, Josef Florian Glatz ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
Main disadvantage is that you're not able to use T3editor with syntax coloring... ...while the advantage is that you use full scale text editor with syntax coloring plus much much more. ;-) Tomas Mrozek ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
On 14.03.2011 14:06, Tomas Mrozek wrote: Main disadvantage is that you're not able to use T3editor with syntax coloring... ...while the advantage is that you use full scale text editor with syntax coloring plus much much more. ;-) Yes... as long as you have syntax coloring scheme. I found nothing for vim. But for me it is still much easier to edit, I got so much used to vim that I tend to write :wq everywhere. Thanks for all your answers, Tomasz Melcer ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
On 13.03.2011 23:24, Ivano Luberti wrote: If I have well understood you cannot have different templates in different sub trees? Do you mean that you have several TS files one for each template record? My webpage isn't complicated enough for this to be required -- one 10kB TS file, including lots of comments. But I imagine having multiple files with page-specific TS included in relevant parts would be next step for me. I also still use config editor for site-specific and page-specific configuration. Tomasz Melcer ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
On 14.03.2011 17:36, Tomas Mrozek wrote: Yes... as long as you have syntax coloring scheme. I found nothing for vim. ... I got so much used to vim... Plus one more reason to create your own coloring scheme then. :-) I know there's one for PSPad and Notepad++ so you can use it as a basis for the vim coloring scheme. If I end up working more with TS, I'll probably do that. Anyway, thanks for all the help. Tomasz Melcer ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] Typoscript in a file
Hello, I am now writing all my TypoScript in a file, and my template record is just including this file. This makes me easier to coordinate with changes to html/css template, as I can keep everything in Subversion. Are there any disadvantages of this method compared to keeping TS in the database? Thanks, Tomasz Melcer ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
Hi, On 13-3-2011 19:13, Tomasz Melcer wrote: Are there any disadvantages of this method compared to keeping TS in the database? Two: - when saving the TS in a file the configuration cache is not automatically cleared (maybe with the new t3editor in 4.5 it is cleared?) - TS in a file is limited to 100,000 bytes per file (which is quite a lot actually) -- Kind regards / met vriendelijke groet, Jigal van Hemert. ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
Re: [TYPO3-english] Typoscript in a file
If I have well understood you cannot have different templates in different sub trees? Do you mean that you have several TS files one for each template record? Il 13/03/2011 19.13, Tomasz Melcer ha scritto: Hello, I am now writing all my TypoScript in a file, and my template record is just including this file. This makes me easier to coordinate with changes to html/css template, as I can keep everything in Subversion. Are there any disadvantages of this method compared to keeping TS in the database? Thanks, Tomasz Melcer ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english -- == dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it == ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
[TYPO3-english] typoscript to check file existence?
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 ___ TYPO3-english mailing list TYPO3-english@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english