For example, I have a root template shared by all customer account pages. I want to display a link to the dashboard on all pages except the dashboard (obviously).
How could I detect the page is the dashboard (from PHTML) and hide it? Like this:
<?php if (someMagicDetectTheModuleMethod() !== 'someDashboardIdentifier'): ?> <a href="#">Dashboard</a> <?php endif; ?>