How to show the property of the main page on the page in Umbraco

I have an umbraco project with a homepage (with its own content type) and a homepage below it.

The content type of the main page includes elements such as footer, header, etc.

However, when I look at the main page, the properties of the main page are not displayed. In the main page template, I have a line:

<umbraco:Item field="footerText" runat="server" />

But this does not pull the footerText property from the properties of the main page.

I assume this is due to the fact that properties are not inherited, so how do we get around this? Writing a simple macro that retrieves data or is there a faster way?

Many thanks

+5
source share
1 answer

, node, true:

<umbraco:Item field="footerText" recursive="true" runat="server" />

- Umbraco, " umbraco", .

+6

All Articles