Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Comment | File | Size | Author |
---|---|---|---|
#2 | node_limit-configurable_message_and_redirect-1364410-2.patch | 5.39 KB | Brolad |
Comments
Comment #1
DuaelFrIt is a good idea.
If you are able to provide us a patch, feel free to.
I add this on my node_limit's to do list.
Comment #2
Brolad CreditAttribution: Brolad at Skilld, Drupal Ukraine Community commentedAdded custom message and redirect for each content type and one global message/redirect. Maybe need some improve like separate code for modules... Also I allow for users to have posibility display nothing. I think it can be use for some cases.
Comment #3
Brolad CreditAttribution: Brolad at Skilld, Drupal Ukraine Community commentedComment #4
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedThanks for the patch, it is working fine for me
Comment #7
adriancidThanks @all, nice work.
Comment #9
JordanMagnuson CreditAttribution: JordanMagnuson commentedCustom error message and/or redirect needs to be configurable per limit--not per node type. (Either that, or we need access to more placeholders in the error message: such as the timeframe of the limit, and the actual node limit number for the timeframe).
It's quite possible to have a limit of say 1 forum topic per day, and 10 forum topics per week, and want to show a different message when each of these limits is hit. Currently that's not possible.