Biorn Posted June 23, 2012 Share Posted June 23, 2012 Hi all.. Im trying to do a kind of "certificat" manager. Its a lot of input fields, and I need them inserted into a db, and be recalled again.. Looks something like this: http://h0m3.chrisb.dk/certs I really like to make this in processwire, because its the best CMS I have seen.. So, should I make a lot of templates? Or just a lot of fields? Or how should I get into this? Thanks.. // Bjørn Link to comment Share on other sites More sharing options...
SiNNuT Posted June 23, 2012 Share Posted June 23, 2012 Hmm, not the most descriptive topic title i've ever seen I would probably start from top to bottom, from the calibration certificate to test chart: lifting gear, and carefully write down all the fields needed. From having a quick look there are a lot of fields that are basically the same but only differ in the label. Try to minimize (DRY) the number of fields and make things as reusable as possible. For this the 'field template context' feature can be quite nice (http://processwire.c...mplate-context/). Also, be sure to make good use of the page fieldtype, to make things maintainable and consistent as possible. Look at your data-structure from a relational (orm) pov, of course keeping in mind the PW style of doing things in this regard. Once you've got all your fields in the system i would basically create a template for every element you got in the dropdown on your example page. Add the fields to the templates the order and way you like and start to test things. I also see fields like 'customer' and 'calibration performed by'. Will all this data be available in PW or do have to interact with other systems, like a crm or stuff like that? Also, will the people who perform tests login to PW to add pages? Or do you plan to build some sort of front-end for them to do their stuff? 1 Link to comment Share on other sites More sharing options...
Biorn Posted June 23, 2012 Author Share Posted June 23, 2012 Sorry bout that.. Its not going to interact with other systems.. thanks good.. And every thing is going to be added from the backend, but some data should be dump in the front end. But Im not quite there yet... I have played around with the 'field template context' and its a lot of work.. and Im missing some kind of sub-categories.. The idear is that a 'certificat' have some of those pages, but not all. So I would like to make some kind of head data and then add the pages I need... Link to comment Share on other sites More sharing options...
onjegolders Posted June 25, 2012 Share Posted June 25, 2012 That link doesn't appear to be working for me, could you give a bit more detail about what it is you're trying to achieve? Most things in Processwire tend to be pretty simple and there's normally a reasonably straight-forward way to do anything. Link to comment Share on other sites More sharing options...
Biorn Posted June 27, 2012 Author Share Posted June 27, 2012 >>onjegolders I have some problems with my DNS.. let me fix another link But I think I maybe found a solution... 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