- This topic has 7 replies, 2 voices, and was last updated 3 years, 3 months ago by
David.
-
AuthorPosts
-
January 3, 2023 at 6:44 am #2482036
Alejandro
Hi,
I suppose that this has been asked a thousand times, but I still have a doubt.
I do have over a hundred pages in which the structure is the same except the query (based out in tags).Is there a way to use reusable blocks / global styles / or whatever, to re-use the same structure changing the query?
Thanks!
January 3, 2023 at 6:48 am #2482044David
StaffCustomer SupportHi there,
sorry i don’t quite understand what you mean.
Do you have an example that illustrates what you need ?January 3, 2023 at 6:54 am #2482055Alejandro
Hi David,
Ie, I have these 3 pages:
https://proyectoviajero.com/continentes/america-del-norte/estados-unidos/
https://proyectoviajero.com/continentes/america-del-norte/canada/
https://proyectoviajero.com/continentes/america-del-norte/mexico/Now, I want to change a little bit the design and I have to go one by one in changing some blocks.
The structure of the 3 is the same except for the query: the posts are pulled out based in tags (being these: USA, Canadá and México).Is there a way to set up a reusable block or global style or whatever to replicate the same design? (with different queries for the different pages).
I want to avoid in the future to change pages one by one.Thanks!
January 3, 2023 at 7:04 am #2482071David
StaffCustomer SupportIf you select all the blocks within the Post Template block, and Convert it to a Reusable Block.
You can then use that in any Query Loop block and in the future just edit any one to update them all.January 3, 2023 at 7:11 am #2482079Alejandro
But if I do this, the system will respect the different queries in the future?
I guess that I am missing something….I mean: the reusable block is EXACTLY the same all over the site right? If I change one setting (a maring, a query o whatever) it will be populated in all the posts/pages where the reusable block is placed right?
January 3, 2023 at 9:17 am #2482414David
StaffCustomer SupportReusbable blocks are kinda a template part, if you change one instance of them on any page then all will update.
For your needs – see here:https://www.screencast.com/t/P7nqZceybD
Make a reusable block to go inside the Post Template block.
Then the Query Loop itself is not linked to the reusable block, and you can have different query loops on different pages but they all display the dynamic content from the reusable block.January 4, 2023 at 6:20 am #2483354Alejandro
Got it.
Thanks David!By the way: do you have search queries capabilities to search by post context / information?
January 4, 2023 at 10:26 am #2483745David
StaffCustomer SupportDo you have an example of that ?
-
AuthorPosts
- You must be logged in to reply to this topic.