2

I have two themes: regular (1st) & mobile (2nd). Mobile theme binded with subdomain m.mysite.com.

I can't show my mobile node teaser in mobile theme.

I've created that teaser for mobile theme in Display Suite. Next I need to show this one in mobile theme taxonomy tag page. But I can't define theme in DS. When I use [taxonomy-term.tpl] in mobile theme to define mobile teaser, but vars doesn't works: changing $view_mode has no result (type machine name on mobile teaser), $content array is empty. I tryed to use Views, but in displays there is no options to define a theme.

What can I do? Thnx

0

Problem solves by the following:

  1. Created DS template for default teaser in 2nd theme: ds-2col--node-article-teaser.tpl.php

  2. Place into it code to define my new node_teaser_mobile to show:

    print render(node_view($node, $view_mode = 'node_teaser_mobile', $langcode = NULL));

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.