More in this section

Forums / General Discussions / Rewrite the Event URL

Rewrite the Event URL

4 posts, 0 answered
  1. Anthony
    Anthony avatar
    108 posts
    Registered:
    29 Sep 2008
    28 Jul 2011
    Link to this post
    Is there a way to change the default events url?  It seems to currently be dateCreated/EventTitle and I need it to be dateOfEvent/EventTitle.  

    We have a list of Special Education Workshops to enter in as events.  They all have the Name of "Special Education Workshop" and then the details are listed in the Description area.  Each one is unique.  Whenever we enter all of the events in, I have noticed the URL for each is the same and only the last event entered is given details for.  The url is based on the day the event was created and note the day of the event.  So entering multiple items with the same name at the same time causes this problem.

    Is there any what to change this to the URL is based on the event day and not the creation day?

    Anthony
  2. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    28 Jul 2011
    Link to this post
    Hi Anthony,

    Yes, it's quite easy tho change the way Sitefinity formats content item's URls. Please take a look at this forum thread, which contains an explanation and screenshot demonstrating the location of the settings. Please note you'll need to restart the application to apply the new changes. In your case, I believe a urlFormat of /[EventStart]/[UrlName] would suit the desired functionality. If you have any additional questions, please let us know.

    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
  3. Anthony
    Anthony avatar
    108 posts
    Registered:
    29 Sep 2008
    02 Aug 2011
    Link to this post
    This seems to be exactly what I am looking for, but I am running into one problem.  Is there a way to take the time out of the url?  It is causing errors to be thrown due to the colon in the time.

    If it could just be [EventStart without time]/[URLName] that would be perfect.

    Please let me know.

    Anthony
  4. Boyan Barnev
    Boyan Barnev avatar
    1429 posts
    Registered:
    30 Oct 2017
    02 Aug 2011
    Link to this post
    Hi Anthony,

    Sure it can :) Please try specifying "/[EventStart, {0:yyyy'/'MM'/'dd}]/[UrlName]" (without the quotes) that should do the job

    Best wishes,
    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
4 posts, 0 answered