If for some reason you need to create many login destination rules, there is currently no way to set defaults for new rules. Many rules are needed e.g. if there are multiple registration questionnaires per role. Also currently the new rule always is inserted by default below old rules when the rules have the same weight. Because the delta for the weight selection is always the default 10, after 20 rules it might not be possible to get a new rule on top of the list - at least without changing the weight of some other rule(s).
The attached patch adds the possibility to set many default values for new rules, such as destinations and pages, in the Settings tab. There is also a default weight selection, which makes it possible to make new rules to always come to the top (or bottom) of the list.
Hope this is of some use to someone.
Comment | File | Size | Author |
---|---|---|---|
add_default_rule_values.patch | 8.17 KB | ttiurani | |
Comments
Comment #1
mithy CreditAttribution: mithy commentedHi, thank you for the patch, but could you please first explain what problem are you trying to solve ?
Comment #1.0
ttiurani CreditAttribution: ttiurani commentedAdded a motivation chapter for the patch.
Comment #1.1
ttiurani CreditAttribution: ttiurani commentedFixed typos with first chapter.
Comment #2
ttiurani CreditAttribution: ttiurani commentedHi, sorry about the short description: I was in a hurry and wanted to send my changes just in case someone was interested.
I will leave it up to the maintainers to decide if this is worth while feature.
Edit. After some consideration - and reading what I originally wrote as the explanation to this and seeing the complexities - I decided I would not use Login Destination but instead work with URL prefixis such as "&destination=[questionnaire]" in my invite message to get the new user to land in the questionnaire after registering or logging in.
Comment #2.0
ttiurani CreditAttribution: ttiurani commentedSmall clarification.
Comment #3
ddrozdik CreditAttribution: ddrozdik as a volunteer commented