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
Is this still valid for V7?
http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors/Radiobutton-List
For v7.1+ you should use the samples here instead
thank you
Hi jeavon, what about partial view ? can we use same code in Umbraco.Web.Macros.PartialViewMacroPage file or some thing else need to workout?
The same code will be fine
but i didn't get selected value correct, every time i get same result as true.
for ref- here is my code
@inherits Umbraco.Web.Macros.PartialViewMacroPage @{ var home = @Umbraco.TypedContentAtRoot(); string mediaIds = ""; var GalID = CurrentPage.TopBannerID; var Seektime=0;var Isautoplay=false;var IsActive = true; var strIsautoplay = "";} @foreach (var childPage in home) { if (childPage.DocumentTypeAlias == "gallerys") { foreach (var childsubPage in childPage.Children) { if (childsubPage.DocumentTypeAlias == "gallery") { if (childsubPage.Id == GalID) { if (childsubPage.GetPropertyValue<Boolean>("active")) { mediaIds = childsubPage.GetPropertyValue<string>("selectimages"); Seektime = childsubPage.GetPropertyValue<Int32>("Seektime"); Isautoplay = childsubPage.GetPropertyValue<Boolean>("AutoPlay"); break; } else { IsActive = false; } } } } } }
check for
if (childsubPage.GetPropertyValue<Boolean>("active"))
this line
Got solution form Dannis
Please follow below link
Solution
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Radiobutton list get value
Is this still valid for V7?
http://our.umbraco.org/documentation/Using-Umbraco/Backoffice-Overview/Property-Editors/Built-in-Property-Editors/Radiobutton-List
For v7.1+ you should use the samples here instead
thank you
Hi jeavon, what about partial view ? can we use same code in Umbraco.Web.Macros.PartialViewMacroPage file or some thing else need to workout?
The same code will be fine
but i didn't get selected value correct, every time i get same result as true.
for ref- here is my code
check for
this line
Got solution form Dannis
Please follow below link
Solution
is working on a reply...