Adding content if parent has special type

Silverstripe Version:

I have a spacial type of section. Is It possible make something like if Parent has “name if type” (for me is name of type: Projects) and than some of code… because I dont want have that code on all pages - I want submenu only in this subpages.

If I understand your question correctly, you want to have some logic that can output code when the parent page is for instance ‘ProjectsPage’?

<% if $Parent.ClassName.ShortName == 'ProjectsPage' %>
	<div class="hasParentOverviewPage">
<% else %>
	<div class="inner typography line">
<% end_if %>