Try our conversational search powered by Generative AI!

Per Nergård
Apr 26, 2013
  2955
(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
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

.Net Core Timezone ID's Windows vs Linux

Hey all, First post here and I would like to talk about Timezone ID's and How Windows and Linux systems use different IDs. We currently run a .NET...

sheider | Apr 15, 2024

What's new in Language Manager 5.3.0

In Language Manager (LM) version 5.2.0, we added an option in appsettings.json called TranslateOrCopyContentAreaChildrenBlockForTypes . It does...

Quoc Anh Nguyen | Apr 15, 2024

Optimizely Search & Navigation: Boosting in Unified Search

In the Optimizely Search & Navigation admin view, administrators can set a certain weight of different properties (title, content, summary, or...

Tung Tran | Apr 15, 2024