MODx Truss – Template framework for MODx
What is MODx Truss?
Simply put it is a quick start template framework for rapid web development for MODx Framework based websites. Its highly modularized template helps in creating website with any kind of design you like. It is loaded with 960gs, collapsible module positions, jQuery, colors and font configuration and much more. MDx Truss is simple easy yet a powerful template framework for MODx Framework.
What is 960gs?
960 Grid System: The 960 Grid System is an effort to streamline web development work flow by providing commonly used dimensions, based on a width of 960 pixels. More info on the 960 Grid System please check http://960.gs. There are two variants: 12 and 16 columns, which can be used separately or in tandem. The only this we restrict right now is the 16 column layout. You can also create your custom width based grid. The website to create the custom grid css is http://grids.heroku.com/
More videos on 960gs: http://www.youtube.com/watch?v=96dPGw3NSsg
Later we will explain how to include the custom grid in the templates. It’s really simple.
Currently we have added 960, 1024, fluid & custom(2080) to choose from.
Features of MDx Truss
We plan to add more features in future. Help us improve with comments and suggestion.
Layout position of chunk
Installation Instruction
Note: The page refreshes when the mdx_config template is applied to the article.
Next under page settings: uncheck Rich Text and select Content Type: CSS
Next Template Variable: Configure your base Fonts Google fonts for title and body text fonts for your website:
Next Tab: mdx_base_color to set your base colors for text backgrounds and links.
Save the file.
You should be able to view the theme.css via your browser. i.e http://yourdomain.com/theme.css . If you don’t, Enable your friendly URL’s and Enable the alias. Also rename the “ht.access” to “.htaccess”
Understanding the template framework:
Templates:
Once the package is installed, under Elements >> Templates you have the base templates as in the picture below.
The “mdx_base” template is a 3 column layout. Left column + main content + Right column.
The “mdx_baseLeft+Main” template is a 2 column layout with Left + main content column.
Similarly the other templates are self explanatory.
Template variables:
The templates variable(TV) as shown in below picture play an important role in configuring the templates. The TV’s display the widgets needed for your website. For eg the top header, cpanel, header top, left-right column widgets and footer and so on.
The Google web fonts can be configured by editing the mdx_baseGoogleFont and mdx_baseGoogleFontTitle.
Chunks
The template is modularized in different chunks. Furthermore the chunks are categorized for clear understanding of the position and widgets wit holds. For instance the mdx_baseHeadmin contains the code for the head declaration<head></head>. The chunk contains the css java script title and so on …. Basically what ever needed for the head code. Similarly the chunks have also been used to display certain data that needs to be displayed in the left or right widget. The cpanel and header logo’s module also is coded in the respective chunks. These chunks are called via the TV’s in the templates for you to display on your website. You can certainly add more widgets as needed.
Snippets
We have used the following 3 Snippets:
Mobile Detection: Used to display the website on mobile and handheld devices.
ChunkListParser: To display the TV’s.
getChunks: To retrieve the chunks created.
Video’s for the following topics: (Coming Soon)