{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"TypoScript: include .typoscript file for certain typeNum","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/857 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"857\">\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\">\/**\n * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2014 Benny Baumann\n * (http:\/\/qbnz.com\/highlighter\/ and http:\/\/geshi.org\/)\n *\/\n.typoscript .de1, .typoscript .de2 {font: normal normal 1em\/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}\n.typoscript  {font-family:monospace;}\n.typoscript .imp {font-weight: bold; color: red;}\n.typoscript li, .typoscript .li1 {color: #DDD;}\n.typoscript .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}\n.typoscript .kw1 {color: #ed7d14;}\n.typoscript .kw2 {font-weight: bold;}\n.typoscript .kw3 {color: #990000; font-weight: bold;}\n.typoscript .kw4 {color: #990000; font-weight: bold;}\n.typoscript .kw5 {color: #990000; font-weight: bold;}\n.typoscript .kw6 {color: #990000; font-weight: bold;}\n.typoscript .kw7 {color: #990000; font-weight: bold;}\n.typoscript .kw8 {font-weight: bold;}\n.typoscript .kw9 {color: #990000; font-weight: bold;}\n.typoscript .co1 {color: #aaa; font-style: italic;}\n.typoscript .co2 {color: #aaa; font-style: italic;}\n.typoscript .coMULTI {color: #aaa; font-style: italic;}\n.typoscript .br0 {color: #009900;}\n.typoscript .sy0 {color: #339933; font-weight: bold;}\n.typoscript .sy1 {color: #009900; font-weight: bold;}\n.typoscript .st0 {color: #ac14aa;}\n.typoscript .nu0 {color: #cc0000;}\n.typoscript .me1 {color: #0000e0; font-weight: bold;}\n.typoscript .me2 {color: #0000e0; font-weight: bold;}\n.typoscript .re0 {color: #009900;}\n.typoscript .re1 {color: #009900; font-weight: bold;}\n.typoscript .re2 {color: #3366CC;}\n.typoscript .re3 {color: #000066; font-weight: bold;}\n.typoscript .re4 {color: #ed7d14;}\n.typoscript .re5 {color: #000066; font-weight: bold;}\n.typoscript .re6 {color: #009900;}\n.typoscript .re7 {color: #3366CC;}\n.typoscript span.xtra { display:block; }\n<\/style><div class=\"code\"><table class=\"typoscript\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\"><span class=\"co2\"># @import in TYPO3 v11 does not support conditions<\/span>\n<span class=\"co2\"># we cannot use request.getQueryParams() since that does not work with PageTypeSuffix<\/span>\n<span class=\"co2\"># https:\/\/docs.typo3.org\/m\/typo3\/reference-coreapi\/11.5\/en-us\/Configuration\/TypoScriptSyntax\/Syntax\/Includes.html<\/span>\n&#160;\n<span class=\"sy0\">&lt;<\/span>INCLUDE_TYPOSCRIPT<span class=\"sy0\">:<\/span> source<span class=\"sy0\">=<\/span>&quot;<a href=\"http:\/\/documentation.typo3.org\/documentation\/tsref\/cobjects\/FILE\/\"><span class=\"kw4\">FILE<\/span><\/a><span class=\"sy0\">:<\/span>EXT<span class=\"sy0\">:<\/span>example<span class=\"sy0\">\/<\/span>Configuration<span class=\"sy0\">\/<\/span>TypoScript<span class=\"sy0\">\/<\/span>json<span class=\"sy0\">.<\/span>typoscript&quot; condition<span class=\"sy0\">=<\/span>&quot;<span class=\"br0\">&#91;<\/span>getTSFE<span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span> <span class=\"sy0\">&amp;&amp;<\/span> getTSFE<span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">.<\/span>type <span class=\"sy0\">==<\/span> <span class=\"nu0\">2<\/span><span class=\"br0\">&#93;<\/span>&quot;<span class=\"sy0\">&gt;<\/span><\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/857\/rev-raw\/844923add65210cdefb9c4f1eff4a6c9a19a6571\/typo3-v11.typoscript\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/857#typo3-v11.typoscript\">typo3-v11.typoscript<\/a>\n <\/div>\n<\/div>\n    <div class=\"phork-file\">\n <div class=\"phork-content\">\n  <style type=\"text\/css\">\/**\n * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2014 Benny Baumann\n * (http:\/\/qbnz.com\/highlighter\/ and http:\/\/geshi.org\/)\n *\/\n.typoscript .de1, .typoscript .de2 {font: normal normal 1em\/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}\n.typoscript  {font-family:monospace;}\n.typoscript .imp {font-weight: bold; color: red;}\n.typoscript li, .typoscript .li1 {color: #DDD;}\n.typoscript .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}\n.typoscript .kw1 {color: #ed7d14;}\n.typoscript .kw2 {font-weight: bold;}\n.typoscript .kw3 {color: #990000; font-weight: bold;}\n.typoscript .kw4 {color: #990000; font-weight: bold;}\n.typoscript .kw5 {color: #990000; font-weight: bold;}\n.typoscript .kw6 {color: #990000; font-weight: bold;}\n.typoscript .kw7 {color: #990000; font-weight: bold;}\n.typoscript .kw8 {font-weight: bold;}\n.typoscript .kw9 {color: #990000; font-weight: bold;}\n.typoscript .co1 {color: #aaa; font-style: italic;}\n.typoscript .co2 {color: #aaa; font-style: italic;}\n.typoscript .coMULTI {color: #aaa; font-style: italic;}\n.typoscript .br0 {color: #009900;}\n.typoscript .sy0 {color: #339933; font-weight: bold;}\n.typoscript .sy1 {color: #009900; font-weight: bold;}\n.typoscript .st0 {color: #ac14aa;}\n.typoscript .nu0 {color: #cc0000;}\n.typoscript .me1 {color: #0000e0; font-weight: bold;}\n.typoscript .me2 {color: #0000e0; font-weight: bold;}\n.typoscript .re0 {color: #009900;}\n.typoscript .re1 {color: #009900; font-weight: bold;}\n.typoscript .re2 {color: #3366CC;}\n.typoscript .re3 {color: #000066; font-weight: bold;}\n.typoscript .re4 {color: #ed7d14;}\n.typoscript .re5 {color: #000066; font-weight: bold;}\n.typoscript .re6 {color: #009900;}\n.typoscript .re7 {color: #3366CC;}\n.typoscript span.xtra { display:block; }\n<\/style><div class=\"code\"><table class=\"typoscript\"><tbody><tr class=\"li1\"><td class=\"ln\"><pre class=\"de1\">1\n2\n3\n4\n5\n6\n7\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\"><span class=\"co2\"># @import in TYPO3 v12 supports conditions<\/span>\n<span class=\"co2\"># https:\/\/docs.typo3.org\/m\/typo3\/reference-coreapi\/12.4\/en-us\/Configuration\/TypoScript\/Syntax\/FileImports\/Index.html<\/span>\n<span class=\"co2\"># https:\/\/docs.typo3.org\/c\/typo3\/cms-core\/main\/en-us\/Changelog\/12.0\/Feature-97816-TypoScriptSyntaxImprovements.html<\/span><span class=\"co2\">#import-in-conditions<\/span>\n&#160;\n<span class=\"br0\">&#91;<\/span>getTSFE<span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span> <span class=\"sy0\">&amp;&amp;<\/span> getTSFE<span class=\"br0\">&#40;<\/span><span class=\"br0\">&#41;<\/span><span class=\"sy0\">.<\/span>type <span class=\"sy0\">==<\/span> <span class=\"nu0\">2<\/span><span class=\"br0\">&#93;<\/span>\n&#160; &#160; @import 'EXT<span class=\"sy0\">:<\/span>example<span class=\"sy0\">\/<\/span>Configuration<span class=\"sy0\">\/<\/span>TypoScript<span class=\"sy0\">\/<\/span>json<span class=\"sy0\">.<\/span>typoscript'\n<span class=\"br0\">&#91;<\/span><span class=\"re4\">end<\/span><span class=\"br0\">&#93;<\/span><\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/857\/rev-raw\/844923add65210cdefb9c4f1eff4a6c9a19a6571\/typo3-v12.typoscript\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/857#typo3-v12.typoscript\">typo3-v12.typoscript<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
