Closed (duplicate)
Project:
Recipe
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2012 at 12:24 UTC
Updated:
6 Jun 2013 at 04:19 UTC
Hi
I have set the description field format to visible for the teaser of the recipe content type but it's the only field set to this that does not appear. This happened even when I made a fresh installation again. I would like to have the desciption forming the main part of the teaser.
How do I get this to work?
Regards
Comments
Comment #1
dcam commentedThis is a duplicate of #1264498: Recipe fields are not shown in the node teaser list. If this is still a problem, there is some sample code in that issue to enable the display.
Comment #2
lionheart8 commentedHi,
Thank you for this response.
I tried to look at the code at that link, but could not make out what exactly to be done to correct the issue.
Yes, this is after this long, about 1.5 years later (!) after original post still a problem.
I am NOT a coder, so unless I know which specific provided code to add to what part of a stated script, all this looks like Chinese to me. ;)
.... So I would appreciate any specific solution.
Kind regards
Comment #3
dcam commentedYes, you're right. It's still a problem. The node displays are hard-coded into the module with an old API and the fact that they're displayed in the Field UI is misleading. Unfortunately, there's no straightforward way to resolve the two that I'm aware of. The module will have to undergo a major conversion to make it work. In the meantime, the module code has to be hacked by anyone who wants to change the node display.
To make the description appear in the teaser, copy and paste the following lines of code to line 791 of recipe.module:
So that section of code should look like:
Or, if you just want the description text to be printed with no other themeing, use this: