Displaying an XML feed

The XML XSL module is used to display a formatted XML data feed on a DNN page. There are many different kinds of publically available XML feeds and in this recipe will we see how to configure and format one. To use the XML XSL module you need a URL to a local or remote XML feed. In this recipe we will use the feed of a popular technology news site call Digg. We will also create a stylesheet to describe how the XML feed should be displayed. This is called the XSL Transformation (XSLT) file. 1....

Using multiple database connections

There are some situations when you need to access a database that is not the one running the DNN installation. Perhaps you need to run a query against a legacy database or extract information from a different company database. In this recipe we will see how to create a second database connection and use it to populate the Manager drop-down list from the recipe Populating a drop-down list from a stored procedure. For this recipe we will use the sample Northwind database that comes with MS...

Controlling the friendly URL rewriting

Since version 3, DNN has provided a mechanism to automatically convert the real URLs used for DNN pages to friendly URLs more compatible with people and search engines. For example, as search engines tend to ignore pages that use parameters, the URL could be converted to the more friendly URL http www.dotnetnuke.com tabid 52 7 default.aspx. This URL Rewriting is done automatically by following a set of rules saved in a special file called siteURls.config found in the root folder of the DNN...

Using the HTML module with Flash

As the HTML module can display the same kind of code as a normal HTML file, we can embed Flash animation in the module just as we would in a normal web page. In this recipe we will see how to add a .swf file to the HTML module using the editor. To follow along with this recipe you should be familiar with the basic content management tasks from Chapter 2, Managing Users and Site Setup such as Adding a module to a page . You also need a sample Flash .swf file. For this example, we will use a...

How to do it

Start by locating the default skin folder within your test DNN portal Portals _ default Skins . 2. Next, create a new folder to hold the skin files. Call this folder ASCXMenuSkin. 3. Create a new folder inside to hold the images ASCXMenuSkin images. 4. Find the folder holding the template skin from the recipe Downloading and installing a skin. 5. Locate and copy these images into the ASCXMenuSkin images folder. 6. With the images in place, we can now open the sample ASCX created in the...

Creating custom module actions

In many recipes we have used the module action menu that appears next to the module title and is used to select additional module features. Modules that inherit from the PortalModuleBase class receive several default actions in the menu things like Import Export Content . In this recipe we will show how to add your own actions in the module menu using the iActionable interface. There are three basic tasks to define our own module actions Define the custom action menu item Create a subroutine to...

Using the rounded corner Super Stylesheet

Super Stylesheets is a new feature in DNN version 5 that offers ways to reuse HTML layouts by maximizing the use of CSS. At the time of this writing there are three super stylesheets available the Yahoo YUI Library, the DNN layouts stylesheet, and the rounded corners stylesheet. In this recipe we will demonstrate how to import and use the rounded corners stylesheet to create a graphic box around skin content. To achieve the box effect, we start with a set of custom images for the box border,...

Using Active Directory with DNN

Dnn Authentication Provider

As we saw in Chapter 2, Managing Users and Site Setup, DNN comes with built-in user security with roles and grants. This is fine in many cases, but sometimes your DNN site is located on a network that already has Active Directory AD security. How can you configure a DNN portal to use the existing security and not have to recreate all the AD users The answer is to add the Active Directory Authentication provider to work along with the DNN security provider. In this way you can log in with user...

Creating a Manifest from an installed module

In the previous recipe we saw how to modify the manifest file created by the Starter Kit as part of deploying a module. One shortcoming of that approach is that the manifest created by the Starter Kit is not always meant for the latest version of DNN. This is done so that starter modules are usable on the widest range of DNN versions. But if you know that your module will only deploy to the latest version of DNN, you can generate a new, up-to-date manifest file from an installed module. To...

Site Setup

In this chapter we will cover the following topics Enabling user registration for your site Creating users and granting access Creating and assigning security roles Managing profile properties Creating and organizing pages Setting up a SMTP server with Gmail Once the DNN site has been successfully installed the next step is to set up the security roles, create your users, and make sure they can only see and edit content they have access to. This chapter covers security, maintaining users, and...