ProcessWire icon indicating copy to clipboard operation
ProcessWire copied to clipboard

Automatic retrieval of parents of users with alternate user template

Open blynx opened this issue 8 years ago • 0 comments

Hi,

https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users

what about a better implementation of that feature? So that alternate user templates ($config->userTemplateIDs) and the parents of those users ($config->usersPageIDs) get automatically detected?

Right now I still have to retrieve the ids of the parents with a manual PDO query in the config file (because my alternate users parents grow dynamically). I stumbled upon this again since I have to use \PDO now in the site config.php in ProcessWire 3. Also as far as I can oversee it is not possible to use processwire API in config.php (for cleaner code) or to hook somewhere into the boot process? Or to set those ids in the init.php or ready.php since it is too late. ... Or did I miss something?

I mean - it works. But it could be better? : )

blynx avatar Jun 22 '16 21:06 blynx