{"id":565,"date":"2013-06-10T12:00:05","date_gmt":"2013-06-10T12:00:05","guid":{"rendered":"https:\/\/www.taywa.ch\/blog\/?p=565"},"modified":"2014-07-02T09:59:00","modified_gmt":"2014-07-02T09:59:00","slug":"parallax-scrolling-tcm-akupunktur-website-typo3-helen-lyu-abt","status":"publish","type":"post","link":"https:\/\/www.taywa.ch\/blog\/typo3\/typoscript\/parallax-scrolling-tcm-akupunktur-website-typo3-helen-lyu-abt\/","title":{"rendered":"Parallax Scrolling f\u00fcr die TCM Akupunktur Website mit Typo3 von Helen Lyu Abt"},"content":{"rendered":"<p>F\u00fcr die TCM Therapeutin Helen Lyu Abt hat Taywa eine Akupunktur Website mit Parallax Scrolling Responsive Design programmiert. Die Seite \u00fcber <a href=\"http:\/\/www.tcm-lyu-abt.ch\/tcm\/\" title=\"Traditionelle Chinesische Medizin\">Akupunktur und Moxibustion<\/a> verwendet grosse Hintergrundbilder f\u00fcr den Scrolling Effekt, welche \u00fcber das Media-Feld eingepflegt werden k\u00f6nnen:<\/p>\n<p><strong>F\u00fcr Typo3 4.5-4.7<\/strong><\/p>\n<div class=\"typoscript dean_ch\"><span class=\"co1\">\/\/ TS SETUP <\/span><br \/>\n<span class=\"co1\">\/\/set cUID from default lang if content is translated<\/span><br \/>\n<span class=\"re3\">tt_content<\/span><span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/stdwrap\/\"><span class=\"kw2\">stdWrap<\/span><\/a><span class=\"sy0\">.<\/span>outerWrap<span class=\"sy0\">.<\/span>cObject <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/cobject\/coa\/\"><span class=\"kw4\">COA<\/span><\/a><br \/>\n<span class=\"re3\">tt_content<\/span><span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/stdwrap\/\"><span class=\"kw2\">stdWrap<\/span><\/a><span class=\"sy0\">.<\/span>outerWrap<span class=\"sy0\">.<\/span>cObject<span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"nu0\">10<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/cobject\/text\/\"><span class=\"kw4\">TEXT<\/span><\/a><br \/>\n&nbsp; &nbsp; <span class=\"nu0\">10<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; insertData <span class=\"sy0\">=<\/span> <span class=\"nu0\">1<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; value <span class=\"sy0\">=<\/span> <span class=\"sy0\">&lt;<\/span>div id<span class=\"sy0\">=<\/span>&quot;c<span class=\"br0\">&#123;<\/span>field<span class=\"sy0\">:<\/span>l18n_parent<span class=\"br0\">&#125;<\/span>&quot; class<span class=\"sy0\">=<\/span>&quot;contwrap&quot; <br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; override <span class=\"sy0\">=<\/span> <span class=\"sy0\">&lt;<\/span>div id<span class=\"sy0\">=<\/span>&quot;c<span class=\"br0\">&#123;<\/span>field<span class=\"sy0\">:<\/span>uid<span class=\"br0\">&#125;<\/span>&quot; class<span class=\"sy0\">=<\/span>&quot;contwrap&quot; <br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; override<span class=\"sy0\">.<\/span><a href=\"http:\/\/www.typo3.net\/tsref\/functions\/if\/\"><span class=\"kw2\">if<\/span><\/a><span class=\"sy0\">.<\/span>isFalse<span class=\"sy0\">.<\/span>field <span class=\"sy0\">=<\/span> l18n_parent<br \/>\n&nbsp; &nbsp; <span class=\"br0\">&#125;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"nu0\">20<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/cobject\/text\/\"><span class=\"kw4\">TEXT<\/span><\/a><br \/>\n&nbsp; &nbsp; <span class=\"nu0\">20<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; <span class=\"re5\">field<\/span> <span class=\"sy0\">=<\/span> media<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; <a href=\"http:\/\/www.typo3.net\/tsref\/functions\/stdwrap\/\"><span class=\"kw2\">stdWrap<\/span><\/a> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class=\"co1\">\/\/insertData = 1<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; required <span class=\"sy0\">=<\/span> <span class=\"nu0\">1<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; wrap <span class=\"sy0\">=<\/span> style<span class=\"sy0\">=<\/span>&quot;background-image<span class=\"sy0\">:<\/span>url<span class=\"br0\">&#40;<\/span><span class=\"sy0\">\/<\/span>uploads<span class=\"sy0\">\/<\/span>media<span class=\"sy0\">\/<\/span> <span class=\"sy0\">|<\/span> <span class=\"br0\">&#41;<\/span>;&quot;<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; <span class=\"br0\">&#125;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"br0\">&#125;<\/span><\/p>\n<p>&nbsp; &nbsp; <span class=\"nu0\">30<\/span> <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/cobject\/text\/\"><span class=\"kw4\">TEXT<\/span><\/a><br \/>\n&nbsp; &nbsp; <span class=\"nu0\">30<\/span><span class=\"sy0\">.<\/span>value <span class=\"sy0\">=<\/span> <span class=\"sy0\">&gt;<\/span> <span class=\"sy0\">|<\/span> <span class=\"re2\">&lt;\/div&gt;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><\/div>\n<p><strong>F\u00fcr typo3 6.0-6.2 (Danke f\u00fcr die L\u00f6sung an &#8222;Nathalie&#8220; aus den Kommentaren)<\/strong><\/p>\n<div class=\"typoscript dean_ch\">&nbsp;<span class=\"br0\">&#91;<\/span><span class=\"sy0\">&#8230;<\/span><span class=\"br0\">&#93;<\/span><br \/>\n<span class=\"nu0\">20<\/span> <span class=\"sy0\">=<\/span> FILES<br \/>\n&nbsp; &nbsp; <span class=\"nu0\">20<\/span> <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; references <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; table <span class=\"sy0\">=<\/span> <span class=\"re3\">tt_content<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; uid<span class=\"sy0\">.<\/span>data <span class=\"sy0\">=<\/span> <span class=\"re5\">field<\/span> <span class=\"sy0\">=<\/span> uid<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; fieldName <span class=\"sy0\">=<\/span> media<br \/>\n&nbsp; &nbsp; <span class=\"br0\">&#125;<\/span><br \/>\n&nbsp; &nbsp; renderObj <span class=\"sy0\">=<\/span> <a href=\"http:\/\/www.typo3.net\/tsref\/cobject\/text\/\"><span class=\"kw4\">TEXT<\/span><\/a><br \/>\n&nbsp; &nbsp; renderObj <span class=\"br0\">&#123;<\/span><br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; data <span class=\"sy0\">=<\/span> <span class=\"re5\">file<\/span><span class=\"sy0\">:<\/span>current<span class=\"sy0\">:<\/span>publicUrl<br \/>\n&nbsp; &nbsp; &nbsp; &nbsp; wrap <span class=\"sy0\">=<\/span> style<span class=\"sy0\">=<\/span>&quot;background-image<span class=\"sy0\">:<\/span>url<span class=\"br0\">&#40;<\/span> <span class=\"sy0\">|<\/span> <span class=\"br0\">&#41;<\/span>;&quot;<br \/>\n&nbsp; &nbsp; <span class=\"br0\">&#125;<\/span><br \/>\n<span class=\"br0\">&#125;<\/span><br \/>\n<span class=\"br0\">&#91;<\/span><span class=\"sy0\">&#8230;<\/span><span class=\"br0\">&#93;<\/span><\/div>\n<p>Damit das media Feld dann auch im Backend bei den Text, Text mit Bild, und Bilder Inhalten erscheint, muss man noch die extTables.php erg\u00e4nzen:<\/p>\n<div class=\"php dean_ch\">t3lib_extMgm<span class=\"sy0\">::<\/span><span class=\"me2\">addToAllTCAtypes<\/span><span class=\"br0\">&#40;<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;tt_content&#8216;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;media&#8216;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;text,textpic,html,image&#8216;<\/span><span class=\"sy0\">,<\/span><br \/>\n&nbsp; &nbsp; <span class=\"st_h\">&#8218;after:header&#8216;<\/span><br \/>\n<span class=\"br0\">&#41;<\/span><span class=\"sy0\">;<\/span><\/div>\n<p>Der Effekt ist vor allem bei &#8222;<a href=\"http:\/\/www.tcm-lyu-abt.ch\/helen-lyu-abt\/\" title=\"Akupunkteurin Helen Lyu Abt\">Helen Lyu Abt<\/a>&#8220; sehr wirkungsvoll.<\/p>\n<p>Im Geiste des Responisve Design wurden f\u00fcr die Inhalte Innenabst\u00e4nde (padding) in % angegeben &#8211; horizontal wie auch vertikal. Dadurch bekommen Inhaltselemente mit Karten wie <a href=\"http:\/\/www.tcm-lyu-abt.ch\/kontakttermine\/#c34\" title=\"TCM Z\u00fcrich\">TCM Stadt Z\u00fcrich<\/a> oder <a href=\"http:\/\/www.tcm-lyu-abt.ch\/kontakttermine\/#c15\" title=\"Meilen Kanton Z\u00fcrich Akupunktur\">Akupunktur in Meilen<\/a> mehr Luft auf gr\u00f6sseren Bildschirmen. Zus\u00e4tzlich wurden Mediaqueries f\u00fcr gr\u00f6ssere Layoutspr\u00fcnge verwendet.<\/p>\n<p>Die Javascript L\u00f6sung f\u00fcr den Parallax Effekt kommt von:<br \/>http:\/\/ianlunn.co.uk\/articles\/recreate-nikebetterworld-parallax\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>F\u00fcr die TCM Therapeutin Helen Lyu Abt hat Taywa eine Akupunktur Website mit Parallax Scrolling Responsive Design programmiert. Die Seite \u00fcber Akupunktur und Moxibustion verwendet grosse Hintergrundbilder f\u00fcr den Scrolling Effekt, welche \u00fcber das Media-Feld eingepflegt werden k\u00f6nnen: F\u00fcr Typo3 4.5-4.7 \/\/ TS SETUP \/\/set cUID from default lang if content is translated tt_content.stdWrap.outerWrap.cObject =<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,101,44,4],"tags":[144,145,143,146],"class_list":["post-565","post","type-post","status-publish","format-standard","hentry","category-css","category-jquery-js","category-projekte","category-typoscript","tag-akupunktur","tag-parallax-scrolling","tag-responsive-design","tag-tcm"],"_links":{"self":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/565","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=565"}],"version-history":[{"count":8,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions"}],"predecessor-version":[{"id":568,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/posts\/565\/revisions\/568"}],"wp:attachment":[{"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/media?parent=565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/categories?post=565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.taywa.ch\/blog\/wp-json\/wp\/v2\/tags?post=565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}