title: i want only published children in umbraco
body: <p>I want only those children who are publish in content folder.</p>
  
  <p>this is my below code:</p>
  
  <pre><code>&lt;umbraco:Macro runat="server" language="cshtml"&gt;
                          @foreach (var item in Model.Children)
                            {
                                  &lt;h3 class="vacancyH"&gt;@item.jobTitle&lt;/h3&gt;
  
                                  &lt;table class="vaccTbl"&gt;
                                  &lt;tr&gt;
                                  &lt;td class="vaccDetailTitle"&gt;Salary &amp;amp; Benefits:&lt;/td&gt;
                                  &lt;td class="vaccDetailDesc"&gt;@item.salaryBenefits&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                  &lt;td class="vaccDetailTitle"&gt;Employment Type:&lt;/td&gt;
                                  &lt;td&gt;@item.employmentType&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                  &lt;td class="vaccDetailTitle"&gt;Department:&lt;/td&gt;
                                  &lt;td&gt;@item.department&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                  &lt;td class="vaccDetailTitle"&gt;Report to Position:&lt;/td&gt;
                                  &lt;td&gt;@item.reportToPosition&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                  &lt;td class="vaccDetailTitle"&gt;Location:&lt;/td&gt;
                                  &lt;td&gt;@item.location&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                  &lt;td class="vaccDetailTitle"&gt;Date of Description:&lt;/td&gt;
                                  &lt;td&gt;@item.businessArea&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                  &lt;td class="vaccDetailTitle" valign="top"&gt;Summary:&lt;/td&gt;
                                  &lt;td class="tablep"&gt;@item.vacancySummary&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;tr&gt;
                                  &lt;td colspan="2" valign="middle"&gt;&lt;img src="/images/wordicon.jpg" alt="" class="docIcon" /&gt;&lt;a href="@item.fullJobDescription" class="vaccDoc"&gt;Download the Full Job Description&lt;/a&gt;&lt;/td&gt;
                                  &lt;/tr&gt;
                                  &lt;/table&gt;
                                  &lt;div class="vaccCloseDate"&gt;Application Deadline: @item.applicationDeadline.ToString("dd MMMM yyyy")&lt;/div&gt;
                                  &lt;div class="vaccApplyForPosition"&gt;&lt;a href="/vacancy-apply.aspx?jobtitle=@item.jobTitle"&gt;Click here to apply&lt;/a&gt;&lt;/div&gt;
  
                            }
                      &lt;/umbraco:Macro&gt;
  </code></pre>
  
  <p>By this i get the all children which are not published..</p>
  
  <p>Now i want the only published children.</p>