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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Control title for module not being recognized at runtime?Control title for module not being recognized at runtime?
Previous
 
Next
New Post
6/27/2009 7:27 PM
 

I added a new control to my module. I added it to the .dnn file under the <controls> section with the key, type, title and src. I also added it in the <files> section. I then linked it up to the actions menu. Everything works fine except that the title doesn't show up like it's supposed to. Is there any way to fix this? I even tried adding it to the resource file, but that doesn't seem to help any at all. I added some simple text to the new control and then went to it in the module to see if it was actually loading, and it is loading fine. It's just the title that doesn't show up for some reason. I use DNN 5.1.

 
New Post
6/27/2009 11:27 PM
 

Are the titles of the other controls in the module showing up?  If so, what was different in how the ones that worked were created/installed and the ones that does not work.  After adding it to the <files> section and the resources files did you recreate the install package and reinstall the module (this is the easiest way to make sure everything is installed and all the database entries made.  If you did not recreate the installation package and reinstall, what steps did you take to register it with the site?

 
New Post
6/28/2009 5:09 AM
 

The control title is properly set in DNN 5.1, there must be an issue with your configuration. After installation, does the control title properly show up in module definition? User "[controlkey]_ControlTile.Text" as key in the resource file for localization (replace [controlkey] with lowered control key).


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/28/2009 9:03 AM
 

Hi. I have the code for the new control setup below. To create and register it, I did the following:

 

1. In Visual Studio 2008, right clicked the DesktopModules\Headlines folder and went to Add new item...

2. Clicked Web user control, typed DeleteHeadlines.ascx in the box, and clicked add.

3. Replaced the entire contents of DeleteHeadlines control with the following:

[DeleteHeadlines.ascx]

<%

@ Control Language="VB" AutoEventWireup="false" CodeFile="DeleteHeadlines.ascx.vb" inherritss="EternityRecords.Modules.Headlines.DeleteHeadlines" %><br /><br />

 

[DeleteHeadlines.ascx.vb]

Imports

DotNetNuke

Namespace

 

 

 

End

EternityRecords.Modules.HeadlinesPartial Class DeleteHeadlinesInherits Entities.Modules.PortalModuleBaseEnd Class Namespace

 

4. Added the control to the <controls> section of the headlines.dnn file:

 

<

<

<

<

<

<

</

control>key>DeleteHeadlines</key>title>Delete Headlines</title>src>DesktopModules/Headlines/DeleteHeadlines.ascx</src>type>Edit</type>helpurl></helpurl>control>

5. Added it to the <files> section of headlines.dnn:

 

<file>

<name>DeleteHeadlines.ascx</name>

</file>

<file>

<name>DeleteHeadlines.ascx.vb</name>

</file>

 

6. Add this code to ViewHeadlines.ascx.vb in the IActionable implamentation:

Actions.Add(GetNextActionID(),

"Delete headlines", Entities.Modules.Actions.ModuleActionType.EditContent, "", "", EditUrl("DeleteHeadlines"), False, SecurityAccessLevel.Edit, True, False)

7. Right click root folder of website in Visual Studio and go to build website.

8. Right click default.aspx and go to view in browser.

9. Sign in with host account.

10. Go to Host>Module definitions and click import definitions on the flyout menu.

11. Go to manafest to import and choose headlines.dnn (it has been imported before). I update the existing database by constantly importing my updated headlines.dnn file.

12. When it is successful, I went to home and clicked "delete headlines" on the module menu. The control shows up but not the title.

 

 

 

Hope this is detailed enough to help figure this out. When I looked at any other modules that comes with dnn, they seem to be set up exactly the same way.

delete headlines

 
New Post
6/29/2009 8:35 AM
 

At first glance looks like what you have done is correct.  I would do what Sebastian suggested and verify the Control.Title.Text field is set properly. If there is no value in this setting then that would explain whey there is not title showing up.  Also, I don't think this has anything to do with the issue and might not even be an issue (but a type when you wrote you last post.  In the entry below the word inheris is spelled wrong (have 2 "ss" and 2 "rr").

<%@ Control Language="VB" AutoEventWireup="false" CodeFile="DeleteHeadlines.ascx.vb" inherritss="EternityRecords.Modules.Headlines.DeleteHeadlines" %><br /><br /)

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Control title for module not being recognized at runtime?Control title for module not being recognized at runtime?


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