Мне нужны только те дети, которые публикуются в папке содержимого.
это мой код ниже:
<umbraco:Macro runat="server" language="cshtml">
@foreach (var item in Model.Children)
{
<h3 class="vacancyH">@item.jobTitle</h3>
<table class="vaccTbl">
<tr>
<td class="vaccDetailTitle">Salary & Benefits:</td>
<td class="vaccDetailDesc">@item.salaryBenefits</td>
</tr>
<tr>
<td class="vaccDetailTitle">Employment Type:</td>
<td>@item.employmentType</td>
</tr>
<tr>
<td class="vaccDetailTitle">Department:</td>
<td>@item.department</td>
</tr>
<tr>
<td class="vaccDetailTitle">Report to Position:</td>
<td>@item.reportToPosition</td>
</tr>
<tr>
<td class="vaccDetailTitle">Location:</td>
<td>@item.location</td>
</tr>
<tr>
<td class="vaccDetailTitle">Date of Description:</td>
<td>@item.businessArea</td>
</tr>
<tr>
<td class="vaccDetailTitle" valign="top">Summary:</td>
<td class="tablep">@item.vacancySummary</td>
</tr>
<tr>
<td colspan="2" valign="middle"><img src="/images/wordicon.jpg" alt="" class="docIcon" /><a href="@item.fullJobDescription" class="vaccDoc">Download the Full Job Description</a></td>
</tr>
</table>
<div class="vaccCloseDate">Application Deadline: @item.applicationDeadline.ToString("dd MMMM yyyy")</div>
<div class="vaccApplyForPosition"><a href="/[email protected]">Click here to apply</a></div>
}
</umbraco:Macro>
Благодаря этому я получаю всех детей, которые не опубликованы.
Теперь я хочу только опубликованных детей.