Try our conversational search powered by Generative AI!

Per Nergård
Apr 26, 2013
  2964
(0 votes)

CMS 7 Subscriptions “bug”

The other day the first task was to build a subscription page. The Alloy demo templates doesn’t contain an example so I needed a quick brushing up on the topic.

The conclusion is that subscriptions work in the same way as in older versions of EPiServer. Not an extremely well documented area but that might be the topic of another post.

So our subscription template needs a property named “EPSUBSCRIBE-ROOT”.

So now the problems begins. In C# we can’t use a hyphen (-) in class or property names. We have the same issue with the property  “EPSUBSCRIBE-EXCLUDE” that is optional to include on pages that should not be sent out in the subscription job.

EPiServer has created a bug for this issue.

To get around this until EPiServer has released a fix we have to create the properties through admin mode.

Apr 26, 2013

Comments

Arild Henrichsen
Arild Henrichsen Nov 8, 2013 03:05 PM

Note this is also a problem in CMS 6 when using PageTypeBuilder. The latest official release of PTB (2.0) does not support hyphenated property names such as EPSUBSCRIBE-ROOT, although several developers have requested, and proposed, a workaround. See http://pagetypebuilder.codeplex.com/workitem/6913 for issue report and http://pagetypebuilder.codeplex.com/sourcecontrol/list/patches for a proposed patch. (Disclaimer: untested)

You can download the PTB source code from http://pagetypebuilder.codeplex.com/releases/view/79210 and add the necessary modifications.

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