MODX REVOLUTION Learning. MODX REVOLUTION - Basic lesson. Basic MODX Revolution Settings

About why MODX and how I got to life, I do not write. Who is interested - welcome to my. We will also assume that if you came to this lesson, then you are wondering not just creating websites, namely the creation of sites on MODX. Let's assume that you already have a default:

  • computer (or laptop) with installed operating system ( , never mind)
  • mouse to poke or clay
  • keyboard to click or squeeze
  • monitor
  • access to the Internet
  • huge desire to make sites

By the way, this is all pretty well fasten in such a device as a laptop. And if you plan to work often on the cottage - it is better to buy it. Arrange more comfortable and repeat what I will write on and everything will turn out!

To begin with, we set all the points and commas - the plan of classes. Since it is impossible to immediately take and make a website, then we will learn this gradually. Therefore, maybe the first lessons will seem a little boring or simple - as skills acquired, the tasks will be more complicated.

Studying MODX It is best to start with creating a business card site. This will help you not only understand the basic principles of the system, but also find out distinctive featureswhich are required for settling more complex and interesting tasks. By the way, this is one of the three whales of web studio earnings and it is for them that you can not only fill your hand, but also to work well (if you make a quick and find a lot of customers).

What is a business card site?

Website Business card This is a small site, consisting of several web pages and containing basic information about the organization, products or services, price lists and contact information. (C) Wikipedia

In essence, the website-business card from 4 pages can be done on the HTML goal, but to maintain such a site much harder - when adding at least one page it will be necessary to redo everything. So that content management systems Significantly facilitate the life of an ordinary content manager or website owner.

How to make a site for modex

Before proceeding with the development of the site, we need to prepare workplace. Therefore, we go to the official website with the latest version of the MODX CMS / CMF system, and swing it. The official website of the Russian owns weakly, but it does not prevent us from getting and downloading the latest version of MODX Evolution. In the time of writing the article The latest version of MODX 1.0.8. (Literally the day after the release of this lesson was announced a new version MODX EVOLUTION 1.0.9. Details on Habré http://habrahabr.ru/post/173667/)

Be carefull: MODX 1.0.8 is also last versionBut another branch of the control system, so if you just start familiarizing with MODX, do not rush to put Revolution 2. Lessons in this course will be written specifically for Evolution.

Next, you need to install a web server on your computer or immediately start developing the site on hosting. I prefer the second option, since sometimes during the transfer of the site from Lockalcost may occur unforeseen errors. It's always like that.

Official site MODX

http://modx.com/

Training materials on the creation of sites onMODX.

Snippetov parameters

http://wiki.modxcms.com/index.php/category:snippets.

The latest version of the distribution can be downloaded at http://modx.com/download/evolution/

Sequence of site creation onMODX.evolution

  1. Create a database and a user with a prefix defined by a hoster to then edit the config.inc.php file.
  2. Install MODX. Make settings.
  3. Copy site template in the ASSETS / TEMPLATES folder.
  4. The index.html template code is copied to the Minimal Templates template.
  5. Inside Path

    .

  6. Prescribe paths to scripts, pictures, styles (IMG, Link, Scrypts). For example,

  7. Determine how many templates will be on the site.
  8. Select common parts for all pages, they will be chicken. Channels are displayed in double curly brackets. For example, ((Head))
  9. The main menu of the site can be taken out in a separate Chank. .
  10. The menu on the site and the site map are displayed by the Wayfinder snippet. Description Snippet Wayfinder.
  11. The list of resources including with a description, pictures, links ... is shipped by Ditto. Description and examples of snippeet ditto.
  12. Navigation chain " bread crumbs»Displays BreadCrumbs Snippet. Description of snippet of BreadCrumbs.
  13. Site search is carried out snippetomajaxsearch. Snippet description Ajaxsearch.
  14. The form feedback - snippet eform. An example of creating a feedback form by snippet to EFORM.
  15. PHX plugin is designed to check the absence of an image in the TV-parameter, identifying parental properties, etc.
  16. You must additionally register several styles.
  17. After transferring the site to hosting:
  • Create a site map for search engines. Service for sites up to 500 pages -
    http://www.xml-sitemaps.com
  • Set up file. .htaccess..
  • Make entries in the file robots.txt. For sites on MODX we introduce edits to the sample-robots.txt file. For example:

    # DEFAULT MODX Exclusions
    User-Agent: * Indexing rights apply to any robot
    Disallow: / Assets / Cache /
    Disallow: / Assets / Docs /
    Disallow: / Assets / Export /
    Disallow: / Assets / Import /
    Disallow: / Assets / Modules /
    Disallow: / Assets / Plugins /
    Disallow: / Assets / Snippets /
    Disallow: / Assets / Packages /
    Disallow: / Assets / TVS /
    Disallow: / Install /
    Disallow: / Manager /
    # For sitmaps.xml autodiscovery. Uncomment if you have one.
    HOST: Site
    Sitemap: http: //syt/sitemap.xml

  • IN Yandex Master to report search engine About File sitemap.xml. and robots.txt.
  • IN Yandex metric Register the meter, install on the site.
  • Hello everyone, friends! This is a basic CMF lesson. MODX REVOLUTIONin which we will get acquainted with the MODX system, make the installation of the required plug-ins and execute the basic framework setting.

    Castle

    Stamp

    MODX base lesson resources:

    • pdotools Documentation: docs.modx.pro/components/pdotools/

    Installing and configuring MODX plugins

    Install Advanced MODX version, during installation, we specify that the admin folder will be called super.

    Mast Hav MODX Plugins

    The most popular and most commonly used supplements for MODX:

    1. Ace. - MODX code editor;
    2. Collections - display and management of resource collections;
    3. pdotools. - a set of basic MODX tools;
    4. Formit. - Work with forms in MODX;
    5. phpthumbof. - Working with images in MODX;
    6. Tinymce / CKEditor (to choose from) - Text WYSIWYG editor for MODX;
    7. translit. - Transliteration URL in MODX;
    8. Migx - added additional fields in MODX;
    9. AutoTemplate. - "Smart" automatic assignment of resource templates.

    Basic MODX Revolution Settings

    Go to " System settings".

    1. Section: Friendly URL

      • Pseudonyms transliteration: RUSSIAN;
      • Use friendly url: Yes;
      • Strict friendly URL mode: Yes;
      • Check on duplication URI in all contexts: Yes;
      • Use nested URLs: Yes;
      • Do not forget to rename h.Access. in .htaccess. At the root of the site.
    2. Section: Control Panel

    3. Section: Site

      • Error page 404 "Document not found": Resource ID 404;
      • Publish by default: Yes;
      • Name of the site: Name of your project.
    4. Section: System and Server

      • Send X-POWERED-BY heading: Not.
    5. Namespace: Ace

      • Font size: 18px;
      • Soft tabulation: Not;
      • Tab size: 2;
      • Editor's theme (to choose from): ambiance, chaos, chrome, clouds, clouds_midnight, cobalt, crimson_editor, dawn, dreamweaver, eclipse, github, idle_fingers, katzenmilch, kr, kuroir, merbivore, merbivore_soft, mono_industrial, monokai, pastel_on_dark, solarized_dark, solarized_light, terminal, textmate, tomorrow, Tomorrow_Night, Tomorrow_night_Blue, Tomorrow_night_Bright, Tomorrow_night_eighties, Twilight, Vibrant_ink, Xcode;
      • Togo, you can make a topic Material In the ACE editor. Instruction:

        MODX ACE MATERIAL THEME 1. System Settings\u003e Namespace "ACE": Font size: 15px Height of the edit area: 560 Invisible characters: Yes Soft tab: no Tab size: 2 Editor Topic: Tomorrow_Night 2. Files: Filesystem\u003e Super\u003e Templates\u003e Default\u003e CSS\u003e index.css: (Add at the end) .ace_Editor (Line-Height: 1.4! Important; font-face: "Menlo", "Ubuntu Mono", "Consolas", "Source-Code-Pro", MonoSpace ! Important) .ace_gutter (Color: # 666E79! Important) .ace_active-line, .ace_gutter-active-line (Background-Color: # 2A2F38! Important) .ace_scroller, .ace_gutter (background-color: # 272b33! Important). ACE_META.ACE_TAG (Color: # A6B2C0! Important) .ace_meta.ace_tag.ace_Tag-name (Color: # DF6A73! Important) .ace_Antity.ace_other.ace_attribute-name (Color: # D2945D! Important) .ace_string (Color: # 90c378 ! Important) 3. Clear cache through the menu.

    Created basic resources

    1. Page 404. - Page for configuration "Document not found". Not shown in the menu;
    2. sitemap - Resource for output [] . Empty pattern. Do not shut down in the menu. Content type: XML. Not available for search. Do not use the HTML editor;
    3. robots. - Resource for output robots.txt. Empty pattern. Do not shut down in the menu. Content Type: Text. Not available for search. Do not use the HTML editor.
    
    Top.