First, let me say I am REALLY new to all of this. Code and development is not my area of expertise. However, I have forced myself to learn in order to help out a family friend. My website is extremely close to being finished, but I am stuck on one snag.
I have, like many people here a drop-down styled menu. My menu only has two levels - the main one and the subpages. The client here likes how it looks, but there is one section in which she does not want to have the subpages appear in the drop-down menu. Reading other postings, the solution seems to be to use "Show in menus?" toggle in the cms.
This has led me to a new problem. The holder page, no longer shows the content I was retrieving from it's children pages. The solution for this seems to be to use the AllChildren control instead of just using Children since it will then 'see' these pages which are not meant to show in the menus.
That worked, but has also led me to a new and hopefully final problem with all of this. The problem is using the 'AllChildren' control is pulling information from all of the unpublished children pages too (orange highlighted pages in the cms). I can't have these unpublished pages appearing in the published site. Here is the code being used in my holder.ss file:
<% include PageTitle %>
<% if AllChildren %>
<p class="Normal">Below are the current positions available</p>
<% control AllChildren %>
<a href="$Link">Information supplémentaire >></a></p>
<% end_control %>
<% else %>
<p class="Normal">Désolé, il n'y a aucun emploi disponible en ce moment.</p>
<% end_if %>
Again, I am like super-noob with everything here so please take that into consideration when responding. Any help would be greatly appreciated.