{"id":226,"date":"2010-09-16T07:49:24","date_gmt":"2010-09-16T07:49:24","guid":{"rendered":"https:\/\/www.taywa.ch\/blog\/?p=226"},"modified":"2010-09-16T16:26:30","modified_gmt":"2010-09-16T16:26:30","slug":"typolink-insert-records-inhaltselementen-ctype-shortcut-typoscript-anpassen","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/typo3\/typoscript\/typolink-insert-records-inhaltselementen-ctype-shortcut-typoscript-anpassen\/","title":{"rendered":"typolink bei &#8222;Insert Records&#8220; Inhaltselementen (cType: shortcut) per Typoscript anpassen"},"content":{"rendered":"<p><strong>Problem:<\/strong> Die Inhalte, welche \u00fcber &#8222;Insert Records&#8220; Content Elements (cType: &#8222;shortcut&#8220;) auf einer Typo3 Seite gezeigt werden, enthalten Links oder stdWrap&#8217;s, die in diesen Kontext nicht hineinpassen. In unserem Fall handelte es sich um eine Typo3 multisite Installation mit mehreren subdomains in der die shortcut Inhaltselemente auf die Hauptdomain verweisen sollen.<\/p>\n<p><strong>L\u00f6sung:<\/strong> Mit etwas TypoScript kann man die einzelenen Inhaltstypen vom &#8222;shortcut&#8220; Content Element umkonfigurieren. zB:<\/p>\n<div class=\"typoscript dean_ch\"><span class=\"co2\">#basis-url und titel text der Links anpassen:<\/span><br \/>\n#<br \/>\n<span class=\"co2\">#..bei &quot;Text mit Bild&quot;:<\/span><br \/>\n<span class=\"re3\">tt_content<\/span><span class=\"sy0\">.<\/span>shortcut<span class=\"sy0\">.<\/span>20<span class=\"sy0\">.<\/span>0<span class=\"sy0\">.<\/span>conf<span class=\"sy0\">.<\/span>tt_content<span class=\"sy0\">.<\/span>textpic<span class=\"sy0\">.<\/span>20<span class=\"sy0\">.<\/span>text<span class=\"sy0\">.<\/span>20<span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/parsefunc\/\"><span class=\"kw2\">parseFunc<\/span><\/a><span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/tags\/\"><span class=\"kw2\">tags<\/span><\/a><span class=\"sy0\">.<\/span>link<span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/typolink\/\"><span class=\"kw2\">typolink<\/span><\/a> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; parameter<span class=\"sy0\">.<\/span>wrap <span class=\"sy0\">=<\/span> http<span class=\"sy0\">:<\/span><span class=\"co1\">\/\/www.hauptseite.ch\/?|<\/span><br \/>\n&nbsp; &nbsp; ATagParams <span class=\"sy0\">=<\/span> title<span class=\"sy0\">=<\/span>&quot;Mehr dazu bei hauptseite<span class=\"sy0\">.<\/span>ch&quot; <br \/>\n<span class=\"br0\">&#125;<\/span><br \/>\n#<br \/>\n<span class=\"co2\">#&#8230; und &quot;text&quot;:<\/span><br \/>\n<span class=\"re3\">tt_content<\/span><span class=\"sy0\">.<\/span>shortcut<span class=\"sy0\">.<\/span>20<span class=\"sy0\">.<\/span>0<span class=\"sy0\">.<\/span>conf<span class=\"sy0\">.<\/span>tt_content<span class=\"sy0\">.<\/span>text<span class=\"sy0\">.<\/span>20<span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/parsefunc\/\"><span class=\"kw2\">parseFunc<\/span><\/a><span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/tags\/\"><span class=\"kw2\">tags<\/span><\/a><span class=\"sy0\">.<\/span>link<span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/typolink\/\"><span class=\"kw2\">typolink<\/span><\/a> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; parameter<span class=\"sy0\">.<\/span>wrap <span class=\"sy0\">=<\/span> http<span class=\"sy0\">:<\/span><span class=\"co1\">\/\/www.hauptseite.ch\/?|<\/span><br \/>\n&nbsp; &nbsp; ATagParams <span class=\"sy0\">=<\/span> title<span class=\"sy0\">=<\/span>&quot;Mehr dazu bei hauptseite<span class=\"sy0\">.<\/span>ch&quot; <br \/>\n<span class=\"br0\">&#125;<\/span><\/div>\n<p>Auf \u00e4hnliche Weise k\u00f6nnte man zB die Bildgr\u00f6sse, bzw Bildbreite von Bildern innerhalb der Insert Record Inhalten ver\u00e4ndern:<\/p>\n<div class=\"typoscript dean_ch\">\n<span class=\"co2\"># Bildstrecken, die per &quot;Datensatz Einf\u00fcgen&quot; Content Elementen aus einem zentralen<\/span><br \/>\n<span class=\"co2\"># Pool genommen werden, speziell behandeln:<\/span><br \/>\n#<br \/>\n<span class=\"re3\">tt_content<\/span><span class=\"sy0\">.<\/span>shortcut<span class=\"sy0\">.<\/span>20<span class=\"sy0\">.<\/span>0<span class=\"sy0\">.<\/span>conf<span class=\"sy0\">.<\/span>tt_content<span class=\"sy0\">.<\/span>image<span class=\"sy0\">.<\/span>20<span class=\"sy0\">.<\/span>maxW <span class=\"sy0\">=<\/span> 200c;<br \/>\n&nbsp;<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Problem: Die Inhalte, welche \u00fcber &#8222;Insert Records&#8220; Content Elements (cType: &#8222;shortcut&#8220;) auf einer Typo3 Seite gezeigt werden, enthalten Links oder stdWrap&#8217;s, die in diesen Kontext nicht hineinpassen. In unserem Fall handelte es sich um eine Typo3 multisite Installation mit mehreren subdomains in der die shortcut Inhaltselemente auf die Hauptdomain verweisen sollen. L\u00f6sung: Mit etwas TypoScript<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[16,34,180,181],"class_list":["post-226","post","type-post","status-publish","format-standard","hentry","category-typoscript","tag-imagesize","tag-multi-domain","tag-typo3","tag-typoscript"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/226","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/comments?post=226"}],"version-history":[{"count":6,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions"}],"predecessor-version":[{"id":242,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/226\/revisions\/242"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}