#1421 new
dleffler

Feature request: Allow SEF Url request for Events

Reported by dleffler | October 4th, 2017 @ 01:49 PM

Links to calendar events are not human discernible since they are based on event/event-date id numbers, or unix datetimestamps. Perhaps create a new method 'show_by_date' which returns all the events within that year, or year/month, or year/month/day, or year/month/day/title similar to what is done in the News module. This in turn could be streamlined with a router_maps.php entry so that a group of events could pulled by:

http://localhost/events/show_by_date/year/2017/month/10/day/15/title/my-event
with a router_maps.php clean link of:
http://localhost/event/show/2017/10/15/my-event
Of course we'd need to add sef names to events and some sort of upgrade script to revise existing events...uniqueness would need to be based on specific date?

Comments and changes to this ticket

  • dleffler

    dleffler October 18th, 2017 @ 12:52 PM

    While this may be able to be implemented as a 'hack', it can't feasibly be used due to the possibility of having several occurrences of an event during a set date. Looking at 2 functions

    • showall_by_date/show_by_date, to pull up an event or events by the date and/or sef_url
    • event_url, to create a link per above specs when passed a date using it's event and eventdate id's

    At a minimum, we'll need to add an sef_url field to the event table and an upgrade script to create unique names to existing events. Therefore (in theory), the 'event' is pulled up from it's 'title' and the specific event (date) is pulled up from the date params.

  • dleffler

    dleffler October 20th, 2017 @ 12:46 PM

    • Assigned user set to “dleffler”

    Doh! forgot you have to be able to select the module by it's 'src' or by some unique sef_url (which we won't have for this module), therefore, the parameters will require a calendar name (use the existing ical sef url) or src.

    http://localhost/events/show_by_date/calendar/my-events/year/2017/month/10/day/15/title/my-event
    
    therefore the router_map clean link would be:
    http://localhost/event/show/my-events/2017/10/15/my-event
    
  • dleffler

    dleffler April 3rd, 2020 @ 01:48 PM

    Note, a biggest obstacle for this to be implemented would be since events become individualized (copied) whenever any parameter of any less than the total number of all events, which would create a new sef_url with an autogenerated unix datetimestamp attached to the ser_url.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Pages