SelectOwnerDropDown: Difference between revisions
(Callback to change owner dropdown limit) |
m (2 revisions imported) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
Next, under the folder that you just created (in my case "/rt4/local/html/Callbacks/GHCITS") you will need to replicate the path to the callback we will be modifying. The callback we are trying to intercept lives in "/rt4/share/html/Elements/SelectOwnerDropdown", so we need to make this structure exist under our new callback tree. You do not have to include the "html" directory. So, using my case as an example, I created: | Next, under the folder that you just created (in my case "/rt4/local/html/Callbacks/GHCITS") you will need to replicate the path to the callback we will be modifying. The callback we are trying to intercept lives in "/rt4/share/html/Elements/SelectOwnerDropdown", so we need to make this structure exist under our new callback tree. You do not have to include the "html" directory. So, using my case as an example, I created: | ||
"local/html/Callbacks/GHCITS/Elements/SelectOwnerDropdown" | "rt4/local/html/Callbacks/GHCITS/Elements/SelectOwnerDropdown" | ||
Finally, inside the SelectOwnerDropdown directory, you will need to create a file called "ModifyDropdownLimit" (this is the name of the actual callback) that contains: | Finally, inside the SelectOwnerDropdown directory, you will need to create a file called "ModifyDropdownLimit" (this is the name of the actual callback) that contains: |
Latest revision as of 15:37, 6 April 2016
==
Simple Callback to customize the 50 user limit in owner dropdowns==
Creating the Callback
Under "rt4/local/html", if you haven't already, create a directory called "Callbacks" (careful with the case).
Under your new "rt4/local/html/Callbacks" directory, create a directory named anything you like (mine is GHCITS) - This is just to help organize your callbacks.
Next, under the folder that you just created (in my case "/rt4/local/html/Callbacks/GHCITS") you will need to replicate the path to the callback we will be modifying. The callback we are trying to intercept lives in "/rt4/share/html/Elements/SelectOwnerDropdown", so we need to make this structure exist under our new callback tree. You do not have to include the "html" directory. So, using my case as an example, I created:
"rt4/local/html/Callbacks/GHCITS/Elements/SelectOwnerDropdown"
Finally, inside the SelectOwnerDropdown directory, you will need to create a file called "ModifyDropdownLimit" (this is the name of the actual callback) that contains:
<%INIT> $$DropdownLimit = 150; </%INIT> <%ARGS> $DropdownLimit => undef </%ARGS>
This will set the new dropdown limit to 150 (set it to whatever you wish). This will cause a performance hit, but in my case it was slight.