{"id":45,"date":"2010-02-23T13:52:55","date_gmt":"2010-02-23T13:52:55","guid":{"rendered":"https:\/\/www.taywa.ch\/blog\/?p=45"},"modified":"2010-02-24T16:09:55","modified_gmt":"2010-02-24T16:09:55","slug":"fur-ajax-nur-teilinhalte-ohne-navigation-und-header-ausgeben","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/typo3\/fur-ajax-nur-teilinhalte-ohne-navigation-und-header-ausgeben\/","title":{"rendered":"F\u00fcr Ajax nur Teilinhalte ohne Navigation und Header ausgeben"},"content":{"rendered":"<p>F\u00fcr typo3 Webseiten,  welche Inhalte dynamisch durch JavaScript laden, ist es immer wieder n\u00f6tig, nur einen Teil einer Seite auszugeben, hier zum Beispiel nur der Inhalt aus der &#8222;Normal&#8220; Spalte:<\/p>\n<div class=\"typoscript dean_ch\"><span class=\"co1\">\/\/get variable c ist gleich 1<\/span><br \/>\n<span class=\"br0\">&#91;<\/span><span class=\"re4\">globalVar<\/span> <span class=\"sy0\">=<\/span> GP<span class=\"sy0\">:<\/span>c <span class=\"sy0\">=<\/span> <span class=\"nu0\">1<\/span><span class=\"br0\">&#93;<\/span><\/p>\n<p><span class=\"re5\">page<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/setup\/page\/\"><span class=\"kw3\">PAGE<\/span><\/a><br \/>\n<span class=\"re5\">page<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"re5\">config<\/span><span class=\"sy0\">.<\/span>disableAllHeaderCode <span class=\"sy0\">=<\/span> <span class=\"nu0\">1<\/span><br \/>\n&nbsp; &nbsp; <span class=\"re5\">config<\/span><span class=\"sy0\">.<\/span>metaCharset <span class=\"sy0\">=<\/span> UTF-<span class=\"nu0\">8<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><\/p>\n<p><span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>10 <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/cobject\/coa\/\"><span class=\"kw4\">COA<\/span><\/a><br \/>\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>10 <span class=\"sy0\">&lt;<\/span> &nbsp;<span class=\"re5\">styles<\/span><span class=\"sy0\">.<\/span>content<span class=\"sy0\">.<\/span>get<br \/>\n<span class=\"co1\">\/\/ supress feEditAdvanced-firstWrapper &#8211; Bug in typo3 4.3.1<\/span><br \/>\n<span class=\"re5\">page<\/span><span class=\"sy0\">.<\/span>10<span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/stdwrap\/\"><span class=\"kw2\">stdWrap<\/span><\/a><span class=\"sy0\">.<\/span>prepend <span class=\"sy0\">&gt;<\/span> <br \/>\n<span class=\"br0\">&#91;<\/span><span class=\"re4\">global<\/span><span class=\"br0\">&#93;<\/span><\/div>\n<p>Diese Seite kann angefordert werden mit http:\/\/www.example.com\/index.php?=10&#038;c=1. Dies Url wird nat\u00fcrlich nicht so im Browser dargestellt, sonder per Javascript angefordert und in einer schon geladenen Webseite angezeigt.<\/p>\n<p>Das Ganze  kann auch ohne Condition gemacht werden \u00fcber den Seiten-Typ<\/p>\n<div class=\"typoscript dean_ch\">\n<p>contentonly <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/setup\/page\/\"><span class=\"kw3\">PAGE<\/span><\/a><br \/>\ncontentonly <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; typeNum <span class=\"sy0\">=<\/span> <span class=\"nu0\">91<\/span><br \/>\n&nbsp; &nbsp; <span class=\"re5\">config<\/span><span class=\"sy0\">.<\/span>disableAllHeaderCode <span class=\"sy0\">=<\/span> <span class=\"nu0\">1<\/span><br \/>\n&nbsp; &nbsp; <span class=\"co1\">\/\/config.additionalHeaders = Content-type: text\/html; charset=utf-8<\/span><br \/>\n&nbsp; &nbsp; <span class=\"re5\">config<\/span><span class=\"sy0\">.<\/span>metaCharset <span class=\"sy0\">=<\/span> UTF-<span class=\"nu0\">8<\/span><\/p>\n<p>&nbsp; &nbsp; <span class=\"nu0\">10<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/cobject\/coa\/\"><span class=\"kw4\">COA<\/span><\/a><br \/>\n&nbsp; &nbsp; <span class=\"nu0\">10<\/span> <span class=\"sy0\">&lt;<\/span> &nbsp;<span class=\"re5\">styles<\/span><span class=\"sy0\">.<\/span>content<span class=\"sy0\">.<\/span>get<br \/>\n&nbsp; &nbsp; <span class=\"nu0\">10<\/span><span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/stdwrap\/\"><span class=\"kw2\">stdWrap<\/span><\/a><span class=\"sy0\">.<\/span>prepend <span class=\"sy0\">&gt;<\/span> <span class=\"co1\">\/\/ supress feEditAdvanced-firstWrapper &#8211; Bug in typo3 4.3.1<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><br \/>\n&nbsp;<\/div>\n<p> http:\/\/www.example.com\/index.php?=10&#038;type=91 zeigt nun den Content alleine an.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>F\u00fcr typo3 Webseiten, welche Inhalte dynamisch durch JavaScript laden, ist es immer wieder n\u00f6tig, nur einen Teil einer Seite auszugeben, hier zum Beispiel nur der Inhalt aus der &#8222;Normal&#8220; Spalte: \/\/get variable c ist gleich 1 &#91;globalVar = GP:c = 1&#93; page = PAGE page &#123; &nbsp; &nbsp; config.disableAllHeaderCode = 1 &nbsp; &nbsp; config.metaCharset =<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,4],"tags":[40,39,183,37,38,43],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-typo3","category-typoscript","tag-ajax","tag-ausgeben","tag-js","tag-teil","tag-tt_content","tag-type"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":15,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions\/65"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}