Giter VIP home page Giter VIP logo

Comments (3)

liedekef avatar liedekef commented on August 13, 2024

Based on a quick code review (not tested yet), this only happens because "eme-2024" is already taken as a slug by something else in EME, so EME starts from the beginning (removing "-" and all numbers at the end of a slug and start with just "eme", then "eme-1" etc ...).

from events-made-easy.

refugeindhamma avatar refugeindhamma commented on August 13, 2024

I'm using "EME" just as an example. The full title of the event is "Children's Drawing Class 2024". However, EME does not allow my slug to be "childrens-drawing-class-2024". I can only put it as "childrens-drawing-class2024".

I have tried it with various different names with the same result and I'm sure these names do not clash with other posts and events.

Edit: Just to add that this occurred in Recurring Events. I have not tested it for Single events.

from events-made-easy.

liedekef avatar liedekef commented on August 13, 2024

In general slugs are made unique by adding '-' followed by a number to it.
For recurrences, the same reasoning exists: recurring events exist of a series of single events and single events can't have the same slug. The first one would have childrens-drawing-class-2024, but the second one would have childrens-drawing-class (removing "-" followed by numbers until the end), the third one childrens-drawing-class-2, etc ...
To avoid such a difference, I remove the "-" and the numbers to begin with (for a recurrent series) and so the events will have as slug childrens-drawing-class, childrens-drawing-class-2, childrens-drawing-class-3, etc ...

However, there was a small glitch when wanting to change the slug for an event that ended with "-" followed by a number (the change was ignored in that case). Now the change will go through (after checking the new slug is unique of course or making it unique by adding a number again). The next version will correct that, but it won't change your "problem".

from events-made-easy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.