Sam
05/27/2024, 12:52 PM<IBannerProperties>
. However, the issue is that the modifier
variable relies on inheritance from the <IPageSettingProperties>
composition. Is there any way I can inherit from more than one composition at a time?
TIA!
@inherits Umbraco.Cms.Web.Common.Views.UmbracoViewPage<Homepage>
@{
var bannerTitle = String.IsNullOrWhiteSpace(Model.Subtitle) ? Model.Title : Model.Subtitle;
var modifier = String.IsNullOrWhiteSpace(Model.ColourTheme) ? "" : $"__{Model.ColourTheme}".ToLower();
var image = Model.Image;
}
<section class="banner @modifier">
<div class="container-fluid">
<div class="row">
<div class="col-12">
<div class="banner-content">
<h1 class="banner-title">@Model.Title</h1>
<p class="banner-title">@bannerTitle</p>
</div>
@if (image != null)
{
<div class="banner-image">
<picture>
<img src="@image.Url()" alt="">
</picture>
</div>
}
</div>
</div>
</div>
</section>
D_Inventor
05/27/2024, 1:03 PMskttl
05/27/2024, 1:07 PMSam
05/27/2024, 1:21 PMD_Inventor
05/27/2024, 1:30 PMSam
05/28/2024, 8:01 AM