smithsson68@gmail.com
Dec 22, 2009
  7535
(0 votes)

Page Objects in EPiServer CMS 6

Another new exciting feature in CMS 6 (RC onwards) is the joining of forces between CMS pages (PageData) and objects that can be stored in the Dynamic Data Store, a.k.a. Page Objects.

Of course this can be handled manually by the programmer by storing an object in the DDS and then keeping track of it somehow as Alan demonstrates here.

However, since Alan wrote that blog article we have developed Page Objects so you don’t have to worry about the connection between the page and the DDS object.

Page Objects behave like CMS Page Properties when in comes to versioning and language support. That means that each version of a page gets its own copy of Page Objects. However, under the covers it is quite smart and will only point to its own copy when the version of the object differs from the original, which means better performance.

Another advantage of using Page Objects instead of rolling your own page – DDS hookup is that you get free Import/Export and Mirroring support for the objects.

The new PageObjects property (.NET property) can be found on the PageData class. It behaves like a .NET dictionary so you add and access your objects with the use of a key.

Happy coding and remember, use Page Objects and the DDS responsibly! Reading a massive object graph every time a page in CMS renders will not give you the happiest of experiences (even with caching).

Dec 22, 2009

Comments

Please login to comment.
Latest blogs
Opti ID overview

Opti ID allows you to log in once and switch between Optimizely products using Okta, Entra ID, or a local account. You can also manage all your use...

K Khan | Jul 26, 2024

Getting Started with Optimizely SaaS using Next.js Starter App - Extend a component - Part 3

This is the final part of our Optimizely SaaS CMS proof-of-concept (POC) blog series. In this post, we'll dive into extending a component within th...

Raghavendra Murthy | Jul 23, 2024 | Syndicated blog

Optimizely Graph – Faceting with Geta Categories

Overview As Optimizely Graph (and Content Cloud SaaS) makes its global debut, it is known that there are going to be some bugs and quirks. One of t...

Eric Markson | Jul 22, 2024 | Syndicated blog

Integration Bynder (DAM) with Optimizely

Bynder is a comprehensive digital asset management (DAM) platform that enables businesses to efficiently manage, store, organize, and share their...

Sanjay Kumar | Jul 22, 2024

Frontend Hosting for SaaS CMS Solutions

Introduction Now that CMS SaaS Core has gone into general availability, it is a good time to start discussing where to host the head. SaaS Core is...

Minesh Shah (Netcel) | Jul 20, 2024

Optimizely London Dev Meetup 11th July 2024

On 11th July 2024 in London Niteco and Netcel along with Optimizely ran the London Developer meetup. There was an great agenda of talks that we put...

Scott Reed | Jul 19, 2024