Copied to clipboard

Flag this post as spam?

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


  • Aadarsh Dubey 13 posts 137 karma points
    Sep 29, 2023 @ 06:49
    Aadarsh Dubey
    1

    I am new in Umbraco,

    I have 2 pages in Umbraco 1 page is Abc which is a normal page it has many fields in it like abcname abcLname

    2 page is footer which is Partial page

    so now i need to display this abcname

    field value in Footer page which is Partial so how can i do that

    Thanks in Advance

  • Huw Reddick 1737 posts 6098 karma points MVP c-trib
    Sep 29, 2023 @ 14:46
    Huw Reddick
    100

    Your partial view should have access to the pages Model (if you have inherited UmbracoViewPage, so you should just be able to do

    @if (Model.HasValue("abcname"))
    {
        @Model.Value("abcname")
    }
    
  • Aadarsh Dubey 13 posts 137 karma points
    Oct 03, 2023 @ 06:14
    Aadarsh Dubey
    0

    Yes Got your Point but the thing is

    enter image description here

    i am already using 1 model which is having some data and i need to display it now i have created 1 page with number of component data too in the same page in my partial page so how can i do that

    Thank You

  • Amalie Wowern 144 posts 273 karma points c-trib
    Oct 04, 2023 @ 09:08
    Amalie Wowern
    0

    Hi Aadarsh

    Can you explain your problem again?

    You have two pagetypes. One is a normal content page and one has footer data.

    And you want to show some data from content in footer?

Please Sign in or register to post replies

Write your reply to:

Draft