Hi friends!
Here I am with another question!
As many of you already know I have an encyclopedia about villages in Portugal. I'm now introducing variables in my site just to automatize the process of displaying maps and photos inside an infobox in each page. In a page about a village, per example, I use %%parent_name%% in a _template to display the name of the municipality (parent page) where that village belongs. Also, with that variable, I can display the map and the coat of arms of that municipality. But imagine that I want to display automatically the name of the district (grandparent page) or the region (gran-grandparent page) of that village. Because I have all that pages nested in a hierarchical way, I can see that info in the breadcrumbs bellow the Page Title. However, is there any way to get those grandparent pages in a variable or in any other way?
Just an example:
Page 1 Torre de Dornes - That's a monument in a small village. Using %%parent_name%% the infobox (bellow the Google ad) display the Coat of Arms of the village where this monument is located.
Page 2 (parent) Dornes - That's the village. Using %%parent_name%% the infobox display the name and map of the municipality where the village is located.
Page 3 (grandparent) Ferreira do Zêzere - That's the municipality. Using %%parent_name%% the infobox display the sub-region where the municipality is located.
So, my question is… is there a way to display automatically the map in the page 1 using the name of page 3? Something like %%grandparent_name%%?
In fact, each page already display the grandparent and grand-grandparent (and so on) in the breadcrumbs. I just want a way to decide which of those pages I want to select… Maybe this is impossible, but we can dream, can't we?
Carlos Pereira





