Closed Starbugstone closed 5 years ago
Adding stuff to the brach feature-TrickEntity https://github.com/Starbugstone/SnowTricks/tree/feature-TrickEntity
Using docrtine extensions Sluggable to generate slug and Timestampable for the creation an update datetime
Basic crud is working. need to change the ID to the Slug. reflection needed on the title change. -> Slug is good for SEO -> If a user changes the title, loss of all SEO rank and fav shortcuts =>Probably add the ID to the beginning or end of the slug and base the controller on the ID.
route is "trick/id-slug" If slug is wrong, do a 301 redirect to the proper id-slug for SEO. Only using ID in call, slug is there for google and Cie Only used in the show. The edit doesn't need a slug as it is reserved to inscribed users only and not public
Added KnpMarkdownBundle to the trick description. This allows the user to style the article a bit
In branch release/basic-trick-CRUD https://github.com/Starbugstone/SnowTricks/commits/release/basic-trick-CRUD
Create the trick entity with CRUD