alex
alex

Reputation: 1350

Umbraco Dashboards: custom markup within tabs and specific content page

In my tab from home page I want to render a partial view returned by an action controller, with custom css. The home page has its own doctype. Using Umbraco v7.

How can I achieve this? I read http://our.umbraco.org/wiki/reference/files-and-folders/dashboardconfig but doesn't specify this.

Upvotes: 0

Views: 771

Answers (1)

dampee
dampee

Reputation: 3437

You can only load a usercontrol (ASCX) in the dashboards.

But that shouldn't stop you from what you want to do.

  • Put your Html and css in the ASCX and
  • put your controller code in the .cs file.
  • update the /config/dashboard.config

And you are set.

What you could do is wrap your partial view in a macro and call the macro inside the ascx (<umbraco:Macro alias="theMacroAlias" runat="server" />)

Update: you can't set a dashboard for a specific content page. The only way to archive something here is to create your down propertyType

Upvotes: 0

Related Questions