Desired Flexibility

The idea is simple and it is not new: allow multiple websites, multiple pages per website, multiple CSS designs, multiple types of content, multiple positioning on the page, multiple... you get the point.

MBFramework allows multiples

 The framework follows some basic patterns:

  • a website has multiple pages
  • a website may be have a default layout
  • a page may may override the default website layout
  • a page may be public or private
  • a page may have different placeholders like header, main content area, sidebar and footer
  • a page may need to adjust the number and position of placeholders
  • a placeholder may have different sections
  • a section displays content represented by a module
  • a module may be displayed in any section in any placeholder in any page
  • a module is a self-contained unit-of-work responsible for analysing its requirements and producing a result
  • a module must have an assigned layout (Smrty template) which will be incorporated in the final HTML response to the browser. To improve flexibility and multi-language, it is recommended to link the module to a text file.