Problem/Motivation

hi,
sometimes a config profile isn't enought to map folders for a user, especially if folders depend on a dynamic condition.

Proposed resolution

introduce an alter hook to be able to add/filter folders list dynamically

Remaining tasks

RTBTC the patch

User interface changes

none

API changes

none

Data model changes

none

CommentFileSizeAuthor
#2 imce-dynamic_folders-3309195-2.patch1.2 KBizus

Comments

izus created an issue. See original summary.

izus’s picture

Status: Active » Needs review
StatusFileSize
new1.2 KB

Hi,
here is a patch introduccing the alter hook
hope it helps

ufku’s picture

Status: Needs review » Closed (won't fix)

You can do this using an IMCE Plugin. See processUserConf() method of ImcePluginInterface.

Just alter $conf['folders'] array.

izus’s picture

Thanks for the explanation.
i made it work as you advised.
Thanks a lot :)