Archived topic
Dynamic data in a page?
3 replies · Started by Henk on November 24, 2021
Hi,
We're using GP and GB Pro for our website.
Is it possible to make a page that contains dynamic data?
I try to clarify it with an example.
I build a page, called it a template, and inside this template I have a dynamic field called <city>. How can I make e.g. 15 pages, where each page has a specific value for <city>?
Is something like this possible or should I make a template page and make by hand (duplicate pages) all the pages for each city?
Thanks, Henk
Hi there,
you can you use the Block Element and its dynamic data options:
https://docs.generatepress.com/article/dynamic-data/
You can either create a Content Template:
https://docs.generatepress.com/article/block-element-content-template/
to replace the themes content template.
Or just hook in your own block element eg. a Page Hero.
For your data you would store it in a Custom Field
Thanks David.
With your suggestions I found a solution.
Glad to hear that!