Hi folks,
Another long-time Textpattern (and Textdrive VCII, anyone remember?) user here who wants to convert to Processwire.
I've always felt the textpattern interface was rather unsuitable for non-blog sites with all its unused fields and options, and I'm really looking forward to getting familiar a new structure. I know my way around HMTL/CSS/Jquery, and I am learning/copying/pasting/googling PHP
Thanks to all the tutorials, documentation and fine users posting in here I think I've already started to get a grip on things, but I am still confused by some of the main ideas of processwire.
As a first project, I would like to build a simple portfolio single-site. It should have three sections: projects, exhibitions, and about.
- The projects sections should be a list of projects with each project entry containing Name, Year, Description, multiple imgs
- Exhibitions should be a list of exhibitions, with each exhibition entry containing Name, Year and Description
- About should be a simple biography text (I'll leave this out from the detailed write-up below, think I can handle this..)
I can already see that Processwire is much more flexible than the article based approach that textpattern uses, and coming from the latter I suppose it simply takes some time to make sense of things… Anyways here's what I would do next or rather how I imagine processwire to function–I am not sure if this is the "right" way or order to do it so any input would be very much welcome!
1. Setup
- Set up the fields needed for the project and exhibition articles.
- Set up the templates needed for each of the articles pages (e.g. article_project, article_exhibition), add fields
- Set up the templates needed for each of the (invisible) overview pages (overview_projects, overview_exhibitions)
2. Pages
- Create the (invisible) Projects & Exhibitions pages, assigning each of the pages the overview_xxx templates I created
- Create subpages and assign them the article_xxx templates I created
3. Structure/Code
- Create template file for the main page (e.g. index.php) and assign this to the home page in the backend
- Create foreach loops for both exhibitions and projects
Does that make any sense?
Looking forward to learning new things!
Cheers
Phil