@Bartonsweb, you've got a perfect spot to use else_if
I agree with you, that the code is real mess, especially with weird php, which is totally unnecessary.
- Code: Select all
<title>
<cms:if k_is_page >
<cms:show page_title />
<cms:else />
<cms:if k_is_folder || k_is_archive>
<cms:show page_title />
<cms:else_if k_is_home />
<cms:get_custom_field 'page_title' masterpage=k_template_name />
</cms:if>
</cms:if>
</title>
I agree with you, that the code is real mess, especially with weird php, which is totally unnecessary.