Feeds:
Posts
Comments

Archive for August, 2010

In one of my previous posts, i described the mechanism to schedule a tasks in DotNetNuke.

DNN provides a user interface to create and manage scheduled tasks (a.k.a Schedule Items), you can access the schedule items by logging in as Host and navigating to Host -> Schedule. You can manage already created schedule items here and you can create new schedule items as well.

But, if you want to create a schedule item in code, following piece of code will help you.

Code: Create Schedule Item


private DotNetNuke.Services.Scheduling.ScheduleItem CreateScheduleItem(
    String friendlyName,
    String typeFullName,
    String objectDependencies,
    int timeLapse,
    String timeLapseMeasurement)
{
    DotNetNuke.Services.Scheduling.ScheduleItem objScheduleItem =
        new DotNetNuke.Services.Scheduling.ScheduleItem();
    objScheduleItem.FriendlyName = friendlyName;
    //ONLY Supported in 05.02.xx and above versions

    objScheduleItem.TypeFullName = typeFullName;
    objScheduleItem.TimeLapse = timeLapse;
    objScheduleItem.TimeLapseMeasurement = timeLapseMeasurement;
    objScheduleItem.RetryTimeLapse = 1;
    objScheduleItem.RetryTimeLapseMeasurement = "m";
    objScheduleItem.RetainHistoryNum = 100;
    objScheduleItem.AttachToEvent = "";
    objScheduleItem.CatchUpEnabled = false;
    objScheduleItem.Enabled = false;
    objScheduleItem.ObjectDependencies = objectDependencies;
    objScheduleItem.Servers = Null.NullString;
    return objScheduleItem;
}

Code: Add the Schedule Item to DotNetNuke


DotNetNuke.Services.Scheduling.ScheduleItem item =
CreateScheduleItem("Test Item", "TypeFullName", "", 10, "m");

int scheduleID =
DotNetNuke.Services.Scheduling.SchedulingProvider.Instance().AddSchedule(item);
Advertisements

Read Full Post »

DotNetNuke provides a robust framework for scheduled tasks. Some tasks are already scheduled by DotNetNuke installation and you can also add your own custom tasks to the DotNetNuke schedule.

DotNetNuke schedule is accessible from the Host -> Schedule screen. This screen lists all of the scheduled tasks also called schedule item. You can see status, history and properties of each schedule item.

You can find more details about DotNetNuke Scheduler in this PDF document.

You can find more details about creating a DotNetNuke schedule item in following posts:

The first step in creating a Schedule Item is to create a DotNet Assembly that will contain the logic to execute the scheduled task. Your class for task execution should inherit from DotNetNuke.Services.Scheduling.SchedulerClient. Once the Assembly is ready, you can create a new Schedule Item by going to Host -> Schedule -> Add Item to Schedule.

Read Full Post »

Fancy Image Menu is DotNetNuke module that can show images in an interactive grid. Once mouse is moved over an image in the grid, image will slide away and you can see the heading and description text.

It is an old saying that A picture is worth a thousand words, but sometimes we expect more from images on the web . This is the time when default or custom tool-tips come into play. One of the simple way to show more info with an image is to show a default tool-tip. But if you want to do the same in a better way, you can give a try to Fancy Image Menu.
Fancy Image Menu can show images in an interactive grid. You can set width, height and number of grid columns for this module from the setting screen.
This blog post will describe the simple steps on how to use Fancy Image Menu module in DotNetNuke portals.

Step-1: Install DNN_FancyImageMenu

Once you have downloaded DNN_FancyImageMenu, you can install it in your portal by logging in as Host and going to Host -> Module Definitions -> Install Module. If you are not familiar with DotNetNuke module installation, please read following articles:

Step-2: Add DNN_FancyImageMenu to a Page

Once the module is installed, it will be available in the Module drop-down. You can add DNN_FancyImageMenu to your desired pane.

Add DNN_FancyImageMenu to Page

Add DNN_FancyImageMenu to Page

 

Step-3: DNN_FancyImageMenu Settings

After adding the DNN_FancyImageMenu, you can go to module settings page and scroll to bottom section “DNN_FancyImageMenu Settings”. This section contains settings for the fancy menu module. See following screen for setting details.

Module Settings

Module Settings

Following table describes the available settings.

Setting Description
Dimension Specify the width and height for the images in the fancy image menu.
Columns Specify number of columns, enter 1 to show vertical menu.
Main Container HTML You can write your custom HTML. It can serve as wrapper around the menu.
Use [FANCY_MENU] in a place where you want to show the actual menu.

Step-4: DNN_FancyImageMenu Images

Now you are ready to add images to your menu. You can click the “Add Content” link on the newly added module. This will show you image listing, you can upload images. With each image, you can add its heading, description and link. You can also change order of images in this section. See following screens for reference.

Image Listing

Image Listing

Add Image

Add Image

 

Step-5: DNN_FancyImageMenu View

You are all set – now you can go back to the page where you added DNN_FancyImageMenu and see the interactive grid menu in action.

Fancy Image Menu

Fancy Image Menu

You can add multiple menus on a single page and each module will work with its own images and properties.

If you face any issue, you can send in an email at dnnzone@gmail.com

Read Full Post »

Introduction

One of the mostly widely used module in DotNetNuke is the HTML module, which is used to add html content to the portal pages.

Sometime, we need to add same html content to multiple (or all) pages of a portal. In such cases one option can be to add separate HTML modules on required pages and add content. But this is not the best option; as if we need to edit the content, we will have to make changes to all HTML modules one by one. To solve this issue, DotNetNuke provides a built-in functionality to add reference of the modules on different pages. This way, you only have to edit the content at one place and the changes are automatically replicated at all reference modules.

Problem

But this DotNetNuke default functionality only supports adding reference of modules within the same portal. Some time we come across a requirement where we want to show same content on two different portals or two different hosts. The built in functionality provided by DotNetNuke is limited to one portal only and there is no such functionality available to add reference of HTML modules across DotNetNuke hosts or even across portals.

Solution

To meet this requirement, I have developed two modules. With the help of these modules, HTML modules can be referenced across different portals in one DotNetNuke host, these modules can also help to create HTML module reference in portals which reside on different DotNetNuke hosts.

These modules are available on Snowcovered.

How to Use

Usage of these modules is very simple. First you need to add HTMLBroadcaster module on any of the portal on the DotNetNuke host. Now you can add HTMLReceiver module on the page where you want to add reference of the HTML module. In the setting of the HTMLReceiver module, you will have to set the URL of the HTMLBroadcaster page and Module Id. This module support caching as well. If you want to cache the HTML content on the Receiver end, you can mention the number of minutes to maintain cache. Once cache is expired, content will be fetched from the Broadcaster.

You can try it yourself to see these modules in action.

Read Full Post »

Nivo Slider for DNN is released today. In this post, i will describe how DNN_NivoSlider can be used in a DotNetNuke Portal.

Step-1: Purchase & Download DNN_NivoSlider

You can purchase and download a copy of DNN_NivoSlider on Snowcovered.

Step-2: Install DNN_NivoSlider

Once you have purchased DNN_NivoSlider, you will be able to download DotNetNuke module installer file “DNN_NivoSlider_01.00.00_Install.zip”. If you are not familiar with DotNetNuke module installation, please read following articles:

Step-3: Add DNN_NivoSlider to a Page

Once DNN_NivoSlider is installed, it will be available in the Module drop-down. You can add DNN_NivoSlider to your desired pane.

Add DNN_NivoSlider to Page

Step-4: DNN_NivoSlider Settings

After adding the DNN_NivoSlider, you can go to module settings page and scroll to bottom section “DNN_NivoSlider Settings”. This section contains settings for Nivo Slider control. See following screen for setting details.

Module Settings

Following table describes the available settings.

Setting Description
Effect You can choose a effect from drop-down. By default random effects are applied.
Slices This setting defines the number of slices of each image for slide transitions.
Animation Speed This defines the animation speed for slide transitions.
Pause Time Time between each slide transition.
Starting Slide Starting slide index – this is zero based index.
Caption Opacity Opacity for the caption area.
Navigation Sow left-right navigation arrows
Hide Navigation Only show navigation when mouse is inside the slider area.
Control Navigation Show navigation control – this will display a dot for each slide.
Keyboard Navigation Allow keyboard navigation.
Stop Animation on Hover Stop slide transition on mouse hover
Container HTML You can write your custom HTML. It can serve as wrapper around the slider.
Use [NIVO_SLIDER] in a place where you want to show the actual slider.

Step-5: DNN_NivoSlider Images

Now you are ready to add images to your slider. You can click the “Add Content” link on the newly added module. This will show you image listing, you can upload images. With each image, you can add its caption and link, please note both the caption and link are optional attributes. You can also change order of images in this section. See following screens for reference.

DNN_NivoSlider - Image Listing

DNN_NivoSlider - Add Image

Step-6: DNN_NivoSlider Slide Show

You are all set – now you can go back to the page where you added the DNN_NivoSlider and see the slider in action. You can play with the slider properties and container html to meet your needs.

DNN_NivoSlider - Slide Show with Caption

DNN_NivoSlider - Slide Show

You can add multiple sliders on a single page and each slider will work with its own images and properties.

If you face any issue, you can send in an email at dnnzone@gmail.com

Credits:

Most Awesome jQuery Image Slider Nivo Slider is a product of dev7studios.

Read Full Post »

As described in one of my previous posts jQuery Image Slider,  Nivo Slider is one of the widely used jQuery based image slider.

DotNetNuke does not provide a built in module to show transitions in image slides.  I have created a DotNetNuke custom module (DNN_NivoSlider) to use Nivo Slider in DNN.  DNN_NivoSlider’s version 1 is released and it will soon be available on Snowcovered.com.

DNN_NivoSlider is a custom DNN module that provides a user interface to manage slider properties and image gallery.
DNN_NivoSlider will allow you to upload images and show them as Nivo Slider. You can customize the Nivo Slider options from the module settings page.

I will write more about DNN_NivoSlider in coming days.

Read Full Post »