Have you tried using the Partial View Macro files? If you create a new partival via the query builder, this might be the quickest and easiest way of getting your contact onto you homepage.
Once you have created the Partial View macro, you can then drop the partial on to your homepage template.
you could use GetPropertyValue("") if you have a for each loop pulling the child content onto the homepage. it would be something like this (you would have to add in the correct variable names for your umbraco project
How to get child page data in home page ?
How to get child page data in home page ?
Hi Naufil, What have you tried?
Can you give more information about what you are trying to do.
Owain.
Hi Owain,
i have structure like this.
home (parent) > Service (child)
i want to use Service page's content property in home page.
Have you tried using the Partial View Macro files? If you create a new partival via the query builder, this might be the quickest and easiest way of getting your contact onto you homepage.
Once you have created the Partial View macro, you can then drop the partial on to your homepage template.
sorry i don't get it. i'm new in umbraco. can you give me example or any other way ?
Actually, while making a quick video to demo this, I think there is a better option.
Go in to your Settings Tab then click on Templates folder. Find your homepage template and then once it opens, click on the query builder link.
The demo shows you a rough idea what you need to do. Hope that helps.
Thank you so much Owain. it works perfect. :)
but i want to use also SeviceSubject in Home. Pls pls one more help.
Hi, Can you share the code that was created by the Query Builder and I'll see what I can do :)
O.
Hi Naufil
you could use GetPropertyValue("") if you have a for each loop pulling the child content onto the homepage. it would be something like this (you would have to add in the correct variable names for your umbraco project
@foreach(var item in selection){
}
is working on a reply...