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
Copy file name to clipboardExpand all lines: docs/development/prolets.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -162,7 +162,7 @@ If the data returned is of *Array* type, it is being passed to ExpressionEngine
162
162
return $vars;
163
163
}
164
164
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).
166
166
167
167
Prolets are expecting form submissions to return JSON upon successful response, which will close their windows.
Copy file name to clipboardExpand all lines: docs/development/services/sidebar.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ lang: php
17
17
18
18
## Automatically Created Sidebars
19
19
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.
0 commit comments