@@ -15,11 +15,30 @@ lang: ee
1515
1616Add-ons can easily add custom items for the Jump Menu.
1717
18- NOTE: Sample File: https://gist.github.com/obfuscode/77d0135970c9ce8bc84139c127507bb1
18+ TIP: If you are working with an existing add-on, we recommend you start with [ Modernizing add-ons ] ( development/modernizing-existing-add-ons.md )
1919
20- Create a ` jump.[addon_name].php ` file in your add-on folder
20+ ## Creating your add-on jump file.
21+ Jumps are created via the CLI by using the ` make:jump ` command.
2122
22- Your jump file MUST have the following:
23+ ```
24+ php eecli.php make:jump
25+ Let's create an add-on Jump File!
26+ What add-on is the Jumps file being added to? (amazing_add_on, cron,): [amazing_add_on]
27+ Building Add-on Jumps file now.
28+ Jumps file successfully created! Please note: You may need to clear your browser cache before you can see the new jump menu items
29+
30+ ```
31+
32+ Follow the prompts to add a jump file to your add-on.
33+ This will create a ` jump.amazing_add_on.php ` file in your add-on.
34+
35+ ```
36+ amazing_add_on
37+ ┣ jump.amazing_add_on.php
38+ ┗ ...
39+ ```
40+
41+ Please note, your jump file will have the following:
2342
2443 use ExpressionEngine\Service\JumpMenu\AbstractJumpMenu;
2544
@@ -36,7 +55,7 @@ Your jump file MUST have the following:
3655 'target' => 'See Below. Behavior changes based on dynamic element above'
3756 ));
3857
39- To Add Jump Menu commands to your add-on, you simply add array elements to the $items array in the example above
58+ To Add Jump Menu commands to your add-on, you simply add array elements to the $items array in the example generated
4059
4160The array of a Jump Menu command is comprised of the following keys:
4261
0 commit comments