Try our conversational search powered by Generative AI!

erik.engstrand@precio.se
Nov 7, 2009
  6039
(3 votes)

Users statistics gadget

After installing the EPiServer CMS 6 CTP I saw the Gadget contest on EPiSerer world. Here is my contribution to the contest. The users statistics gadget.

It simply displays a chart with the number of users and subscription users you have registered on the site. It’s also possible to show a chart of the users in a specific role. All settings is done in the Edit menu.

The chart is created in SIlverlight (Visifire). The Silverlight application accesses the users statistics from a WCF service. All wcf configurations is in the Gadget web.config. And therefore no need to update the web project’s web.config.

image 

 

Configuration

By clicking the Edit in the menu you will see some configuration options. You can choose to show statistics for one role of all roles in the RoleMembershipProvider.

image

Save history data

The history data is stored in the DynamicDataStore. I have created a scheduled job which should be executed once a day.

As seen in the image above I have made it possible to generate dummy data for the statistics. This is just for demo purposes.

Installation

If you have problems with the Silverlight chart. Add mime type to IIS: .xap     application/x-silverlight-app. Configuring IIS for Silverlight Applications.

The clientaccesspolicy.xml must be placed in the root of your project to get the Silverlight wcf reference running. This is done by the installer below.

Source code

Nov 07, 2009

Comments

erik.engstrand@precio.se
erik.engstrand@precio.se Sep 21, 2010 10:32 AM

Live writer problem. The first link is the installer.

erik.engstrand@precio.se
erik.engstrand@precio.se Sep 21, 2010 10:32 AM

The tags disappeared when editing the blog entry in Live writer.

Please login to comment.
Latest blogs
Upgrade Optimizely CMS From v11 to v12

Why Upgrade? There are many improvements implemented in version 12, but most importantly is that the whole framework is migrated from .Net Framewor...

MilosR | May 13, 2024

Configured Commerce - Infrastructure Updates Ahoy!

I'm very happy to share an important milestone - we no longer have any customers in our legacy v1 environment!  This means that the Configured...

John McCarroll | May 10, 2024

A day in the life of an Optimizely Developer - Enabling Opti ID within your application

Hello and welcome to another instalment of A Day In The Life Of An Optimizely developer, in this blog post I will provide details on Optimizely's...

Graham Carr | May 9, 2024

How to add a custom property in Optimizely Graph

In the Optimizely CMS content can be synchronized to the Optimizely Graph service for it then to be exposed by the GraphQL API. In some cases, you...

Ynze | May 9, 2024 | Syndicated blog