If i understand you correctly, you have a problem that if you view the homepage, the footer navigation is working perfect. But when you visit any other page, the footer navigation is empty. Is that correct?
It sounds like your footer navigation is listing the CurrentPage.Children, and not the CurrentPage.Site().Children, thats why it looks good on the homepage, but not on the other pages.
Im afraid i cant really see how you populate the Model.FooterMenu list object, is that done in the back-end? In that case can you paste the back-end code for rendering your footer?
You want to access your properties recursively, so pass "true" to the GetPropertyValue<T> overload when accessing a property. This will check all the way back down the ancestors for a value.
var phoneNumber = Model.Content.GetPropertyValue<string>("phoneNumber", true);
I'm not sure how your Helper class works, but that is how you access the underlying values recursively.
Don't show footer other page, only Homepage
After update for Footer , just only Homepage show right ! Other page miss some function
Homepage :
Hi DIDU.
If i understand you correctly, you have a problem that if you view the homepage, the footer navigation is working perfect. But when you visit any other page, the footer navigation is empty. Is that correct?
It sounds like your footer navigation is listing the CurrentPage.Children, and not the CurrentPage.Site().Children, thats why it looks good on the homepage, but not on the other pages.
Could you post your html code for the Footer?
Yes, my problem is exactly that. Help me, bro
Code for footer : Navigation:
P :
Hi again.
Im afraid i cant really see how you populate the
Model.FooterMenu
list object, is that done in the back-end? In that case can you paste the back-end code for rendering your footer?You want to access your properties recursively, so pass "true" to the
GetPropertyValue<T>
overload when accessing a property. This will check all the way back down the ancestors for a value.I'm not sure how your
Helper
class works, but that is how you access the underlying values recursively.Hey bros, After I added fuction :
My problem is solved , thanks your support bros
is working on a reply...