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
Hi guys i am pretty new to umbraco, and i am trying to get multible dropdown values from my product (Cars) inside this foreach. For ex.
i looked at the documentation, but cannot get it to work.
when i use @car.modelType <- name of dropdown it just write system.string[]
And when i use <>
@{ foreach (ContentModels.Product car in featuredCars.Children) {
<article class="portfolio-item" style="padding-bottom: 40px"> <div class="portfolio-image"> <a href="demos/car/car-single.html"> <img class="image-car" src="@car.Photos.Url" alt="Open Imagination"> <div class="filter-p-pricing"> <span class="p-price t700 ls1">@car.Udbetaling</span> <span class="p-price-msrp">pr.md. <strong>@car.Price DKK ex.moms</strong></span> </div> </a> </div> <div class="portfolio-desc"> <h3><a href="demos/car/car-single.html">@car.ProductName</a></h3> <span>@car.Description</span> </div> <div class="row no-gutters car-p-features font-primary clearfix"> <div class="col-lg-4 col-6 nopadding"><i class="icon-car-meter"></i><span>@car.KilometerKort</span></div> <div class="col-lg-4 col-6 nopadding"><i class="icon-car-door"></i><span>@car.Dore</span></div> <div class="col-lg-4 col-6 nopadding"><i class="icon-car-fuel2"></i><span>@car.KmL</span></div> <div class="col-lg-4 col-6 nopadding"><i class="icon-car-signal"></i><span>@car.Geartype</span></div> <div class="col-lg-4 col-6 nopadding"><i class="icon-car-wheel"></i><span>@car.FaelgeStr</span></div> <div class="col-lg-4 col-6 nopadding"><i class="icon-car-care"></i><span>@car.Argang</span></div> </div> </article> } }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Getting dropdown values of multible dropdown inside my foreach
Hi guys i am pretty new to umbraco, and i am trying to get multible dropdown values from my product (Cars) inside this foreach. For ex.
i looked at the documentation, but cannot get it to work.
when i use @car.modelType <- name of dropdown it just write system.string[]
And when i use <>
@{ foreach (ContentModels.Product car in featuredCars.Children) {
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.