Closed (duplicate)
Project:
Recipe
Version:
master
Component:
Code
Priority:
Minor
Category:
Support request
Assigned:
Reporter:
Created:
9 Sep 2008 at 20:22 UTC
Updated:
29 Jan 2010 at 04:42 UTC
How do I turn off the user login/comments box from the recipe page.
AS well, I'd be interested in getting rid of the yield box completely.
Thanks in advance.
Comments
Comment #1
scottprive commentedOK that's 3 questions in 1 issue. :-)
1) Turn off user login?
That's not a Recipe issue, I think...
2) How to Turn off user comments on Recipes?
In D6, that's Comment Settings in /admin/content/node-type/recipe
3) How to get rid of the Yield box?
Well the QUICK way to do this is to edit recipe.module, looking for the line:
$summary = '
change this to:
$summary = '
Note: The above has not been tested. What it should do is not change anything in the code, except to instruct the browser not to draw the HTML table (which contains the Yield stuff). It's possible you have to apply that style to other elements on the table -- again, I didn't test this.
I will assign this to myself to test and make it an option - display of this should be controlled by a checkbox under Recipe Admin.
Comment #2
scottprive commentedOK this a dupe of #187322: Admin option to hide the Yield Summary so I will close this. Check that issue for changed details (we have an option for hiding Yield, I'm about to check it in)
Comment #3
scottprive commentedMeant to set this as dupe. (and, the patch is checked into HEAD)