Display Suite Situations in Drupal
1. Scenerio:
The title needs to be printed on image field as overlay. The title field is printed in page.tpl.php and you dont get $title variable in node.tpl.php
Solution:
In display suite create a code field and put the [node|title] token in that field.
In the manage display of fields place the code field wherever you want.
2. Scenerio:
There is a Content Type and there is a field xx and field yy. xx is a textarea field and yy is a date/time field. Based on value on yy some different text has to be printed on yy field.
Solution:
In display suite create a code field and put the [custom|xx] token in that field.
In the manage display of fields place the code field wherever you want. Write the logic in token creation code.
The title needs to be printed on image field as overlay. The title field is printed in page.tpl.php and you dont get $title variable in node.tpl.php
Solution:
In display suite create a code field and put the [node|title] token in that field.
In the manage display of fields place the code field wherever you want.
2. Scenerio:
There is a Content Type and there is a field xx and field yy. xx is a textarea field and yy is a date/time field. Based on value on yy some different text has to be printed on yy field.
Solution:
In display suite create a code field and put the [custom|xx] token in that field.
In the manage display of fields place the code field wherever you want. Write the logic in token creation code.
Comments
Post a Comment