Hello,
I am wondering whether there is a feature that I can add the same info in 2(or more) pages and have them linked to each other. For example:
Use case: multiple restaurants info
Parent page: Directory with a table that lists all the info
Child pages: an individual page that shows detailed info per restaurant.
If I add contact number and address in a child page and copy the same info on the parent page, is it possible to sync this info so it is not necessary to update twice to keep everything up to date?
Yes, you can write the master page so that it uses the macro "include" - wherever {include:(space:) name of other page} is used, the entire content of the other page is drawn within the master. The master contains no content from the included page when it is edited, if you want to change the text, you have to edit the included page.
If you don't want the whole included page, you can wrap the part you do want in {excerpt} macro, and then use {include-excerpt) in the same way as {include}
In your example, you might have restaraunt information including reviews and details as your included pages, but use {excerpt} to pull only name and contact details into a master list.
One caveat - anyone reading the master page must have permission to see the included page, or the macros cannot read the data from them.
Hello Nic,
Thank you so much for your answer. I have tried it and it does work! However I still have an issue: if I use {excerpt} twice on the same page. {include-excerpt) will only show the first {excerpt}. anyway to solve that?
thank you again, happy new year,
eunice
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.