DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

MVC Module in theme header

 2 Replies
 2 Subscribed to this topic
 19 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 15
New Around Here

Team,

 We want to use MVC Module  in Theme header, Please guide us how we can achive this. If possible please share the step in detail .

We are using DNN  v9.10.02

Regards,

Shyamal

 

Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

I'm afraid that no one will be able to provide you with detailed directions on how to do this. If there isn't already a content pane in the header area of your theme, one will need to be added. The exact steps of how to do this are 100% defined by how the existing theme itself is already put together.

In basic words, though... A content pane or pane in a theme is simply an area defined by the web developer where modules are allowed to be placed by content editors. This is done in the theme files (usually .ascx files) by adding an HTML element that looks like this:

<code>&lt;div id=&quot;MyPaneName&quot; &#114;&#117;nat=&quot;server&quot;&gt;</div> </code>

If you don't already have a pane in the header area of the theme, that code snippet might be able to get you started. DNN automatically sees this and knows to treat it as a pane, simply because it's a theme file with an empty DIV using a runat attribute.

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!
It does not seem to be clear what goal you are achieving. When you want to create a theme, you cant't place a module inside of it. When you want to have a specific module with the same content on every page at the same place, just put it on one page and activate the "Display on all pages" checkbox.

The only thing you can add to a theme (or "skin" as it was called formerly) is a so called Skin Object, which is also an extension that provides a certain functionality (e.g. Login, Breadcrumb, etc.)

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved