开发者

Restaurant menu drupal 7 [closed]

It's di开发者_StackOverflow中文版fficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 10 years ago.

I would like to know what is the easiest way to create a restaurant menu with Drupal 7.

It would only be the plates name and their prices, all divided in sections on the same page as appetizers, main courses and desserts.

I would like it to be very user friendly for the restaurant owner to update the plates weekly.


Use Module CCK & views module. If you haven't heard of these modules, then you should go to a site like http://drupalmodules.com (way better than searching drupal!!) - and research modules.

Once you have these modules installed, create a content type called "Menu Item". Give the content type the following fields:

  1. Item Name
  2. Item Description
  3. Price
  4. Menu Category (Appetizer, Entree, etc..)
  5. Picture (Optional)

Then, use views to render the items how you want. Probably use a table, or grid layout. You should probably make a view for each category ( One for Appetizers, One for Entrees, etc..).

For each category's view:

  • Make sure to add a "Block" display.
  • Make sure you select to filter by "Published", that's how your Restaurant manager will decide whats on the menu and what isn't. For instance, they may have 50-60 items in the system, but only 15 published to the menu at any one time..

Then, create a regular "Page" content item. Call it something like, "yourdomain.com/menu". This is where all the menu blocks will go.

Finally, go to the blocks section, and you should see a block for each menu category - all you have to do is order them how you want them to appear. Once you've done that, you'll need to edit each block, and using the filter at the bottom, tell it to only display on page "menu", or else your menu items will show on every page.

You can give the manager access to edit & add Menu Items, where he/she can publish and unpublish them. And also, be able to add new menu items. As they do this, it will automatically update the views on the menu page.

Viola!


I know this is an old question but I did this recently using the field collections module. I set up each field in the menu as a field-collection. E.g. Breakfast, starters, mains etc.

In each collection I added fields for the menu item name, description and cost.

I found the advantage of this over having each menu item as a node was that the restaurant manager could drag and drop the items in each collection to change the order they appeared on the front end really easily.


I have had a similar problem over the years and started a contrib module called foodmenu. It's still in it's sandbox phase but could use some testing before I make it officially public. Check it out if you are still interested - http://drupal.org/sandbox/pmacom/1528538

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜