Edit:
ACTIONBUTTON DNN Theme Object
Generated Skin File: No Theme Created
Displays an action from the module action menu.
Current Version 01.00.00
Include ACTIONBUTTON in a Theme
ASCX
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON" Src="~/Admin/Skins/ActionButton.ascx" %>
<dnn:ACTIONBUTTON runat="server" ID="dnnAddContent" CommandName="AddContent" />
HTML Token
[ACTIONBUTTON]
HTML Object Token
Attributes
|
Attribute
|
Description
|
Default
|
Possible Values
|
DNN Version
|
| ID |
ID |
|
|
01.00.00 |
| CommandName |
The name of the command |
|
AddContent: Adds new content — typically used in containers. Edit: Opens the module's edit UI. Delete: Deletes the module (with confirmation). Settings: Opens the module settings page. ExportModule: Exports the module content. ImportModule: Imports module content. Help: Opens the module's help documentation. PrintModule: Opens a print-friendly version of the module. Syndicate: Used for RSS feeds (e.g., display RSS icon). Move: Initiates module movement (drag/drop). Refresh: Refreshes the module's content. ViewSource: Displays the raw content or HTML source. ToggleLayoutMode: Toggles DNN layout editing mode (used by designers/admins). TogglePreviewMode: Toggles preview mode for skins or pages. AddModule: Shows the module add interface (less common in modern DNN). |
01.00.00 |
| Icon |
Optional. The path to a custom icon. |
|
|
01.00.00 |
| Text |
Optional. Text to display on the button. |
|
|
01.00.00 |
| CssClass |
Optional. Custom CSS class for styling. |
|
|
01.00.00 |
Examples
Default example
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON" Src="~/Admin/Skins/ActionButton.ascx" %>
<dnn:ACTIONBUTTON runat="server" ID="btnEdit" CommandName="Edit" Text="Edit Content" Icon="~/images/edit.png" CssClass="action-edit" />
Markdown
---
uid: actionbutton
locale: en
title: ACTIONBUTTON Theme object
dnnversion: 09.02.00
previous-topic: * legacy
next-topic: dropdownactions
related-topics: theme-objects,themes,create-theme
links:
---
# ACTIONBUTTON Theme Object Introduction
Displays an action from the module action menu.
**Current Version:** 01.00.00
## Include in Theme
### ASCX
``` html
<%@ Register TagPrefix="dnn" TagName="ACTIONBUTTON" Src="~/Admin/Skins/ActionButton.ascx" %>
<dnn:ACTIONBUTTON runat="server" ID="dnnAddContent" CommandName="AddContent" />
```
### HTML Token
[ACTIONBUTTON]
### HTML Object Token
``` html
```
| Attribute | Description | Default | Posssible Values | DNN Version |
| --- | --- | --- | --- | --- |
| ID | ID | | | 01.00.00 |
| CommandName | The name of the command | | AddContent: Adds new content — typically used in containers.<br/>Edit: Opens the module's edit UI.<br/>Delete: Deletes the module (with confirmation).<br/>Settings: Opens the module settings page.<br/>ExportModule: Exports the module content.<br/>ImportModule: Imports module content.<br/>Help: Opens the module's help documentation.<br/>PrintModule: Opens a print-friendly version of the module.<br/>Syndicate: Used for RSS feeds (e.g., display RSS icon).<br/>Move: Initiates module movement (drag/drop).<br/>Refresh: Refreshes the module's content.<br/>ViewSource: Displays the raw content or HTML source.<br/>ToggleLayoutMode: Toggles DNN layout editing mode (used by designers/admins).<br/>TogglePreviewMode: Toggles preview mode for skins or pages.<br/>AddModule: Shows the module add interface (less common in modern DNN). | 01.00.00 |
| Icon | Optional. The path to a custom icon. | | | 01.00.00 |
| Text | Optional. Text to display on the button. | | | 01.00.00 |
| CssClass | Optional. Custom CSS class for styling. | | | 01.00.00 |
## Examples:
### Default example
~~~html
<dnn:ACTIONBUTTON runat="server" ID="btnEdit" CommandName="Edit" Text="Edit Content" Icon="~/images/edit.png" CssClass="action-edit" />
~~~
Skin Object Examples
[PLACEHOLDER]