{"type":"rich","version":"1.0","provider_name":"phorkie","provider_url":"https:\/\/p.cweiske.de\/","title":"TypoScript: Get page typeNum","author_name":"Christian Weiske","cache_age":86400,"width":900,"height":900,"html":"<!-- embedding all files of https:\/\/p.cweiske.de\/856 -->\n<link rel=\"stylesheet\" href=\"https:\/\/p.cweiske.de\/css\/embed.css\"\/>\n<div class=\"phork\" id=\"856\">\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\n8\n9\n10\n<\/pre><\/td><td class=\"de1\"><pre class=\"de1\"><span class=\"co2\"># only works on URLs with GET parameter ?type=2, not on \/data.json PageTypeSuffix<\/span>\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>10 <span class=\"sy0\">=<\/span> <a href=\"http:\/\/documentation.typo3.org\/documentation\/tsref\/cobjects\/TEXT\/\"><span class=\"kw4\">TEXT<\/span><\/a>\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>10<span class=\"sy0\">.<\/span>data <span class=\"sy0\">=<\/span> GP<span class=\"sy0\">:<\/span>type\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>10<span class=\"sy0\">.<\/span>wrap <span class=\"sy0\">=<\/span> type value<span class=\"sy0\">:<\/span> <span class=\"sy0\">|&lt;<\/span>br<span class=\"sy0\">\/&gt;<\/span>\n&#160;\n<span class=\"co2\"># works on both URLs with GET parameter ?type=2 and on speaking URLs like \/data.json PageTypeSuffix<\/span>\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>11 <span class=\"sy0\">=<\/span> <a href=\"http:\/\/documentation.typo3.org\/documentation\/tsref\/cobjects\/TEXT\/\"><span class=\"kw4\">TEXT<\/span><\/a>\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>11<span class=\"sy0\">.<\/span>data <span class=\"sy0\">=<\/span> TSFE<span class=\"sy0\">:<\/span>type\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>11<span class=\"sy0\">.<\/span>wrap <span class=\"sy0\">=<\/span> TSFE<span class=\"sy0\">:<\/span>type value<span class=\"sy0\">:<\/span> <span class=\"sy0\">|<\/span>\n&#160;<\/pre><\/td><\/tr><\/tbody><\/table><\/div>\n <\/div>\n <div class=\"phork-meta\">\n  <a href=\"https:\/\/p.cweiske.de\/856\/rev-raw\/0bba9dec4c0b76a9b19aee817d9bf0a9be36b3e6\/setup.typoscript\" style=\"float: right\">view raw source<\/a>\n  <a href=\"https:\/\/p.cweiske.de\/856#setup.typoscript\">setup.typoscript<\/a>\n <\/div>\n<\/div>\n<\/div>\n"}
