Try our conversational search powered by Generative AI!

Stefan Forsberg
Apr 25, 2009
  5497
(0 votes)

Page Provider – Part one

A task that that keeps appearing more and more is the case of integrating information from some other data source into EpiServer. One way to solve this is to mirror the content and create corresponding Epi-pages programmatically but this clearly violates the DRY principle. Another approach is to write custom logic for the furl handling to be able to present your data that way. This is quite a nice solution in some cases but it’s for example hard to use built in episerver controls like the page list in this scenario. Ted made an excellent blog post about this here.

Another solution that’s available in CMS R2 (running on an enterprise license) is to create a page provider. Page Providers gives you a way of letting EpiServer treat your custom data as though they were normal episerver pages. During the course of the next few posts I'll create a page provider that's used to present a product catalogue.

 

The database

The company we're creating the site for already has a database with all their product data so that should be the base of all the product information.

db

Luckily enough for us the company has both an integer based ID as well as an Guid for each of the categories which will make creating the page provider a bit easier. You might suspect that I designed the database this way for this example because I’m slightly lazy… and that’s a 100% correct assumption. Why this makes our lives easier will be explained in a later post.

Apr 25, 2009

Comments

Sep 21, 2010 10:32 AM

Looking forward to your upcoming posts!

Please login to comment.
Latest blogs
Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog

Azure AI Language – Abstractive Summarisation in Optimizely CMS

In this article, I show how the abstraction summarisation feature provided by the Azure AI Language platform, can be used within Optimizely CMS to...

Anil Patel | Apr 18, 2024 | Syndicated blog

Fix your Search & Navigation (Find) indexing job, please

Once upon a time, a colleague asked me to look into a customer database with weird spikes in database log usage. (You might start to wonder why I a...

Quan Mai | Apr 17, 2024 | Syndicated blog

The A/A Test: What You Need to Know

Sure, we all know what an A/B test can do. But what is an A/A test? How is it different? With an A/B test, we know that we can take a webpage (our...

Lindsey Rogers | Apr 15, 2024