Jump to content

DooM

Members
  • Posts

    8
  • Joined

  • Last visited

DooM's Achievements

Newbie

Newbie (2/6)

1

Reputation

  1. Thanks for the answer! I already found this, but it's just a part of what I am trying to achieve. The main problem is the possibility for user role to create/manage roles which is now possible only for superadmin. Edit: I found the solution here! I didn't saw it earlier! Sorry for creating new topic!
  2. Hey guys! I try to achieve a possibility for the client's admin account to change other users privileges. In the CMS I have superadmin account, which is for me. My client got an account with a role user, which is limited administration account. The client also got some other people, who will edit the content with role editor User story would look somehow like this: user role can add new roles and users user role can change privileges for all users (except superadmin). Eg. When the user role gives the editor role privilege to edit only articles. The Editor role will be able to edit only them. I know this functionality is possible for superadmin, but I couldn't simulate it on the user role. Is there any easy way to achieve such a feature? Otherwise, I'll have to make a module for this I guess. Thanks for any help!
  3. Also didn't work. I've solved it like this: <?= str_replace("html:", "", html_entity_decode($successMessage)); ?> But I wouldn't call it the best practice hehe ?
  4. Hey guys, I'm using Form builder module by Ryan and I'm trying to render HTML success message after form is sent using value from this field: but it renders exactly as it is written in the field, not as HTML. To render it I just use echo <?= $successMessage ?> What am I missing? Thanks for any help. ?
  5. Hello guys, I'm trying to figure out how to sync fields and templates between staging and production environments. I've found Migrations module by Lostkobrakai, but with use of it all the fields and templates must be created by API, which is kind of uncomfortable. I also tried ProcessDatabaseBackups module which can export only certain tables, but I don't think it's the best practice to do that. How do you guys solve this problem? It's very annoying to setup everything three times (dev, staging, production). Thanks a lot :)
  6. Woow, that really did work! Thanks a lot! ? The Wireshell looks awesome. I'll check it
  7. That doesn't seem to work. I've tried: $files->rmdir($config->urls->templates . "styles", true); @teppo, I tried to keep as few installation steps as possible, but yeah. Why not? I'll just add one extra step and use site profile instead. I see deleting those folders is problematic. Thanks a lot ?
  8. Hello, I'm working on something like "structure generator" for my own needs which is run after clean installation of PW to create basic structure, fields, install modules, remove unnecessities, etc. I'm trying to remove site/templates/scripts and site/templates/styles folders, but I'm out of ideas already. When I try PHP's unlink function, it says that the path doesn't exists, which is obvious, because it will try to delete those folders under FileCompiler folder. This is probably because PW compilation process? I'm initializing this mine "structure generator" in ready.php. Do any of you guys have any idea how to get rid of those folders? My styles and scripts folders are separated, so I don't need those two inside templates folder. Thanks for every advice. ?
×
×
  • Create New...