Posted by vagrant on December 10, 2007 at 1:58am
Jump to:
| Project: | Recipe |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | tzoscott |
| Status: | active |
Issue Summary
It would be a great feature for each user to be able to create their own recipe book. Does anyone know if there is there a way to create this using a combination of other mods?
Comments
#1
Well, the "bookmark" module is quite simple, and allows people to bookmark content from any part of the site. It doesn't break down by node type, but it worked better than the other modules I tried for similar functionality. It could probably be customized pretty easily to just show recipes if you needed that, I would think.
#2
I haven't tried it, but can't you use the book module (core) and add recipes via the "outline" tab?
#3
Thanks for the replies, I think what I'm looking for is beyond the recipe mod without doing a considerable amount of custom coding. What I was envisioning was:
a) each user can create their own recipe book (that can't be modified by someone else), that includes photos/etc.
b) readable/searchable by anyone that accesses the site (easily done)
Any idea how to use the outline mod to create recipes?
Thanks
#4
I don't have links handy, but there have been posts on people creating cookbooks with CCK, Imagecache. and Views (I imagine the process is very similar to the gallery solution with the same software). This might very well be extensible to what you want.
#5
Thanks, that would be helpful
#6
You could probably use the Flag module in combination with Views to do this.
#7
As far as I understand (which isn't perfect), you would do this in Views.
I'm not sure anything would need to actually be done in Recipe code, per se.
Here's the theory/untested steps:
1) Recipe integrates with the Drupal Node system already.
Using Views, you should be able to get all of a user's submitted content NIDs - all of their content.
2) Filter that list to only include content which matches the recipe content type.
Sorry that the above is horribly vague - I'm still learning the D6 system so I can not be more specific, and I do not have time to test my theory above.
Note: Recipe does not support views (yet), but I do not think that has anything to do with the answer I outlined above.
#8
#9
Leaving this open as a container for follow-up requests, but Views support will be the actual method of implimenting this. Since I am working on Views, I will assign to me so I can test creating this in views.
#10
#11
@goddess..
I'm also having a same requirement. let's say..
i installed flag module which collect all flagged recipe.
but actually what i want is that, when i click on flag this recipe link there should be a pop up which show all cookbook names and option to create new cook book.
In this pop up window i can able to add recipe in specific cookbook or able to create new book and then after add recipe in new created book..
so is there any solution for this problem.. it seems to be like some category of recipe..
can any body help out..
Thanks,
#12
I'm not sure of the exact proposal here. Is this a recipe book that each user can 'build' from existing recipes that they like? Or is this a book made of up a user's submissions (ie they are the recipe creator)?
If we are talking about a favorite recipes book, we need a way of tagging a collection of recipes(1), and then a way of rendering their book(2).
For tagging, we could either save a hard list (like bookmarks) or use a voting thingy like fivestar, and say build me a list of recipes I've marked 3 stars or above. I'm still not sure about the use of this book. For sharing? For exporting? For publishing? Just a list? How would it be shown? What is the use case? Just remembering that you liked it?
Anyway views won't save us until we figure out the whole use case thing. I like the idea. I just don't know what exactly we are proposing.
#13
#3 sounds like they're asking for a method to collect their favorite recipes into a set, ie "My favorites" or "My favorite Italian dishes". (Yes, so far it's not clear if this is one set per user - favorites - or multiple sets per user).
Once that's done, the sets are viewable by others.. much in the way you can view "Lists" on Amazon.
That's my take.
Based on the above, I don't see this as a Recipe problem -- these are questions about how to group nodes and publish that list.
It may be that someone needs to investigate what other Drupal contribs can be combined to create this effect, and document it here.
I've heard that modules 'Book' and 'Bookmark' might be of some use, but have not used them myself and so I don't know what their capabilities are.
(If someone has *tried* something, please document which modules you tried to use, and why they fell short).
I just took reference to Views out of the title since it's probably not the most direct way to achieve this effect. It could do it now if you're a views guru (cross reference recipe nodes which have flag enabled on them or which have a certain voting score, as you noted). I would be surprised if there were not Drupal modules well suited to do this against all nodes (not just Recipe specifically).
#14
1. Flag Module will allow users to flag recipe node as favorite. Views can easily show block or tab of "my favorite recipes".
2. Five star module can be attached to recipe node to rate the recipe. Again, views can easily show block or tab of "highest rated recipes".
Ive used both modules with success and shouldn't be any problem to attach this functionality to recipes by just enabling the modules. No additional coding in recipe module is necessary for this.
Ideally I think the ability to drill down deeper and flag ingredients would be most beneficial in building out recipes. This was brought up in discussion of integration with USDA database. Transition of ingredients to nodes would be required to implement flagging as mentioned above.
#15
Ah. OK. Can you export flag/fivestar listings as feeds? I think that's the last piece.
Regarding the ingredient drill-down, I think I know what you mean.. a search with filtering. can you write this up as a new issue so it doesn't get lost?
#16
Not sure about feeds with those modules. I will open up new issue for the other deal.
thanks.
#17
Not a bad little module at all.. I do see a few spots where I would need a few changes.. ie: if you have an ingredient with a specified size container.. such as 2 10 oz cans of tomato paste
rather than entering it as 20 oz of tomato paste
Would also be nice to have the ability to add picture of finished product too..
Perhaps adding into your size list, an option for Separator which will insert a ---------------------------------- line, then use the last field for entering text to place next to it to identify the content below. when listed in the recipe ingredients list for users with multiple parts of a recipe to enter (example: main cake ingredients then a separator line then say, a pudding filling mixture.. Perhaps this approach could be used?
#18
Hello greywolf -
Thanks for the kind words. :-)
What Ingredients is intended to do is, is specify what the recipe NEEDS. The author should have created the recipe with the necessary amounts.
"What" gets purchased is another issue at shopping time.
( The local store here stocks tomato paste in cans, jars, AND organic stuff in wax-lined cardboard containers. They come in sizes from 8oz to 24oz -- with 24oz being the BEST price, even though it creates a little bit of leftover ingredient). Whether the ingredient comes in glass, jar, or paper box or homemade fresh - it should not matter to the recipe, but it would matter to the shopper.
Can I assume what you are really asking for is a "shopping list"?
There are no plans for a shopping list (at the moment), but an add-on module to Recipe could easily extract information from 1 or more selected recipes.
>Would also be nice to have the ability to add picture of finished product too..
Ah, you can! Please investigate "Content Construction Kit (CCK)" module. You can edit the content type to allow for a single picture or an entire gallery of user-submitted photos of this recipe.
-tzoscott
PS - Please keep comments to the currently discussed issue, in this case it is "books" (grouping sets) of recipes. We try to follow this rule for 2 reasons, one of which is to help your request get noticed (since your created Issue will have a Summary that matches the new discussion you are starting. This also helps insure good new ideas are never lost under a different topic.
#19
Hi, I am new to drupal and I am trying to figure out the concepts here. I installed the recipe module for my site but every user is able to access them and view them. I want to create recipes per user securely. Is there any setting that I need to set?
Thanks,
Prerna.