I’ve got a custom page model for storing and retrieving content from a database.
So far I have only used the children()
and writeContent()
methods, but now I also need a method to read content directly for the respective page. I haven’t found any suitable documentation on how to read content directly for the respective page.
I have tried setContent()
, content()
and readContent()
on a trial & error basis, but only get HTTP Error 500 because of memory exhausted (tried to allocate xx …). Unfortunately these error messages do not bring me any further.
What do I have to do to just fill single fields of the current page by my page model?
Is there a suitable example somewhere that I can use as a guide (which NOT only refers to overwriting the children()
method)?