Hello. I am using the recipe, and used the CCK to add nutritional information to each recipe in a standardized format. When I enable the "export to HTML" option for a print-friendly version of the recipe, this info is not included. If possible, I'd like the option to include it, as the nutritional information is going to be important for my audience and I know I'll get requests for it once the site is live.

Thank you.

CommentFileSizeAuthor
#4 recipe_print_view_v1.patch1.12 KBseanbfuller

Comments

goddess’s picture

Additionally, the option to have comments appear on the print-friendly version would be very helpful, as often the comments contain important info about the recipe from members. This is less important for my site than the nutritional CCK fields I created, but would definitely be a very useful feature.

Thanks.

goddess’s picture

Update: to anyone looking for this functionality, I was able to get it from the current print module.

2222a’s picture

Since you used cck here: I have a question: can I use cck to replace the ingredient entering system? It is too complicated for my users (foreign language too) so I am thinking of replacing it either with a text box for each ingredient, or one large one to cut and paste them all. The simple version does not work http://drupal.org/node/195127 so I am looking for alternatives.

Thanks for any directions.

seanbfuller’s picture

Status: Active » Needs review
StatusFileSize
new1.12 KB

I think the issue is that we are calling theme('node_recipe') instead of calling node_view($node) to build the page. The second variant allows other modules (such as cck) to add additional node elements. The downside here is that some options can creep into the display we might not want.

This small patch makes the change above. Note, however, that I had to call it with page = FALSE in order to keep the form from showing. This means that the node output has a title. To compensate, I removed the title from the theme_recipe_export_html function.

Up for review.

scottprive’s picture

Title: ability to export cck fields with export to html option » Export to HTML omits CCK fields; patch to correct via using node_view() instead of theme() for display.

If someone could re-test and update this for 6.x that would be awesome.

jvandervort’s picture

Status: Needs review » Closed (won't fix)

Recipe 5.x branch moved to unsupported.