#1
Posted 25 April 2012 - 07:21 AM
that manages a single page for each restaurant (with address, map, etc.) and then the restaurant has a page from admin can:
- Enter the menu divided into categories (appetizers, first, second ...)
- Any restaurant can receive the items in your basket (food) via email
Processwire is okay to create a site like this? Thanks
#2
Posted 25 April 2012 - 11:28 AM
#3
Posted 25 April 2012 - 12:19 PM
If I had to build a site like that, I would use ProcessWire. The only part that I think PW may not be the ideal fit is in giving all the restaurants admin access. Unlike something like Drupal, PW's admin isn't really intended for broad/community access, but rather for trusted individuals administering a site. But that's easy to get around by just coding the restaurant's tools on the front-end instead.
Thanks for the reply, I too thought the problem of the admin ...
With regard to the develop I thought to do so in two ways (tell me what you think you have much experience)
1) use the UI "www.nomesito.com / processwire" and use the "repeaterFieldType" to add appetizers, first, second, and desserts so that the user can enter the desired number of courses which will be composed by category (starter,...), name plate, image, description and price
1b) using php code to add a shopping cart system (you can recommend one free and open source cart system?)
1c) I should find a way to do view the ONLY page of the owner of the restaurants... is there a way?
2) via the API would create an admin page for each user where is created the content
2a) I should implement the creations of fields (to add plates in category)
$template = $templates->get("restaurant_template");
$template->fields->add("new_plate");
$template->fields->save();
and I must add category and others field to the plate... In this case, how can I recreate the "repeater" system using api?If I'll posting the code that I create is a problem? Could be born a module?
Edited by buothz, 25 April 2012 - 12:22 PM.
#4
Posted 26 April 2012 - 03:33 PM
1) use the UI "www.nomesito.com / processwire" and use the "repeaterFieldType" to add appetizers, first, second, and desserts so that the user can enter the desired number of courses which will be composed by category (starter,...), name plate, image, description and pric
If you need those things to be in separate fields and searchable that way in PW, then Repeater would definitely be a good way to go.
1b) using php code to add a shopping cart system (you can recommend one free and open source cart system?)
Not sure about this one. I'm using Shopify, but it's not free/open source. Antti is working on a really nice cart setup for ProcessWire, so I'd probably look there first.
2) via the API would create an admin page for each user where is created the content
Assuming these users are not admin/trusted users, I would keep them out of the admin and performing basic edits on the front-end only.
2a) I should implement the creations of fields (to add plates in category)
Automating creation of fields is not something I recommend unless it's a one-time thing. It seems like things could get messy or out of hand if the creation of fields, or adding fields to templates, was not part of your manual administrative process.
If I'll posting the code that I create is a problem? Could be born a module?
Definitely feel free to post any code. I'm somewhat confused on the questions, so code often helps to clarify.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users













