Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Naufil 23 posts 114 karma points
    Jul 28, 2018 @ 11:08
    Naufil
    0

    How to get child page data in home page ?

    How to get child page data in home page ?

  • Owain Williams 482 posts 1414 karma points MVP 7x c-trib
    Jul 28, 2018 @ 11:14
    Owain Williams
    0

    Hi Naufil, What have you tried?

    Can you give more information about what you are trying to do.

    Owain.

  • Naufil 23 posts 114 karma points
    Jul 28, 2018 @ 11:29
    Naufil
    0

    Hi Owain,

    i have structure like this.

    home (parent) > Service (child)

    i want to use Service page's content property in home page.

  • Owain Williams 482 posts 1414 karma points MVP 7x c-trib
    Jul 28, 2018 @ 11:33
    Owain Williams
    0

    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.

  • Naufil 23 posts 114 karma points
    Jul 28, 2018 @ 11:41
    Naufil
    0

    sorry i don't get it. i'm new in umbraco. can you give me example or any other way ?

  • Owain Williams 482 posts 1414 karma points MVP 7x c-trib
    Jul 28, 2018 @ 12:10
    Owain Williams
    1

    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.

    enter image description here

    The demo shows you a rough idea what you need to do. Hope that helps.

  • Naufil 23 posts 114 karma points
    Jul 28, 2018 @ 12:21
    Naufil
    0

    Thank you so much Owain. it works perfect. :)

  • Naufil 23 posts 114 karma points
    Jul 28, 2018 @ 12:25
    Naufil
    0

    but i want to use also SeviceSubject in Home. Pls pls one more help.

    enter image description here

  • Owain Williams 482 posts 1414 karma points MVP 7x c-trib
    Jul 28, 2018 @ 12:57
    Owain Williams
    0

    Hi, Can you share the code that was created by the Query Builder and I'll see what I can do :)

    O.

  • Marco Vezzani 20 posts 174 karma points
    Jul 30, 2018 @ 13:53
    Marco Vezzani
    0

    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){

         item.GetPropertyValue("serviceSubject");
    

    }

Please Sign in or register to post replies

Write your reply to:

Draft