2015-05-22 23 views

回答

2

我認爲這是你問:-)

if(Model.Path.Contains("1086")) { 
    //.. the page is a child of the node with id == 1086 
} 

或者

var myPage = Umbraco.Content(1086); 
if(Model.Path.Contains(myPage.Id.ToString())) { 
    // It's a child! 
} 
+0

我使用選項1,謝謝 – alex

相關問題