Closed (works as designed)
Project:
Forward
Version:
7.x-2.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
9 Aug 2013 at 17:36 UTC
Updated:
18 Sep 2016 at 16:00 UTC
Jump to comment: Most recent
Comments
Comment #1
john.oltman commentedThat would be a nice feature and I'll add to the list. For now, you would have to place IF statements in the single template file, that do different things depending on what the value of
$content->typeis. If you are forwarding a node, $content points to a node object when you are within forward.tpl.php. I haven't tried this myself, so let me know if you run into trouble.Comment #2
john.oltman commentedBump
Comment #3
john.oltman commentedComment #4
john.oltman commentedIn Drupal 7 you should be able to add a mytheme_preprocess_forward function to your template.php file.
https://api.drupal.org/api/drupal/modules!system!theme.api.php/function/...
In Drupal 8 you should be able to add a mytheme_theme_suggestions_forward_alter function to your mytheme.theme file.
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Render%21...