Jump to content

manlio

Members
  • Posts

    148
  • Joined

  • Last visited

Everything posted by manlio

  1. Interesting approach! At this time I only need a single instructor reference. Just a question. There is any drawback in using this approach instead of using hierarchy? For example when query the pages by instructor or something like this? I don't have experience because I'm still trying to structure the site. Thank you!
  2. Thank you for reply, there is an instructor_id field in the courses table.
  3. Hi to everyone. After spending some time reading and trying to have a better understanding of Processwire, now I have some more questions. I need to import in PW two relational table (that have in common an ID_instructor field) and convert them to pages. The name of the two tables are instructors and courses, I have imported instructors as users with CSV importer and the hierarchy now looks like instructors > member name1 > member name2 > member name3 > member name4 Now I would like to import the courses related to every instructor to having a result hierarchy like this instructors > member name1 >>course1 >>course2 >>course3 > member name2 >>course1 > member name3 >>course1 >>course2 >>course3 >>course4 > member name4 >>course1 >>course2 >>course3 I think that bootstrapping processwire is the way to go http://processwire.com/api/include/. Can someone give an example of the code should I use to get started? Thank you!
  4. Thank you kongondo, I didn't read before the categorizing tutorial. Yes, I already have users and the administrator (me) will add them by hand. So no registration needed. So let's start from the beginning and I will try step by step developing my idea. 1. Following your directions I tried importing users. They are stored in a Mysql DB with password not encrypted (I need to encrypt that for sure) and I used Navicat to export into xls and then to csv. I used module Import Pages from CSV and I was able to import (without password) users as children of a page. I'm not able to import users directly into PW users and I miss passwords. 2. A new problem that I was thinking about using the page structure, is that usually we interact directly with the database online (using Navicat) to change users attributes. If I use pages and not a standard table I think would be really uncomfortable changing this data. I'm right? In this scenario I could use something like ProField Table to maintain all my current tables and taking advantage of PW api? I have just give a quick read so maybe I misunderstood. Thank you
  5. I'm here again. I have read a tons of post about members and front end login but now I'm really overwhelmed by all this information. I need a guideline to setup my website. I have Ryan login method running and functional, and now I need to structure my website. I have a table with all my members and I need to import in PW. I don't need registration because users still exist. I was thinking to import in users pages (I don't know exactly how) and extend the users template with all the fields that I need. Then I really don't know how to structure for example courses organized by members. I was thinking to create users as pages and built children for every member that represent courses (altough still I'm not sure how to do), but in this case user are stored in pages and not as regular users so I'm not sure if my login could be changed to work (I can investigate). I'm really confused yes I know.... I miss an organized tutorial about the front end or production files to start from. If I can complete the task I would like to organize all these information and fill the gap. In the meanwhile thank you.
  6. Thank you to everybody. You are really helpful and fast. I used $config->urls->root syntax for my links.
  7. Thank you Marcus. I'm using code by Ryan so I was thinking was a good practice https://processwire.com/talk/topic/1716-integrating-a-member-visitor-login-form/?p=15919. Anyway how I can set in the right way the root in Processwire? Because also links point to localhost/profile instead of localhost/Processwire/profile Thank you agian
  8. Hi, I'm try to develop a front end area and I have a little problem. I'm on windows 8.1 and I use Wamp server. When I use a redirect with short syntax like this $session->redirect('/profile/'); bring me to localhost/profile and doesn't find the page If I use page syntax everything is working: $session->redirect($pages->get("/profile/")->url); bring me to localhost/Processwire/profile I would like to use the first easiest way. Can you help me? Thanks
  9. +1 For backend tutorial Really interested.
  10. Ok, now everything is more clear to me. Thanks both for your time. This is really a friendly forum. I'll try to plan the best strategy for me. Probably I will post very soon for other questions Have a nice day
  11. Thank you Ivan for the quick reply and thanks for the link to moodle, but in reality I don't need such a specialized platform. I try to give some more details to clarify better. I only need that instructors can publish courses (composed by really few fields like "place", "start date", "end date", "description", ... nothing complicated) and they should be visible on a public page. Then I need that instructors are able to update their personal photo and data. And the last part is to request certification cards that are totally independent from all the previous things. My coder could develop this last feature by his own. My front end is based on Bootstrap and so maybe I could use Jquery UI or something specific like Fuel UX. From what I have read I think it is possible to manage all these things through processwire API in the front end but I was really amazed by this post https://processwire.com/talk/topic/6135-dreitagewochede/ where I see a really simplified backend. Is this possible in actual version and how? My deadline is not so strict so I have enough time to learn more on processwire and raise my PHP skill (now I'm able to write something and modifying existing script to my needs). Thank you again!
  12. Hi to everybody, I'm new to Processwire and I'm really amazed by this CMS and framework. So thanks for this wonderful work! I need to build a website with some instructors (400 hundreds more or less and I don't need registration). Every instructor after login should be able to publish courses, request certification cards and edit his personal profile using a really simple interface and obviously all these features should be in a reserved area. I have read a lot of posts on the forum but I'm too new to this CMS and PHP to choose the best way to approach this. I would like to know if the best choice is to change and modify the backend to meet my requirements or if I need to build a specific front end for users (custom login,ecc...) From what I understand if I go on the front end route I need to rebuild all manage interface like drag and drop reordering, crud, ecc... (maybe I'm wrong). I would like to fasten the development as much as possible without rebuilding something that is still working in the backend. Just as an additional info, I'm more on a designer point of view but I can script some code (I have also a coder that can help me). Thank you for your help and have a nice day.
×
×
  • Create New...