简体   繁体   English

母版页未加载Umbraco CMS中的子级内容

[英]Master page not loading in child content in Umbraco CMS

I have a dynamic logo which is in master page, it's load in Parent page(Home) but doesn't load in child page. 我在母版页中有一个动态徽标,它在父页(主页)中加载,但不在子页中加载。

Please help..!! 请帮忙..!!

Thank-you..!! 谢谢..!!

If you have selected this logo on the parent page (Home) - when on a child page you need to either access the parent page and get the logo property from that, or make sure that the code you use to fetch the logo property is set to be recursive. 如果您在父页面(主页)上选择了此徽标-在子页面上时,您需要访问父页面并从中获取logo属性,或者确保已设置用于获取徽标属性的代码是递归的。 Recursive means that if it cannot find the property on the current page, it will automatically try to get it from the parent page(s). 递归表示如果无法在当前页面上找到该属性,它将自动尝试从父页面获取该属性。

Depending on how you access the property value, IIRC you usually pass in an extra argument (true) to the GetPropertyValue method to make it recursive. 根据访问属性值的方式,IIRC通常会将一个额外的参数(true)传递给GetPropertyValue方法以使其递归。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM