Starbugstone / SnowTricks

OpenClassrooms - Php Symfony App dev - project 6
0 stars 0 forks source link

Trick Entity #6

Closed Starbugstone closed 5 years ago

Starbugstone commented 5 years ago

Create the trick entity with CRUD

Starbugstone commented 5 years ago

Adding stuff to the brach feature-TrickEntity https://github.com/Starbugstone/SnowTricks/tree/feature-TrickEntity

Starbugstone commented 5 years ago

Using docrtine extensions Sluggable to generate slug and Timestampable for the creation an update datetime

Starbugstone commented 5 years ago

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.

Starbugstone commented 5 years ago

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

Starbugstone commented 5 years ago

Added KnpMarkdownBundle to the trick description. This allows the user to style the article a bit

Starbugstone commented 5 years ago

In branch release/basic-trick-CRUD https://github.com/Starbugstone/SnowTricks/commits/release/basic-trick-CRUD