Good day! This time I want to introduce you to one of my favorite CMS (site management systems, engines) – ModX® CMS / CMF. It is on this system that we make most of our sites, and that’s why. First of all, I want to talk about the structure of this engine. In ModX, the logic of the site and its design are separated, which allows you to get full control over the output of HTML code. This engine provides the ability to use unique output templates for each page. The second is the accuracy of the code: in ModX there is the possibility of putting out repeated pieces of HTML code in the “chunks”, as a result, the output template of the web resource may look something like in the picture (click on it to enlarge).
Agree, it looks very neat, and at first glance simple. The following picture is an example of the code for the first chunk in the template that we are considering: the chunk head. As we can see, it’s more interesting there, the head tag code is there. Pay attention to the fact that in the chunk head inside there is a call for another chunk (newhead). Such nesting can be infinite, and the code can be designed as you like. What does it give? If we need to change an element on the site, for example, the logo of the site, change it in one place, and not in each template separately. This is very convenient, it will be appreciated by webmasters. PHP code is inserted in approximately the same way. Insertions of PHP code have their own name: snippets. I will not focus on them, they are very similar to chunks. The main thing that we get from ModX here: clear structured code. We don’t need to open dozens of files to understand where the class method we need is described (programmers will understand), just move down from the template by chunks or snippets.
Unique admin for a client site on ModX.
Creating websites on ModX for a client, we not only draw a unique website design for him. At the same time, we create an administrative panel so that it contains only those fields that the client needs. The following is an example of the part of the admin panel that the client can fill out even on their own. Agree, even intuitively, what and how to fill out. In addition to everything, we conduct training for the client’s employees on working with the site. This happens quickly: literally in 1 hour. A well-made resource should not cause the client the question “How to work with this?”. Everything should be clear and simple for the client. And for complex things, programmers are responsible.
In the admin panel of the sites that we do, the structure of documents is also intuitive: it is very similar to Windows Explorer. Literally one picture will convince you of this.
Document structure in the ModX admin panel
On the left we see the structure of the site documents on ModX. In the right part we see the fields intended for entering the page name, filling in meta tags, selecting a template, etc., with prompts if you forget something. Creating the resource, we carry out the initial seo optimization, configure the CNC, robots.txt, .htaccess, gluing domains with www and without www, create a page for 404 errors, as well as a site map for search engines.
If you have a desire to order a site on ModX – write or call, and we will be happy to complete any task!