You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TIP: For more information on using the `make:addon` command to create new add-on, reference [Getting Started](development/addon-development-overview.md#getting-started) in the Building An Add-On section of the docs.
TIP: For more information on using the `make:command` command to create new CLI command with your add-on, reference [Adding CLI Commands](cli/creating-a-command.md).
Copy file name to clipboardExpand all lines: docs/cli/built-in-commands/make-prolet.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,3 +28,5 @@ Prolet Generator -- Creates a new prolet for an add-on
28
28
### Generating a prolet:
29
29
30
30
`php eecli.php make:prolet MyNewProlet --addon=my_addon --description="This is my prolet description"`
31
+
32
+
TIP: For more information on using the `make:prolet` command to create new Prolet with your add-on, reference [Adding Prolets](development/prolets.md).
TIP: For more information on using the `make:template-tag` command to create new template tag with your add-on, reference [Adding Template Tags](development/custom-template-tags.md).
TIP: For more information on using the `make:widget` command to create new Dashboard Widget with your add-on, reference [Adding Dashboard Widgets](development/widgets.md).
Copy file name to clipboardExpand all lines: docs/cli/intro.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# Command Line Inferface (CLI)
1
+
# Command Line Interface (CLI)
2
2
3
-
The Command Line Inferface (CLI) allows a user to run system and user-generated commands in the terminal. The CLI has access to all of the ExpressionEngine resources, and can be used to update the system, clear caches, and much more.
3
+
The Command Line Interface (CLI) allows a user to run system and user-generated commands in the terminal. The CLI has access to all of the ExpressionEngine resources, and can be used to update the system, clear caches, and much more.
4
4
5
5
By default the CLI is located `system/ee/eecli.php` .
6
6
@@ -18,7 +18,7 @@ By default the CLI is located `system/ee/eecli.php` .
18
18
-[make:migration - Creates a new migration](cli/built-in-commands/make-migration.md)
19
19
-[make:model - Creates a new model for an add-on](cli/built-in-commands/make-model.md)
20
20
-[make:prolet - Creates a new prolet for an add-on](cli/built-in-commands/make-prolet.md)
21
-
-[make:tag - Creates a new tag for an add-on](cli/built-in-commands/make-tag.md)
21
+
-[make:template-tag - Creates a new tag for an add-on](cli/built-in-commands/make-tag.md)
22
22
-[make:widget - Generates widgets for existing add-ons](cli/built-in-commands/make-widget.md)
23
23
- Migrate
24
24
-[migrate - Runs specified migrations (all, core, or add-ons)](cli/built-in-commands/migrate.md)
Copy file name to clipboardExpand all lines: docs/development/extensions.md
+13-2Lines changed: 13 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,11 @@ We can give our add-on the ability to hook into the core of ExpressionEngine by
27
27
28
28
```
29
29
$ php system/ee/eecli.php make:extension-hook
30
+
Let's implement an extension hook!
31
+
What hooks would you like to use? (Read more: https://docs.expressionengine.com/latest/development/extensions.html) typography_parse_type_end
32
+
What add-on is the extension hook being added to? [amazing_add_on]: amazing_add_on
33
+
Building Extension hook.
34
+
Extension hook created successfully!
30
35
31
36
```
32
37
@@ -47,6 +52,8 @@ amazing_add_on
47
52
48
53
TIP: A single add-on can interact with as many hooks as you want.
49
54
55
+
TIP: Extensions need to be enabled to work. When you create an extension, a migration is added which will enable the extension on install. However if you need it immediately available, you can use the `--install` or `-i` flag when creating your extension. This would look like `make:extension-hook --install`.
56
+
50
57
## Anatomy Of An Extension
51
58
Once we've added the ability to hook into the core with our add-on, an `Extensions` folder is created. The CLI will generate a class and a respective file for each core hook we wish to use.
52
59
@@ -108,16 +115,20 @@ We also know that we should be returning a string from our `process()` function.
108
115
109
116
Let's do something with our hook to demonstrate how this would work. We're going to continue working with the `typography_parse_type_end()` hook by replacing "e" with "EE" everywhere in our templates (because EE is amazing!)
110
117
111
-
Using the CLI to generate the extension hook:
118
+
Using the CLI to generate the extension hook (notice the `-i` flag to immediately enable the extension hook):
112
119
113
120
```
114
-
$ php system/ee/eecli.php make:extension-hook
121
+
$ php system/ee/eecli.php make:extension-hook -i
115
122
Let's implement an extension hook!
116
123
What is the extension hook name? Amazing Hook
124
+
What hooks would you like to use? (Read more: https://docs.expressionengine.com/latest/development/extensions.html) typography_parse_type_end
117
125
What add-on is the extension hook being added to? [amazing_add_on]: amazing_add_on
118
126
Building Extension hook.
119
127
Extension hook created successfully!
128
+
Installing extension hook...
129
+
Extension hook installed!
120
130
```
131
+
121
132
This creates our `Extensions/TypographyParseTypeEnd.php` file for us. This file will initially look like this:
0 commit comments