buothz Posted April 25, 2012 Share Posted April 25, 2012 Hi, I would like to create a portal like this http://www.vousavezchoisi.com/ 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 Link to comment Share on other sites More sharing options...
ryan Posted April 25, 2012 Share Posted April 25, 2012 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. 1 Link to comment Share on other sites More sharing options...
buothz Posted April 25, 2012 Author Share Posted April 25, 2012 (edited) 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 April 25, 2012 by buothz Link to comment Share on other sites More sharing options...
ryan Posted April 26, 2012 Share Posted April 26, 2012 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now