More in this section

Forums / Bugs & Issues / Bug: can't enter multiple events with same title

Bug: can't enter multiple events with same title

2 posts, 0 answered
  1. Jules
    Jules avatar
    65 posts
    Registered:
    20 Jul 2005
    29 Jul 2011
    Link to this post
    I am trying to load the event calendar for the next month, and am running into a bug. Sitefinity seems to want to autogenerate a URL for the events by adding "/events/" and then appending a date. That's fine, but it appears to be using the date that is loaded into the Start Date field when the entry page loads and not the actual date once the user has changed it.

    Example. Say I want to go into Sitefinity and add two meetings called "strategy meeting", one for August 1 and another for August 3. I am entering both into the events module today, 7/29.
    When I enter the first meeting, all is well and the event publishes with no issues.
    I enter the second meeting, with the correct start date of 8/3, and when I click publish I receive the following message: "An item with the URL '/2011/07/29/faculty-meeting' already exists.".

    Any ideas for a workaround and ETA for when this may be fixed?? SF version 4.1.1574.
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    01 Aug 2011
    Link to this post
    Hi Julia Essex,

    It's possible to achieve this functionality by changing the way URLs for Events are generated. Currently when an Event is created we take its PublicationDate and its Name to form the URL (so if you create two events with the same name on different days, let's say today and tomorrow, there won't be any conflicts). However for your scenario you'll have to setup a URL format that is composed of the EventStart date and the EventName (please not that if you have events with the same name that start on the same date, this will introduce conflicts). To achieve this functionality please go to Sitefinity backend ->Administration -> Settings ->Advanced ->Events ->Providers ->OpenAccessDataProvider->Parameters ->create new
    For Key type "urlFormat"
    for Value: "/[EventStart, {0:yyyy'/'MM'/'dd}]/[UrlName]" (all without the quotes). Then save and restart the application sot he changes can be applied. Now you'll be able to create two events with the same names that start on different dates.. Accordingly you can specify "/[EventEnd, {0:yyyy'/'MM'/'dd}]/[UrlName]" or just "/[UrlName]" depending on the specific scenario.



    Greetings,
    Boyan Barnev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered