Posted by Vasilis on Sunday, January 18, 2009
This is just an answer to a question posted on my twitter from @horacioj.
It's about how to avoid the SPAN and get a clean heading tag in a DNN container title.
Below you can see the code for a simple container that demonstrates exactly that.
<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Containers.Container" %> <%@ Register TagPrefix="dnn" TagName="TITLE" Src="~/Admin/Containers/Title.ascx" %> <%@ Register TagPrefix="dnn" TagName="Actions" Src="~/Admin/Containers/Actions.ascx" %> <dnn:title runat="server" id="dnnTitle" visible="false" /> <% Dim ModuleTitle As String = GetPortalModuleBase(dnnTitle).ModuleConfiguration.ModuleTitle %> <div class="common"> <h3><%= ModuleTitle %></h3> <dnn:Actions runat="server" id="dnnActions" /> <div id="ContentPane" runat="server" /> </div>
I have to mention though that with this implementation, the inline title editing won't work.
Ralph Williams says:
sameer says:
Dax Davis says:
George Lew says:
rudgr says:
Vasilis says:
Name (required)
Email (required)
Website
Notify me of followup comments via e-mail