Skip to content

Commit a29af9f

Browse files
Update to not use Assets as an example
1 parent 083b15e commit a29af9f

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

docs/development/jump-menu.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Jumps are created via the CLI by using the `make:jump` command.
2323
```
2424
php eecli.php make:jump
2525
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]
26+
What add-on is the Jumps file being added to? (amazing_add_on, cron): [amazing_add_on]
2727
Building Add-on Jumps file now.
2828
Jumps file successfully created! Please note: You may need to clear your browser cache before you can see the new jump menu items
2929
@@ -38,28 +38,28 @@ amazing_add_on
3838
┗ ...
3939
```
4040

41-
Please note, your jump file will have the following:
41+
Please note, your jump file will contain of the following:
4242

4343
use ExpressionEngine\Service\JumpMenu\AbstractJumpMenu;
4444

4545
class [AddonName]_jump extends AbstractJumpMenu
4646
{
4747

48-
protected static $items = array(
49-
'commandArrayTitle' => array(
50-
'icon' => 'fa-file',
51-
'command' => 'few lowercase words to be fuzzy-matched in jump menu',
52-
'command_title' => 'Displayed <b>command title upon match from above</b>',
53-
'dynamic' => false,
54-
'requires_keyword' => false,
55-
'target' => 'See Below. Behavior changes based on dynamic element above'
56-
));
48+
protected static $items = array(
49+
'commandArrayTitle' => array(
50+
'icon' => 'fa-file',
51+
'command' => 'few lowercase words to be fuzzy-matched in jump menu',
52+
'command_title' => 'Displayed <b>command title upon match from above</b>',
53+
'dynamic' => false,
54+
'requires_keyword' => false,
55+
'target' => 'See Below. Behavior changes based on dynamic element above'
56+
));
5757

58-
To Add Jump Menu commands to your add-on, you simply add array elements to the $items array in the example generated
58+
To Add Jump Menu commands to your add-on, you simply add array elements to the `$items` array in the example generated
5959

6060
The array of a Jump Menu command is comprised of the following keys:
6161

62-
- `commandArrayTitle` _(string)_ Unique command title used as key in global jumps array. Will be prefixed with the add-ons name so a command title in the add-on Assets of `editS3Source` will be `Assets:editS3Source`
62+
- `commandArrayTitle` _(string)_ Unique command title used as key in global jumps array. Will be prefixed with the add-ons name so a command title in the add-on AmazingAddOn of `processData` will be `AmazingAddon:processData`
6363
- `icon` _(string)_ FontAwesome format: `fa-file`
6464
- `command` _(string)_ lowercase string to be fuzzy-matched when user is typing in jump menu: “edit external source”
6565
- `command_title` _(string)_ Language file array key for Human-readable command title, shows up in results if fuzzy-matched. *Please note, this should be in your Lang file.

0 commit comments

Comments
 (0)