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...Administration ...Administration ...DNN 5.1.0 - Does anybody know how to create a pagetemplate including the module settings?DNN 5.1.0 - Does anybody know how to create a pagetemplate including the module settings?
Previous
 
Next
New Post
7/14/2009 12:01 PM
 

Hi,

For some reason, I can't find a way to create a pagetemplate holding the modules and the module settings.

I think i am doing something wrong, looking the wrong way or ... 

DNN is quite new to me, I am still scratching the surface to explore its capabilities.

So please forgive me, if i am being stupid on this one...

Goal:

Creating and using a page template with a module including the module settings.

Applies to:

  • Media module
  • SQL module

Does not seem to apply to:

  • Html module 

Methods used:

  • Export page, import page
  • Copy page

Problem:

After creating a page with a SQL and a Document module and exporting it (with content included) I get not quite what i want.

I would like to have gotten a copy of the page with the SQL-statement included, but I get a page with just the 2 modules...

Later on i tested it with another page, containing a html module and a Media module, the html gets restored (copied) , but the images are not. (?)

Am I missing the option Include settings, is this a bug, or ...?

When I Copy the page using the Copy wizard I get the same result.  

How to reproduce it / what i did...:

  1. Log on as Host (to be able to write sql later on...)
  2. Create a new page (tab)
  3. Add a SQL module to the page
  4. Apply the following settings: 
    • Title:  [ simple foto viewer ]
    • Description [  ]
    • Allowed URL Parameters [ ]
    • Active Data Source: [DotNetNuke Data Source]
    • Query: 

      SELECT dnn_Documents.Title AS [DocTitle], dnn_Documents.Description AS [DocDescr], dnn_Files.PortalID AS [PortalID], dnn_Files.Folder AS [FolderName], dnn_Files.FileName AS [FileName], dnn_Files.Size AS [FileSize], dnn_Files.Width AS [ImageWidth], dnn_Files.Height AS [ImageHeight] FROM dnn_TabModules LEFT JOIN dnn_Documents ON dnn_Documents.ModuleID = dnn_TabModules.ModuleID RIGHT JOIN dnn_Files ON dnn_Documents.URL = ('FileID=' + CAST(dnn_Files.FileID as varchar(30))) WHERE dnn_TabModules.TabID = @TabID AND dnn_TabModules.ModuleID != @ModuleID AND dnn_TabModules.Isdeleted = 0 AND dnn_Files.PortalID = @PortalID
    • Html Decode [ ]
    • Html Encode [ ]
    • Caching [ ]
    • Show Info Pane [ ]
    • Show Controls [ ]
    • Auto Run Report [v
    • Active Visualizer [ XSL Transformation Visualizer ] 
    • File location: [ Reports/Photoalbum ]
    • File Name : [ Photoalbum.xsl]
    • xml Namespace: []
    • .Net Type : [ ] 
  5. Add a Document Module
  6. Apply the following settings:
    • Module title: [Manage photo's on this page]
    • Give edit rights to the users who may add, edit and delete photos
    • Do not add photos 
  7. Export the page using the export button (left on top of the page, using the default DNN skin)
  8. Use the following options:
    • Folder: [templates]
    • Template name: [ Photo album ]
    • Include content [v]
  9. Import the module as a new page

The result at point 8 is a template (xml-file) with the SQL-statement included, the result at point 9 is a page with the SQL-module telling me I should enter a SQL statement...

All steps are taken as "host".

 

Environment:

DotNetNuke Community Edition
5.1.0
ReflectionPermission, WebPermission, AspNetHostingPermission
SqlDataProvider
FileBasedCachingProvider
DBLoggingProvider
FckHtmlEditorProvider
DNNFriendlyUrl
True
humanfriendly
REQUEST_METHOD
True

Microsoft Windows NT 5.2.3790 Service Pack 2
Microsoft-IIS/6.0
2.0.50727.3053
NT AUTHORITY\Netwerkservice
/
7/14/2009 4:13:02 PM

 

Kind regards,

Luciano

 
New Post
7/14/2009 5:18 PM
 

only modules supporting iPortable interface will be included with content - any DNN admin modules are currently not included - and I assume Media doesn't support iPortable as well - you can easily check it your self in Host :: Module definitions.

Even for modules supporting iPortable, Page specific settings ("TabModuleSettings") will not be exported due to a limitation of the export/import interface.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/15/2009 10:18 AM
 

Dear Sebastian, 

Thanks for the quick and accurate answer. 

The funny thing about this is, the modules (at least the ones I did test) handle its specific settings' ([modulename] Module Settings) as 'content' when using the export / import functionality.

In a way it is logical, just something to take into account, when creating a page template. 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 5.1.0 - Does anybody know how to create a pagetemplate including the module settings?DNN 5.1.0 - Does anybody know how to create a pagetemplate including the module 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