
- 8
I added a new column to our products table called "FeaturesDescription" (similar to the full/short description fields already there)
How can i get this field to display in it's own tab?
How can i get this field to display in it's own tab?
<li><a href="#quickTab-ShippingInfo">@T("ShippingReturns")</a> </li>
<div id="quickTab-ShippingInfo">
@await Component.InvokeAsync("TopicBlock", new { systemName = "ShippingInfo" })
</div>
@await Component.InvokeAsync("YourComponentName", new { productId = Model.ProductId })
@{
var tabDescription = @await Component.InvokeAsync("YourComponentName", new { productId = Model.ProductId });
var isTabDescriptionEmpty = String.IsNullOrEmpty(tabDescription.ToHtmlString());
}
@if (!isTabDescriptionEmpty)
{
<li><a href="#quickTab-ShippingInfo">@T("ShippingReturns")</a> </li>
}
@if(!isTabDescriptionEmpty)
{
<div id="quickTab-ShippingInfo">
@tabDescription
</div>
}
@if (!isTabDescriptionEmpty)
{
<li><a href="#quickTab-ShippingInfo">@T("ShippingReturns")</a> </li>
}
int count = 0;
@foreach(var tabInfo in Model.Tabs)
{
@if (!isTabDescriptionEmpty && count == 1)
{
<li><a href="#quickTab-ShippingInfo">@T("ShippingReturns")</a> </li>
}
<li>
<a href="#quickTab-@tabInfo.TabKey">@tabInfo.Title</a>
</li>
count++;
}