Products

Solutions

Resources

Partners

Community

About

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 can I create a portal template in dotnetnuke that keeps each third party modulesHow can I create a portal template in dotnetnuke that keeps each third party modules' settings
Previous
 
Next
New Post
1/24/2011 9:00 AM
 
I am developing Dotnetnuke (05.06.01) site which will have ~200 portals in it, while the portals are created, they will be produced from prepared four portal templates. The problem arises at that point. I have some 3rd party modules and when i created portal template file their settings are not set in portal template. How can I overcome this issue?
 
New Post
1/24/2011 11:31 AM
 
If a module (3rd party or otherwise) is storing its settings in the ModuleSettings or TabModuleSettings using the DNN API, then the settings should be picked up using the Portal Template, if you choose the export content setting when creating the template.  However, many 3rd party developers choose to store the module settings in a proprietary table in the database.  When this is the case, you will need to approach each module vendor and demand that they add the module settings to their IPortable implementation.  Good luck.  :)

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
1/24/2011 11:37 PM
 
"If a module (3rd party or otherwise) is storing its settings in the ModuleSettings or TabModuleSettings using the DNN API, then the settings should be picked up "

I don't think so the above line is true as if we take an example of DNN HTML module then its module settings are not availble in portal template. For example if I set Token Replacement option to true in module setting and then I export the module then only module content is exported not the setting. I have check this in DNN 4.9 version and no idea about is there any change regarding this in DNN 5.x or not.

@tekguc: I have implemented similiar functionality by creating a class which has implemented IPortable interface and written method which do Module settings import/export functionality and then I have set this class as business controller for 3rd party modules. But in this case, it is necessary that 3rd party module does not already have any associated business controller class.
 
New Post
1/25/2011 10:17 AM
 
There is a clear line to follow and know that we are speaking about when talking about what is exported.  When you simply choose "Export Content" from any module, content is all that you get.  However, having just tested again using the most recent version of DNN, I was able to confirm that if you export a page or site template, you will indeed get all of the module settings - INCLUDING those that are saved into the API module settings.  Here's an excerpt from the HTML module:

<modulesettings>
    <modulesetting>
        <settingname>HtmlText_ReplaceTokens</settingname>
        <settingvalue>False</settingvalue>
    </modulesetting>
    <modulesetting>
        <settingname>WorkflowID</settingname>
        <settingvalue>1</settingvalue>
    </modulesetting>
    <modulesetting>
        <settingname>Allow_PageWorkflowOverride</settingname>
        <settingvalue>True</settingvalue>
    </modulesetting>
    <modulesetting>
        <settingname>Allow_ModuleWorkflowOverride</settingname>
        <settingvalue>True</settingvalue>
    </modulesetting>
</modulesettings>
<tabmodulesettings>
    <tabmodulesetting>
        <settingname>hideadminborder</settingname>
        <settingvalue>False</settingvalue>
    </tabmodulesetting>
</tabmodulesettings>

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
2/2/2011 8:40 AM
 
Thank you for your replies. If a module is implementing Iportable Interface (if you see import content/export content in Module settings then that module is implementing Iportable) and while exporting if you choose "include content" module settings are saved to portal template file, otherwise it is not. thank you all... @ Ruchir Patel: could you provide me more details about your solution for 3rd party modules.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How can I create a portal template in dotnetnuke that keeps each third party modulesHow can I create a portal template in dotnetnuke that keeps each third party modules' settings


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