ASPX templates
Version 5.x > ASPX templates > Events that Repeat View modes: 
User avatar
Member
Member
eric.rovtar-hudsonchapel - 9/23/2010 9:32:45 PM
   
Events that Repeat
Hi!

We have many events that repeat weekly. It seems silly to recreate each instance of an event as an event object. Is there a way to use the Event object as a repeating event?

Thanks!

-Eric

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 9/27/2010 5:55:19 AM
   
RE:Events that Repeat
Hello,

Regrettably, currently is this not possible. However, this functionality is planned for version 6.x.

Best regards,
Boris Pocatko

User avatar
Member
Member
Orefus - 1/20/2014 6:10:07 PM
   
RE:Events that Repeat
Currently we have version CMS 7/ HF 71 but still i don't see this feature for periodical repeated events. Is that planed in next verions? Or still I need make personaly customized feature. Or we can provide for Kentico Team sources. d:o)

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 1/20/2014 10:40:49 PM
   
RE:Events that Repeat
Hello Orefus,

Unfortunately, this functionality still isn't provided in the current version of Kentico CMS. I'm very sorry for this inconvenience.

Currently, you would need to use some workaround, like copy proper event as a new document. This can be done via user interface (Copy button) or API:
private bool CopyDocument()
{
// Create an instance of the Tree provider first
TreeProvider tree = new TreeProvider(CMSContext.CurrentUser);

// Get the document
TreeNode node = tree.SelectSingleNode(CMSContext.CurrentSiteName, "/API-Example/My-new-document", "en-us");

// Get the new parent document
TreeNode parentNode = tree.SelectSingleNode(CMSContext.CurrentSiteName, "/API-Example/Source", "en-us");

if ((node != null) && (parentNode != null))
{
// Copy the document
tree.CopyNode(node, parentNode.NodeID);

return true;
}

return false;
}

You could also write a scheduler task which could be creating these events automatically in some time period. Please see Scheduling a custom code

But of course if you have your custom implementation you can send us your sources to e-mail support (at) kentico.com

Best Regards,
Martin Danko