• Admin panel modx. How to unlock a user or reset the password from the MODX Revo, MODX Evo admin panel via phpMyAdmin. Call it “manager” and check the “Active” box. Save

    So, the system is already installed and even functioning. This is visible in the browser. But if you go to the site now, you won’t see anything except a meager English inscription.

    So let's start slowly understanding the admin panel.

    Where is the MODx admin panel?

    To log in to the admin panel, go to http://site.name/manager, where site.name is the domain address of your site. A simple window will open where you will need to enter the administrator login and password that you specified during installation.

    And here she is in front of you - MODx Evolution control system in all its glory. After installation from scratch and the first authorization in the admin panel, you will be automatically redirected to the system configuration page (this is where the main settings are set). After making the necessary changes, click the “save” button - otherwise the results will not change.

    In the future, you can get to the settings page from the admin panel by sequentially clicking the Tools - Configuration tabs.

    Basic MODx Settings

    Now it's time to start tweaking the basic system settings. In principle, most parameters do not need to be changed, since the system is already user-oriented. But if there is a need to tweak something somewhere, then you will at least know approximately where to look for it. Usually, setting up MODx takes no more than a minute, especially since next to each parameter there is a small hint in Russian - it’s just a lot of text, and you actually don’t need to do anything there

    "Site" tab

    Site title

    Here you must enter the name of your site. In this field you can write anything you want, or one word, or the name of a domain, or even the name of a site with a small description of it. Because Since we will make this heading appear in the page title in the future, I would suggest entering a short description. Such a description will never be superfluous for search engines.

    Control language

    From the drop-down list you can select the language into which the administrative part of the management system will be completely translated. It's just super convenient. First, you can work with specific language skills with clients from different countries, while giving them the opportunity to manage their site in their native language. The list of supported languages ​​is quite large, from Bulgarian to Spanish, and even includes such exotic languages ​​as Japanese, Chinese and others. Secondly, you don’t have to look anywhere for localization of your system into any language or ask on various forums for help with translation. Thirdly, the translation provided by the system is a professional, complete translation, that is, absolutely all pages and minor elements (tooltips, comments, etc.) are translated.

    The default language is the one you specified when installing MODx. We have Russian-UTF8 by default, leave it unchanged and move on to the next field.

    Encoding

    Here we set the encoding of the site pages. From the drop-down list, select "Unicode (UTF-8) - utf-8".

    If this option is enabled, all ampersands (&) in links will be replaced with & construction in accordance with the XHTML format. Don’t bother too much here - leave the default “Yes”

    First page

    Here you need to enter the ID of the page that you want to make the start page; the visitor will go to it when the site loads. The default is ID=1. I advise you to leave it as is, but keep in mind where changes need to be made in order to temporarily direct the visitor to another page, for example, with very important information or news, without changing the main page.

    404 error page

    Enter the ID of the page that should be taken to by a visitor who types in the browser the address of a non-existent page, or clicks on a “broken” link on your site. This can happen periodically, and you have the opportunity to direct such a user to a special page that notifies you that the page is missing. To be honest, it is now very fashionable to create interesting designs for 404 error pages, and many, when developing website designs, include requirements for the original 404 page in the technical specifications.

    By default ID=1, this means that a person who requests a non-existent page will be sent to the main page of the site. As long as you don’t have a 404 error page design, you can leave it as default and we’ll decide what to do with it along the way.

    Access Denied page

    ID of the page that visitors should see if they try to access a closed page (403 - access denied). Leave it unchanged. The default is one.

    Site status

    Leave "online". If you select "offline", site visitors will see a message that the site is unavailable and will not be able to view the site itself. This can be useful when carrying out technical work on the site, updating the design, structure, etc., in order to limit access to the site and leave it only to the administrator.

    “Site-unavailable” page and message about site unavailability

    If for some reason you have set the site status to “offline”, then you can use these fields to set the ID of the page that visitors should see if they try to access the site. By default, the page is not created, and the visitor will simply see a message about the site being unavailable, which you can change in the “message about the site being unavailable” field.

    Register visits

    Provides data to the analytics plugin, such as a flag that determines whether to count views on a particular resource. Leave “no” until we need it.

    Number of best indicators

    Number of best indicators in statistics reports. Leave the default - 10.

    Default template

    You need to select a template that will be applied to new resources by default. When editing a resource, you can set any template. Initially, the “Minimal Template” template was created and installed by default. For now we will leave it as it is, later we will change it or create a new one.

    Publish by default

    While you are working on your local computer, you can set the value to “Yes” so that new pages are immediately published after saving. But when managing a ready-made website published on the Internet, it is better to set it to “No”, so that after saving you can modify the publication, make a preview, correct errors, if any, and, only after that, check the “Publish” checkbox in the page settings . This way you can avoid website visitors viewing intermediate versions of your publications.

    "Cacheable" by default

    Select Yes to have new resources cached by default when created.

    A few words for beginners about what caching of Internet pages is and why it is needed. Caching of Internet pages is the process of storing frequently requested documents on (intermediate) proxy servers or the user's machine, in order to prevent them from constantly being downloaded from the source server and reduce traffic. Alternatively, caching of web pages can be carried out using the CMS of a specific site to reduce the load on the server during high traffic. This means that when a user loads the same page again, it will be partially taken from the cache, and loading will take less time.

    "Searchable" by default

    In most cases, you will need to create pages that are searchable throughout the site, so leave this set to Yes. Using this parameter, you can hide various service pages on your site from the internal search engine.

    Add to default menu

    Leave "Yes" to enable automatic addition of the item to the menu.

    Content-Types

    Here you can add Content-Types for the site. You don't have to add anything for now.

    Time difference

    Select the adjustment (number of hours) between the time at your location and the server location. This parameter can be set after publishing the site on the Internet. For example, if I am in Perm, and the server is located in Germany, then I can enter a 5 hour correction (time zone difference) to synchronize the time.

    Server type

    The default is “http”, if you intend to use https connections on your site, indicate this here.

    Note: https (Hypertext Transfer Protocol Secure) is an extension of the http protocol that supports encryption. Provides protection for transmitted data and is used to provide authentication and a secure connection. Widely used, for example, in payment systems in online stores in order to encrypt transmitted credit card data. Currently, https is supported by the most popular browsers.

    Check server HTTP_REFERER headers

    Leave the default - “Yes”.

    RSS News Feed and RSS Security Feed

    The addresses of the MODx RSS news feed and the security RSS feed are included. These feeds will be broadcast on the main page of the administrative panel on the “MODx News” and “Security News” tabs. They will broadcast news about the release of new versions of MODx or about discovered vulnerabilities. This is very convenient; without leaving the admin panel, you can monitor all updates and warnings from developers and quickly respond to them. The news, however, is broadcast in English, but even a superficial knowledge should be enough for you to understand it. If you do not want to use this RSS feature, you can delete the addresses of the RSS feeds, or enter there the address of any of your favorite feeds that you periodically read.

    Friendly URLs Tab

    Use friendly URLs

    Select Yes. This setting allows you to allow the use of friendly URLs on the site. It was for this parameter to work that at the very beginning of the installation we renamed the ht.access file, included in the MODx distribution, to .htaccess; after setting the value to “Yes”, additional items will appear for further setting up friendly URLs.

    Prefix for friendly URLs

    We leave this field empty.

    Suffix for friendly URLs

    Here you can specify a suffix for friendly URLs, which will be separated by a dot from the page alias. In particular, this looks like file extensions, such as .html, .htm, .php and others. The default is .html, but you can change it or remove it altogether. But, in my opinion, with the presence of this suffix, the URL of the pages looks somehow more complete, so I left it as default.

    Use aliases in URLs

    Select “Yes”, then the value entered in the “Alias” field will be used as the page alias when editing the page. For example, this field will contain about and you left the suffix for friendly URLs as.html, which means the URL of this page will look like this - http://your_site/about.html. If the “Alias” field is left empty, the URL will be generated based on the document ID and will look like http://your_site/2.html, where 2 is the page identifier.

    Use nested URLs

    Select Yes to get a nested URL structure. For example, if the child resource is called "child" and the parent resource is called "parent", we will get a URL like this: http://example.com/parent/child.

    Allow duplicate aliases

    Select Yes to allow duplicate aliases. Note: This setting must be used in conjunction with the Use Nested URLs feature being enabled.

    Automatically generate nickname

    Select Yes to have the system automatically generate aliases based on page titles. That is, even if you leave the “Nickname” field empty when editing or creating a page, it will be generated automatically based on the page titles. If the site is English and the page names are written in Latin, then to enable the automatic generation of aliases, just this checkbox is enough. If the site is Russian, and therefore the page names are written in Cyrillic, you should configure the TransAlias ​​plugin (after saving the configuration settings). To configure the plugin, you need to follow: Elements tab → Element management → Plugins → TransAlias ​​→ Configuration tab → Set the Trans table parameter to Russian and save.

    Users Tab

    On the users tab, all parameters can be left unchanged.

    On this tab, you can edit email templates sent to users upon registration, when changing their password, and so on. You can also configure the number of failed login attempts that are allowed before the user is locked out (to prevent attackers from trying to guess your password). To enhance security during authorization, you can enable a security code, and in order to enter the admin panel you will need to enter a code that is unrecognizable by various types of scripts (shown as a graphic image), in the “Words for generating CAPTCHA codes” field, you can enter the words , which will be used to generate these security graphics.

    Interface and Presentation Tab

    Show tab with META tags and keywords

    Set to “Yes”, then when editing a resource, an additional “Keywords” tab will appear, where you can select from a list of keywords those that are suitable for the page you are editing.

    Path to files

    Enter the physical path to the files folder. On your local computer there will be something similar: Z:/home/site/www/assets/. When transferring a finished site to a server (if you developed the site on a local computer), this path is not always entered automatically, therefore, when transferring the site to hosting, I strongly recommend that you check this field and, if necessary, change it to the required one. On the server, this path might look something like this: /home/site/public_html/assets/.

    On the “Interface and Presentation” tab, you can also specify file formats that can be loaded into folders with images, flash files and media files through the admin panel (this is indicated so that only graphic files can be loaded into the folder with images and so on). On the same tab you can configure the HTML editor. Leave everything as default for now.

    File Manager Tab

    Path for file manager

    Enter the physical path to the root folder for the file manager to work correctly. This field also needs to be double-checked for correctness when transferring the finished site to the server. On a local machine, the path may look like Z:/home/site/www/, and on the server /home/site/public_html/.

    Files allowed for uploading

    Here you can specify, separated by commas, which extension files can be uploaded to the server via the file manager.

    Maximum download size

    Maximum size of uploaded files, value in bytes. Leave it at the default (1048576), but keep in mind where you will need to change it if necessary.

    Rights to a new file and rights to a new folder

    Leave as default.

    Well, that's all, actually. You've become familiar with the basic settings that you can configure on the system configuration page. You can return to the configuration page at any time, so don't worry if you missed anything.

    If, when logging into the site's admin panel, you enter the wrong login or password several times (by default 3 times), the management system will block you and you will see the message “Your access to the management system is blocked by the administrator.”

    The simplest solutions:

    1. If for some reason you do not know the “Email account” or there is no access to this email, you can restore access by changing the email in phpMyAdmin:
      modx_user_attributes and in the field email
    2. Login to the database via phpMyAdmin. Finding the table modx_user_attributes
      ;
    3. Exit phpMyAdmin, refresh the login page in the admin panel, after which you can log into the admin panel using your username and password.

    Important: The "modx_" prefix in your database may be different! Depends on the database settings.

    How to change MODX Revolution user password via phpMyAdmin

    1. modx_users hash_class put hashing.modMD5, fields salt and cachepwd we clean, and in the field password change the value to:

      Now the password for the control panel is qwerty

    qwerty to safe.

    How to unblock a MODX Evolution admin panel user

    1. Click "Forgot your password?" indicate “Email account” and you will receive a link to reset your password by email.
    2. If you do not know the “Email account” or there is no access to this email, you can restore access by changing the email in phpMyAdmin:
      Login to the database via phpMyAdmin. Finding the table modx_user_attributes and in the field email change your email to yours and return to step 1 to request a password change.
    3. Login to the database via phpMyAdmin. Finding the table modx_user_attributes and change the contents of the fields to 0 (zero) (if there is something there):
      blocked, blockeduntil, failedlogincount;
    4. Exit phpMyAdmin, refresh the login page in the admin panel, everything should work.

    How to change MODX Evolution user password via phpMyAdmin

    1. Login to the database via phpMyAdmin. In the table modx_manager_users the desired user has a value in the field password change the value to:

      d8578edf8458ce06fbc5bb76a58c5ca4

      When editing, in the phpMyAdmin "Function" column, specify MD5. Now the admin password is qwerty(above is the qwerty password in the MD5 hash)

    2. Exit phpMyAdmin, refresh the login page in the admin panel, enter your login and new password, everything should work.

    Don't forget to change the user's password in the admin panel qwerty to safe.

    Many MODx developers already know the answer to how to get out of this situation. However, for beginners who have recently become acquainted with CMS MODx, this problem often occurs (I drew this conclusion from the number of requests with a similar problem). If you have a similar situation, don’t be alarmed, it’s not a mistake! This is, so to speak, a defensive reaction of the system to the possibility of guessing a password when entering the administrative part of the site.

    The essence of the problem.

    The point is to protect yourself from password guessing when entering the administrative part, CMS MODx provides excellent protection. Its essence is to block the user if the password is entered incorrectly three times in a row. The measure is necessary and extremely useful.

    Unlocking a CMS MODx user

    To unblock a user, go to our database, for example, through phpMyAdmin, then find the “modx_user_attributes” table and set the value of the “blocked” field of the desired user to “0”. The user's blocking has been lifted, we are checking.

    Go to “yoursite”, “zone”/manager/ and enter your data - login and password. The entrance must be accessible.

    To avoid such a situation, I recommend not using “admin”, “user”, “superuser”, “administrator”, “manager” and other popular logins when installing the system as a user login with “administrator” rights. Attackers will first start working with this phrase as a login. Do not use simple passwords - “qwerty, 12345”; it is better that your password contains a combination of upper and lower case letters, as well as numbers.

    Good! Again I’m being a philanderer and for over a month now you haven’t seen a single post from me. I'm correcting myself. This post will be of interest to developers on the system Modx Revolution. In this lesson I will tell you how to make website editing easier for an ordinary manager who doesn’t understand websites at all.

    First, I’ll remind you how to set up the Modx Revo admin panel - I wrote about this in. I have some changes, or rather a simplification of this very admin panel. The fact is that in that access policy ( for those who do not understand - read the post at the link more carefully) tabs are indicated that an ordinary manager will not need in any way, but on the contrary, can throw him into a stupor (for example, such tabs in the menu as "system setup" or "file source"). I propose a new access policy. Feel free to follow all the points that are described in that article, but on the 6th point, leave only these parameters checked:

    • change_password (User can change his password)
    • change_profile (User can edit their profile)
    • class_map (See the list of classes in the class map)
    • countries (See list of countries)
    • delete_document (Delete and move resources)
    • directory_create (Create directories on the file system)
    • directory_list (Get a list of subdirectories for a directory on the file system)
    • directory_remove (Remove directories on the file system)
    • directory_update (Rename directories in the file system)
    • edit_document (Edit resources)
    • file_create (Create files)
    • file_list (View a list of files in a specific directory)
    • file_manager (Use file manager)
    • file_remove (Remove files)
    • file_tree (See the file tree in the left navigation panel)
    • file_update (Update files)
    • file_upload (Upload files to a folder)
    • file_view (View file contents)
    • frames (Use MODX backend)
    • help (See Help page)
    • home (See welcome page)
    • list (Possibility of "listing" any object) "List" means getting a collection of objects)
    • load (The ability to "load" objects, or be able to return them as an instance of an object at all)
    • logout (Ability to log out as a user)
    • menu_site (Show the “Site” item in the top menu)
    • menu_tools (Show the “Tools” item in the top menu)
    • menu_user (Show the “User” item in the top menu)
    • new_document (Create resources)
    • publish_document (Publish or unpublish resources)
    • purge_deleted (Empty trash)
    • resource_duplicate (Create a copy of a resource)
    • resource_quick_create (Use "Quickly create a resource" in the context menu)
    • resource_quick_update (Use "Quick update resource" in the context menu)
    • resource_tree (See the resource tree in the left navigation panel)
    • save_document (Save resources)
    • sources (Manage file sources and file source types)
    • source_delete (Delete file source)
    • source_edit (Edit file source)
    • source_save (Create and save source files)
    • source_view (See the source of the files)
    • tree_show_resource_ids (Show ID in resource tree)
    • view (Ability to “view” objects)
    • view_document (View resources)

    With these settings, the admin panel will have only everything a regular manager needs.

    Removing unnecessary TV parameters and placeholders from the admin panel

    Often, for fairly simple sites (which are the majority) there is no need for a bunch of incomprehensible placeholders like "Nickname", "Abstract (introduction)" or all "Settings" with a bunch of incomprehensible parameters that are unnecessary for the common man. All you need is "Title" And "Resource Contents". Now I will show, using the example of one of my sites, how to set up a simplified admin panel for a manager.

    Go to “Form settings”

    Next, click on “Create a new profile”

    Call it “manager” and check the “Active” box. Save

    Right-click on the profile and click “Edit”

    In the window that opens, click on “User group” and add “manager”

    We return to “Profile” and click on “Create a new set of rules” (I have already created several)

    In “Action” we indicate “Update resource”

    Most likely, you will already have a template and page created, and at this stage you will be setting up the admin panel, so I advise you to also select "Update resource", and then just copy the parameters to "Create resource". As you probably already guessed, these are rules for editing a specific template, and "Action" determines when to resort to these rules: when creating or when editing. If you don’t understand, it’s okay, then everything will become clear.

    In the template, select the template for which you want to set rules

    I will assign rules to the template "Services".

    Tip: I find it very convenient to open two browsers: in one ( Chrome) admin panel under “admin”, and in the second ( Opera) under “manager”

    Next we edit the newly created set of rules

    Now the fun begins. If you are new to this section, then you may feel ill from a bunch of incomprehensible parameters. But after a while you will begin to figure out what's what.

    Rule Set Information and Resource Fields Tab

    “Information about the set of rules and resource fields” contains all the parameters that we see in the admin panel

    Here they look like this:

    For example modx-resource-content- this is the parameter responsible for the “Resource Contents”. If we uncheck the box, then when editing the “Service” template we will not see “Resource Contents”.

    All parameters are separated into separate blocks. For example in modx-resource-main-left

    included parameters such as:

    • Title (pagetitle)
    • Extended title (longtitle)
    • Description
    • Abstract (introtext)

    If we uncheck the boxes, they will disappear from the admin panel (remember that this will only happen for a specific template, in this case the “Service” template)

    But we won’t do this; it’s better to decide what placeholders we need and leave only them. In this case, I need a Title, Menu Item, Resource Content and TV parameters that I created myself. I unchecked the following options:

    and got this admin panel:

    I don't really like what the main tab is called "Document". It can be renamed in the section "Regions"(more on how to do this below)

    Regions Tab

    "Regions" are responsible for blocks. Let's say modx-resource-settings is responsible for the entire blog, where the title, description, template selection, nickname, checkboxes "Published" and so on. Perhaps, for clarity, I will make screenshots-cheat sheets. Let's look at each block separately:

    modx-resource-settings

    This is the whole block called "Document"

    So here's how to rename the block "Document", let's say in "Basic information" needed in "Tab title"(see previous screenshot) opposite modx-resource-settings write "Basic information"

    modx-resource-main-left

    Left side of the block "Document"

    modx-resource-main-right

    Right side of the block "Document"

    modx-page-settings

    This is the entire tab "Settings"

    modx-page-settings-left

    Left side of the block "Settings"

    modx-page-settings-right

    Right side of the block "Settings"

    modx-page-settings-right-box-left

    modx-page-settings-right-box-right

    modx-panel-resource-tv

    The entire TV parameters tab

    modx-resource-access-permissions

    This setting does not affect the display of blocks.

    Well, with tabs "regions" we figured it out. Let's continue editing the rule sets for the template "Services"

    I need to pull my tv options to the main tab and remove the tab "Settings".

    First, remove the “Settings” tab

    This is done by unchecking the following regions:

    Tab "Settings" disappeared

    Now move the TV parameters to the main tab and remove the “Additional fields” tab

    I have TV "icon" And "img". In order to transfer them to the main tab, you need to go to the section "Additional fields" V "Region" specify a new region modx-resource-main-left(this is done by double clicking the mouse)

    and uncheck modx-panel-resource-tv(and at the same time with modx-resource-access-permissions) in section "Regions"

    Now the admin panel looks like this:

    We still have two TV parameters left: title And snippet. I made them specifically for SEO, so that the manager would not have them in sight, but their SEO specialist or I myself used these parameters. Yes, it certainly could have been used, say description And introtext for these purposes, but I need to hide them in another tab called "SEO optimization"(placeholders by default, unfortunately, cannot be transferred to other tabs)

    Create a new tab “SEO optimization”

    To do this, go to the section "Regions" and press the button "Create a new tab"

    Now we paste this id into additional fields in our TV parameters title And snippet

    And look at the result:

    The result was a clean, easy-to-administer page with a tab "SEO optimization".

    You can learn a lot from this article and perhaps rediscover the benefits of Modx Revolution and how flexible it can be in development. That's all for me! Until new posts.