Need little help understanding page types and fields.
notta - 10 months ago
Hi, for the starters i am totally new to Pyro ans its community so this is also my hello post! :) I have been learning and researching it for only few days now, i have watched some guides, mainly module and theme development and im a bit stuck. I'm coming from the WP world and i have wanted to switch something reasonable for some time now and Pyro seems currently most developer friendly from Laravel CMS-ses. I have this small project that would consist of templates and custom fields and few general site options when talking about WP. Now from what i understand so far in Pyro Page Types are like templates and Fields are like custom fields that you can hook up with Page Types. The problem is that i have not found a way to create these page fields and page types programmatically other than literally instatiating Field and Page Type models and saving its entries into database. For all my projects in WP this kind of configurations have always been in code where i specify the templates i'm using and what kind of fields will be binded with those templates. I'm not finding anything related to creating fields and types only from code or am i missing something here?