Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
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") }
Yes Got your Point but the thing is
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
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?
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Model in Partial Views
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
Your partial view should have access to the pages Model (if you have inherited UmbracoViewPage, so you should just be able to do
Yes Got your Point but the thing is
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
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?
is working on a reply...