Qui
lt cachetime gt 0 lt cachetime gt lt controls gt 4. Most of the generated lines are fine, but some of the lines need to be fixed. Start by replacing YourCompany with your actual company name with a simple search and replace Under the Edit menu, look under Find and Replace and click on Quick Replace or just press Ctrl H . 5. When prompted by the Find and Replace dialog, provide the following information 7. Next, update these three lines ACME Employees Change lt description gt to A list of...
Info Ddp
flag, and imageURL in this example . The content's unique ID ItemID in this example within the module. The ID of the user that created the content CreatedBy in this example . The date the content was made available to the search engine CreatedDate
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...
Determining controls that need translations
There are times when your DNN form has many controls and you may have difficulty determining those that need a translation in the local resource file. DNN includes a technique to make each control on your form display the resource key it uses when there is no translation string in the resource file. To follow along with this recipe you must have completed the following recipe from Chapter 6 f Displaying labels from the resource file 1. Look on the DNN server and locate the root folder of the...
Info Dxw
13. You will now see the Analytics overview page showing your website and the current analytics. Look at the number shown next to your URL this is the tracking ID. 14. To put this tracking number in your DNN site, start by logging in as Portal Administrator sysadmin in our examples . 15. From the Admin menu, select Google Analytics. 16. Type in the tracking ID from the Analytics overview page. 17. Click on Update to save your changes. You should see a message that your configuration was...
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 Hyl
1. 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...
Controlling navigation with NavigateURL
In this recipe we'll see how to control navigation within a module using NavigateURL. In this example, we will hook up the Datagrid of employees so that when the link for an employee is clicked, navigation will pass to the secondary View control created in the previous recipe and display the employee details. rff Note this technique is for navigation within a module, I not outside to other modules or pages. I To follow along with this recipe you must have completed the following recipe Creating...
Ok
9. If you do not see a success message, confirm you have supplied a valid domain, a valid user name and password, and also that Active Directory is available on your network. 10. Click on Cancel to close the configuration page. 11. To test the results, log out as SuperUser. 12. Windows will now try to log you back into the portal. If all goes well, you will be prompted for your Active Directory username and password and then the DNN home page will display. Once logged in, your users can come...
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...
Info Wuu
If you encounter the error WindowsSignin.aspx should NOT allow anonymous access. while setting up Active Directory security in DNN, you will need to manually tweak the security on the WindowsSignin.aspx file as follows On the web server, open the IIS Manager and expand the folder DesktopModules AuthenticationServices ActiveDirectory until you can see WindowsSignin.aspx listed. Right click on WindowsSignin.aspx and select Properties. On the File Security tab should be a section called Anonymous...
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
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...
How to do it Sut
1. Launch the Development Tool and load the Employee project. 2. In the Solution Explorer, look under the references and make sure your project includes a reference to DotNetNuke.WebUtility.dll. 3. Double-click to open the EditEmployee.ascx file. 4. Make sure the following register directive is at the top of the file lt Register tagprefix DNN gt 5. We will replace the existing HTML table containing the employee fields with a TabStrip control table holding the name fields under the first tab and...
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...
How to do it Ujh
1. Log in as the host user syshost in our examples . 2. Look under the Host menu and select Host Settings. 3. Scroll all the way down and look for the section called Other Settings and expand it. - Other Settings amp Control Panel 0 Scheduler Mode amp Enable Event Log Buffer Help URL Enable Module Online Help amp Auto-Sync File System G Enable Content Localization







