In which variable is the information stored which page is assigned to the main one and is it possible to change it without making changes to the database.

  • Everything that changes in the admin, it is in the database. Php can rewrite their files, of course, but that would be on camilfo. The only user data that is stored as variables is in the config file, as far as I remember, there is information about the domain, but not about the main page. In general, I do not advise manually changing such things in the database. - larrymacbarry
  • @larrymacbarry, can you then suggest an option, how can you switch the главную страницу "on the fly"? Without admin and without affecting the database. Already a lot of rummaged information, but the result is still zero. - medvedev
  • What do you need to do and why? So that a server using php could change the main page? - larrymacbarry
  • @larrymacbarry, probably not even the main page, but the main menu (they are simply connected). While I understand the question - I rethink. It turns out that news and some modules look at the main menu. The menu, as you know, is not one, it is displayed depending on the url (for example: site.ru , site.ru/1-menu , site.ru/2-menu ). Domain one. So that everything is displayed correctly, you need to switch the main menu. - medvedev
  • why you don’t have to do everything on separate pages site.ru, site.ru/1-menu, site.ru/2-menu, or change the grid on the frontend depending on the query "site.ru?menu=2" - larrymacbarry

0