Skip to content

Commit 097d329

Browse files
author
Andy McCormick
committed
few more catches for mcp
1 parent b43db32 commit 097d329

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/development/modules.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ if (isset($color)) {
322322
}
323323
```
324324

325-
Notice the variables `$name` and `$color` correspond to the `$variables` array passed to the view in the Mcp file.
325+
Notice the variables `$name` and `$color` correspond to the `$variables` array passed to the view in the route file.
326326

327327

328328
This renders as such:
@@ -425,9 +425,9 @@ Now inside of your `ControlPanel/Routes` folder you have a new file and matching
425425

426426
```
427427
php system/ee/eecli.php make:cp-route
428-
View name? configurations
428+
What is the route name? configurations
429429
Which add-on would you like to add this to? amazing_add_on
430-
Mcp successfully created!
430+
Control panel route created successfully!
431431
```
432432

433433
This will create a file in my `ControlPanel/Routes` folder called `Configurations.php` which will look like this:

docs/development/prolets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ If the data returned is of *Array* type, it is being passed to ExpressionEngine
162162
return $vars;
163163
}
164164

165-
If the data returned is of *String* type then this string is being wrapped in some required HTML and returned into the prolet popup window. In you need a form to be created, you would need to handle that (additionally you can use one of your MCP actions as endpoint).
165+
If the data returned is of *String* type then this string is being wrapped in some required HTML and returned into the prolet popup window. In you need a form to be created, you would need to handle that (additionally you can use one of your [actions](development/actions.md) as endpoint).
166166

167167
Prolets are expecting form submissions to return JSON upon successful response, which will close their windows.
168168

docs/development/services/sidebar.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ lang: php
1717

1818
## Automatically Created Sidebars
1919
If you are automatically generating a sidebar in your add-on you can use either of these methods to customize the sidebar further:
20-
- Modify the sidebar on every page load in the in the `process()` method of your `Mcp/Sidebar.php` file. The sidebar object is available using `$this->getSidebar()` You can also loop through each sidebar item with $this->getItems()`
21-
- Modify the sidebar only when a specific route is loaded by accessing the sidebar instance in the `process()` function of the route file (`Mcp/[route_name].php`).You can modify the sidebar item connected to the current route by using `$this->getCurrentSidebarItem()` with the [BasicItem Methods](#basicitem-methods) listed below. You can also use `$this->getSidebar()` to get the entire sidebar instance.
20+
- Modify the sidebar on every page load in the in the `process()` method of your `ControlPanel/Routes/Sidebar.php` file. The sidebar object is available using `$this->getSidebar()` You can also loop through each sidebar item with $this->getItems()`
21+
- Modify the sidebar only when a specific route is loaded by accessing the sidebar instance in the `process()` function of the route file (`ControlPanel/Routes/[route_name].php`).You can modify the sidebar item connected to the current route by using `$this->getCurrentSidebarItem()` with the [BasicItem Methods](#basicitem-methods) listed below. You can also use `$this->getSidebar()` to get the entire sidebar instance.
2222

2323

2424
## Simple Example

0 commit comments

Comments
 (0)