I read about creating applications ModX and so on. It creates a full application. I decided not to get into the jungle so far ...
In essence, you need to display the lines from your table in the admin panel (the line is id + text field + numeric field) and opposite to one tick - delete. Or two checkboxes - delete and edit one single text field.
How can you do the minimum labor costs?
2 answers
If you need not just to “pull out” - but also to organize the possibility of deletion - then in any case you need to go to Google and read about creating your component for the modiks. Here is a good link to the whole course where everything is described with all possible moments: https://bezumkin.ru/training/course1/
- Bezumkina I read sometimes. And if as a minimum program - just to bring out the view so to speak? - Sergey V.
- oneIf you simply output, you can create a page according to the instructions - rtfm.modx.com/revolution/2.x/developing-in-modx/… - Vasis
I did it by changing tactics (admin panel, we do everything on the front):
- Install Login
- On the page I placed a call to the Login form and a call to the snippet, which displays information from the database.
In the snippet, I added a condition for checking the user's authorization:
if ($modx->user->isAuthenticated()) { echo 'ok блаблабла'; }Now, for an unauthorized user, only the form is displayed, for those authorized on the front panel, all cookies are from a snippet.
In terms of security, I believe that the level is not lowered, since everything is strictly linked to checking the password, the user will be the only one, so this tactic is enough for the eyes. Moreover, the required logic of the user's actions will be completely covered and NOT COVERED with billions of functions that are in the admin panel, that is, in other words, there is nothing for him to do)))
Criticize!))