Hi everyone.
So far, I love PW. Now, before I start using it in more than some get-to-know-it projects on localhost, I'd like to make sure I understand in properly.
So everything is a page, right? Not only every piece or group of text or data I want to display in an actual page, but also stuff I might want to pull into a page is supposed to be put in a separate page – like news items, blog articles, events, staff members etc. Or should certain types of data actually be stored in a different kind of way (XML or JSON comes to mind) to make it easier or more performant to process?
Let's say I have a page which contains some fields, but it's not supposed to be displayed as an actual frontend page. It only exists to store those fields and will be referenced in an actual page, mostlikely its parent. My "natural" way of approaching this would be to assign some kind of "snippet" template to the page containing the content, i.e. the markup which it should have in the parent page. But that doesn't seem to be the way it's supposed to be handled in PW, at least I haven't found a way to do "insert $page here with the markup assigned to it in its template". This does make sense since it gives me more flexibility to emit the same data with different markup in different context. However, in some cases where I don't need that, my "natural approach might be easier. Is there a way to do that?
Hope this makes sense.