Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Content Subscription web part View modes: 
User avatar
Member
Member
clan1999-hotmail - 2/27/2010 12:58:47 PM
   
Content Subscription web part
Hello,

I was getting error when I tried to subscribe to content using the Content Subscription webpart. The error said "Please select some notification template for the specified events in the webpart settings." Luckily, I found the solution in the FAQ page. The solution is "Please edit the web part configuration and enter the template name in following format: SiteCodeName.TemplateCodeName" I'm having trouble understanding this solution. Where in the webpart settings do I enter this value? Also, what's an example of TemplateCodeName?

Seong

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/1/2010 8:51:02 AM
   
RE:Content Subscription web part
Helo.

Could you please go to Site Manager -> Development -> Notifications, make sure that there is some E-mail gateway defined (by default, the "Email gateway" should be here), go to Templates tab and see for any template here? By default, a "New product" template should be here. Then please go to properties of your Content subscription web part and in "Gateway names" property add this e-mail gateway.

Best Regards,
Radek Macalik

User avatar
Member
Member
clan1999-hotmail - 3/2/2010 5:23:27 AM
   
RE:Content Subscription web part
Hi Radek,

I checked everything and everything is set up according to what you said. In the Content subscript web part, I see "Email gateway". But I still get an error.

Seong

User avatar
Kentico Support
Kentico Support
kentico_radekm - 3/4/2010 8:31:51 AM
   
RE:Content Subscription web part
Hello.

In this case, could you please send me screenshots of all properties I have mentioned in my previous post to support@kentico.com, so I can examine them? Please refer to this forum thread in your e-mail. Thank you.

Best Regards,
Radek Macalik

User avatar
Member
Member
maker.plays.ten-gmail - 11/5/2010 9:52:12 AM
   
RE:Content Subscription web part
Hi,

I've run into a similar issue. The Gateway is enabled. There is a template:

Display Name: New Blog Post
Code Name: NewBlogPost

Below is the control code:

<uc1:ContentSubscription runat="server" ID="BlogSubscription"
disablemacros="False"
path="/Blogs/%"
eventdisplayname="New blog post notification"
createeventtemplatename="New Blog Post"
createeventenabled="false"
updateeventenabled="false"
deleteeventenabled="False"
visible="True"
disableviewstate="False"
templatename="New Blog Post"
action="CREATEDOC"
eventdescription="Subscribe for new blog post notification:"
actions="CREATEDOC"
timezonetype="server"
subscriptionusehtml="True"
documenttype="CMS.BlogPost"
createeventdisplayname="New blog post notification"
subscriptionformat="True"
hideonsubpages="False"
useupdatepanel="False"
sitename="BlogSite"
GatewayNames="CMS.EmailGateway"/>
</cms:webpartcontainer>

I have also tried:

createeventtemplatename="NewBlogPost"
templatename="NewBlogPost"

And (formatted like "SiteCodeName.TemplateCodeName"):

createeventtemplatename="BlogSite.NewBlogPost"
templatename="BlogSite.NewBlogPost"

Any ideas?

User avatar
Kentico Support
Kentico Support
kentico_radekm - 11/29/2010 7:19:59 AM
   
RE:Content Subscription web part
Hello.

I see you are using ASPX page template. I tried it on our default Corporate site ASPX web site template using code below and it works. No other property is needed. Code is this:

<uc3:ContentSubscription ID="ContentSubscription1" runat="server" 
Path="/Products/%"
SiteName="CorporateSiteAspx"
GatewayNames="CMS.EmailGateway"
CreateEventEnabled="true"
CreateEventDisplayName="New product notification"
CreateEventTemplateName="NewProduct"
/>


Where "NewProduct" is template name as I can see it in Site Manager -> Development -> Notifications -> Templates -> edit -> CodeName field. Could you please try this simple code and use code name of proper template? Thank you.

Best Regards,
Radek Macalik