Closed (fixed)
Project:
Forward
Version:
7.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2013 at 17:28 UTC
Updated:
16 Mar 2014 at 07:10 UTC
Jump to comment: Most recent
Comments
Comment #1
john.oltman commentedseanr, just getting to this - do you recall (and I realize this was awhile ago) if you added some code to the theme's template.php file in order to get node--forward.tpl.php recognized as the template? Because I'm not seeing that used otherwise, even after applying your patch.
Comment #2
seanrNo, we created a view mode called forward, which then made that template suggestion available.
Comment #3
john.oltman commentedExcept that Drupal 7 doesn't create that suggestion automatically. That's why they had to make that an enhancement in Drupal 8:
https://drupal.org/node/1503464
In D7 you only get node-id and node-content-type suggestions out of the box.
However, I will go ahead and add it for D7 using hook_preprocess_node. I'm pretty sure your project used a preprocess function somewhere, to get that suggestion added.
Comment #4
seanrI think the entity module adds it. Not exactly sure as it's been a while. It's definitely not in our template.php and someone else did the majority of the work on the site we needed that for.
Comment #5
john.oltman commentedComment #6
john.oltman commentedI modified the patch to use the more generic entity_view. I also made it optional so existing users aren't affected - to enable entity_view and a theme template, use the new check box "Output themed entity when using custom display" in the DEFAULTS FOR EMAIL THIS PAGE section of Forward admin.
Applied to 7.x-3.x-dev