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...Module Definitions and FriendlyNamesModule Definitions and FriendlyNames
Previous
 
Next
New Post
11/7/2006 5:42 AM
 
Hi All,

If you look at a DNN file you can see a module has:

        <folder>
                <name>Smart-Thinker - UserGroup</name>
                <friendlyname>Smart-Thinker - UserGroup</friendlyname>
                <foldername>Smart-Thinker - UserGroup</foldername>
                <modulename>Smart-Thinker - UserGroup</modulename>
                <description>...</description>
                <version>04.03.01</version>
                <businesscontrollerclass></businesscontrollerclass>
            <modules>

(bear with me)

and then each control within the module has:

                <module>
                    <friendlyname>Smart-Thinker - UserGroup</friendlyname>
                    <controls>
                        <control>
                            <key>Settings</key>
                            <title>UserGroup Settings</title>
                            <src>UserGroupSettings.ascx</src>
                            <type>Admin</type>
                            <helpurl>http://www.smart-thinker.com</helpurl>
                        </control>

So, from what I can see by looking at the UI, the MODULE FriendlyName can be changed in the Host\Module Defintions, but the CONTROL FriendlyName can't be changed? (The Module FN is the one in the Module dropdownlist in admin mode).

If you look at the ModuleDefinitions table, it appears to store the MODULE FriendlyNames (so a this contains mutiple controls).
My requirement is to populate a dropdownlist with all the instances of a certain control (lets use UserGroup Setting (in the example above)), but I am not sure it is possible.

I can get a reference to the parent Module Defintion using:

            ModuleController moduleController = new ModuleController();
            DesktopModuleController desktopModuleController = new DesktopModuleController();
            ModuleInfo moduleInfo = moduleController.GetModuleByDefinition(this.PortalId, desktopModuleController.GetDesktopModuleByModuleName("Smart-Thinker - UserGroup
").FriendlyName);

This would therefore NOT be reliant on the FN changing, which is good... but how do I get a list of all the controls within that Module Definition?

Does anyone else find the relationship between Modules/Definitions/Controls terribly confusing?!?!?





Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
New Post
11/7/2006 5:51 AM
 
Actually, after thinking about this a little more, I don't need a list of each control - I just need the Module Definition for the group of controls (unfortunately in the example above both FriendlyNames are

<friendlyname>Smart-Thinker - UserGroup</friendlyname>

but as mentioned, it does not look like the bottom one is changable through the UI, which means I could use this:

    ModuleInfo moduleInfo = moduleController.GetModuleByDefinition(this.PortalId, "Smart-Thinker - UserGroup");

where the second param is the FN?

Entrepreneur

PokerDIY Tournament Manager - PokerDIY Tournament Manager<
PokerDIY Game Finder - Mobile Apps powered by DNN
PokerDIY - Connecting Poker Players

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Module Definitions and FriendlyNamesModule Definitions and FriendlyNames


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