Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to include custom modules using .htm and .xml in skin pacakageHow to include custom modules using .htm and .xml in skin pacakage
Previous
 
Next
New Post
4/3/2007 2:06 AM
 
How do i include a custom module into a skin package declaratively in the skin packages's htm file using a token?

I can edit the ascx directly to include the custom module like so :
<%@ Register TagPrefix="dnn" TagName="TASK" Src="~/DesktopModules/ToTaskList/ViewToTaskList.ascx" %>
<div class="Taskpane" id="TaskPane"><dnn:TASK runat="server" id="dnnTask" /></div>
that works great !

But to acheive the same using the .htm and .xml files within the skin pacakage, i tried.

.htm extract
<div class="Taskpane" id="TaskPane">[TASK]</div>

.xml extract
<Object>
        <Token>[TASK]</Token>
        <Settings>
            <Setting>
                <Name>ID</Name>
                <Value>TaskPane</Value>
            </Setting>
            <Setting>
                <Name>Src</Name>
                <Value>~/DesktopModules/ToTaskList/ViewToTaskList.ascx</Value>
            </Setting>
            <Setting>
                <Name>RootLevel</Name>
                <Value>0</Value>
            </Setting>
        </Settings>
    </Object>

Any ideas on what i'm doing wrong or suggested reference material will be greatly appreciated !

thanks in advance
Mark
 
New Post
4/3/2007 10:31 AM
 

 

You can just put the .ascx code directly into your .html skin and skip the XML abstraction -- which is more of a distraction in my opinion.

 


DotNetNuke Modules from Snapsis.com
 
New Post
4/3/2007 7:55 PM
 
Thanks for the reply John,

yep thats a simple fix that works - nice one

It does prompt the question "so what is the point or beneift of the .xml file?".

Any ideas anyone ?
 
New Post
4/7/2007 11:14 AM
 

Mark, the .xml file is only used to help the parsing engine transform an HTML skin into an ASCX skin file when uploading or re-parsing after changing the HTML file. Once the ASCX skin file is made, the XML file isn't used again.

Reading your initial post, I got to wondering how I might put a (skinned) signin module on a page. I first copied the signin ascx and vb files over to a skin folder, and in short, I'm wondering how to point to it in the @ Register line at the top of the skin page by using <%= PortalSettings.ActiveTab.SkinPath %> or similar.  The normal directive for the SignIn control is <%@ Register TagPrefix="dnn" TagName="SIGNIN" Src="~/Admin/Security/Signin.ascx" %> - so, how could I point this to a similarly-named ascx file in the current skin folder?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to include custom modules using .htm and .xml in skin pacakageHow to include custom modules using .htm and .xml in skin pacakage


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out