Try item.GetPropertyValue<string>("summary") instead of Umbraco.Field("summary")
Umbraco.Field will try to retreive the value from the current page you are rendering. In your case I guess this is your overview page, which doesn't have a summary property.
item.GetPropertyValue<T> will get the value from the item in your loop.
'umbraco.item' does not contain a definition for 'GetPropertyValue'
the problem is i can access only the listview i am not able to access the inside each list contents , if i access the list inside content only i can able to access the summary.
the issue the children is currently not taking the inside detailed view its taking only the list view so summary is not exist in the list view only Name is there , where i needs to access the list inside contents
as i have mentioned i cant able to access the Particular values please check the above Reply
Get content based on ID children inside children
hi All,
i am creating a news Module the News Title only showing the content not showing .
. so the News List is
and i wants to get the Content inside each News which is for example the first list when u click the detailed content is
when i tried to use the partialView i am using the code is
but i cant able to access the contents its only displaying the Name when i try to access the summary it throws error .
so currently mycode is able to display only the List Level of News not the Detailed Level of content , can any one help me on this
hi Gayathri,
Try
item.GetPropertyValue<string>("summary")
instead ofUmbraco.Field("summary")
Umbraco.Field
will try to retreive the value from the current page you are rendering. In your case I guess this is your overview page, which doesn't have a summary property.item.GetPropertyValue<T>
will get the value from the item in your loop.Dave
hi Dave,
i got an error
'umbraco.item' does not contain a definition for 'GetPropertyValue'
the problem is i can access only the listview i am not able to access the inside each list contents , if i access the list inside content only i can able to access the summary.
but i cant reach inside the List view contents
![enter image description here][1]
Hi Gayathri
This probably happens because you are missing a namespace in your view.
Try adding this to the top of your view :
Dave
hi dave,
after i have add which u mentioned is still issue
the issue the children is currently not taking the inside detailed view its taking only the list view so summary is not exist in the list view only Name is there , where i needs to access the list inside contents
as i have mentioned i cant able to access the Particular values please check the above Reply
Hi Gayathri,
I'm understand what you are trying to do.
Maybe you can try this instead
Dave
hi Dave,
OMG thank you , you saved my Day :)
is working on a reply...