November Happy Hour will be moved to Thursday December 5th.

Stefan Forsberg
Apr 25, 2009
  5612
(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
Optimizely SaaS CMS + Coveo Search Page

Short on time but need a listing feature with filters, pagination, and sorting? Create a fully functional Coveo-powered search page driven by data...

Damian Smutek | Nov 21, 2024 | Syndicated blog

Optimizely SaaS CMS DAM Picker (Interim)

Simplify your Optimizely SaaS CMS workflow with the Interim DAM Picker Chrome extension. Seamlessly integrate your DAM system, streamlining asset...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Optimizely CMS Roadmap

Explore Optimizely CMS's latest roadmap, packed with developer-focused updates. From SaaS speed to Visual Builder enhancements, developer tooling...

Andy Blyth | Nov 21, 2024 | Syndicated blog

Set Default Culture in Optimizely CMS 12

Take control over culture-specific operations like date and time formatting.

Tomas Hensrud Gulla | Nov 15, 2024 | Syndicated blog

I'm running Optimizely CMS on .NET 9!

It works 🎉

Tomas Hensrud Gulla | Nov 12, 2024 | Syndicated blog

Recraft's image generation with AI-Assistant for Optimizely

Recraft V3 model is outperforming all other models in the image generation space and we are happy to share: Recraft's new model is now available fo...

Luc Gosso (MVP) | Nov 8, 2024 | Syndicated blog