Show/hide page properties tab in dynamic template pages based on template name

Dynamic template created from same template type use the same page component. So if we add page properties to page component it will be available for all templates created from this template type.

Assume we have two dynamic templates created from the same template type. Lets call the templates Landing Page and Content Page. Both are created from Base Page Template Type. Now if we need some page properties for both template we can define them in page component and it will be inherited to both templates.

Break Law of Demeter Gracefully In Java

The Law of Demeter (LoD), or Principle of Least Knowledge, is a design guideline in object-oriented programming that promotes loose coupling. It states that an object should only interact with its immediate collaborators, avoiding method chains (e.g., obj.getA().getB().getC()). Following LoD improves encapsulation, maintainability, and modularity. Read more about Law of Demeter.

Let’s be honest, often times we have to break the Law of Demeter. In this article, we will discuss how to break the Law of Demeter gracefully in Java.