Best practice? Master pages & override question
Hi all,
I am currently developing a more or less complex script to create a magazine from scratch with contents from a database (by using porky) and would like to ask the gurus here for a best practice tip about how to use master layouts.
The magazine has several master pages for the different contents where I have set placeholder textboxes that (later in the process) will be getting filled with the contents from the database.
Some of the masters will only be used on one page (e.g.: cover, imprint, authors) in the whole mag, some others will be used for several pages (e.g.: articles, news).
So far I have been doing this by:
- add a new page and set is as the active one
- apply the correct master for this specific page
- using override to be able to alter the pageItems that come along from the master
This works so far but I assume I am doing something wrong because when replacing the placeholders contents with the contents from the database, this will also alter the pageItems/placeholders on the master itself instead of only the ones on the active page. So when adding another page that uses the same master, the placeholders from the master will already have the content of the last page instead of being empty.
What would the best practice/correct way be that will only alter the pageItems on the page and leave the master as is, so I can reuse it?
Thank you in advance for any help ![]()