To participate you must create an account on apostrophenow.org. If you have already done so, click Login.

Ticket #229 (closed enhancement: fixed)

Opened 23 months ago

Last modified 6 months ago

Allow the sluggify method to be extended

Reported by: fotakis Owned by: tboutell
Priority: major Milestone: 1.5.2
Component: apostrophePlugin Version: 1.5
Keywords: slugify Cc: team@…
Symfony version: 1.4

Description

The method used for slugify is hardcoded within BaseaAction?->executeCreate(), which means that if any improved or alternate methods to create a slug are needed, the core needs to be touched.

I am attaching a patch which allows a user to use his/her own class to slugify a title.

Attachments

sluggify-patch.patch Download (1.7 KB) - added by fotakis 23 months ago.
This is a patch to extract the slugify method from the executeCreate action

Change History

Changed 23 months ago by fotakis

This is a patch to extract the slugify method from the executeCreate action

Changed 23 months ago by fotakis

  • component changed from Documentation to apostrophePlugin

Changing the component

Changed 17 months ago by tboutell

  • owner changed from boutell to tboutell

Changed 13 months ago by johnnyoffline

  • cc team@… added
  • version set to 1.5
  • milestone set to 1.5.1

Tom, there is a .patch file in this ticket.

Please evaluate the patch and determine if it can/should still be used for Slugify.

Changed 6 months ago by tboutell

  • status changed from new to closed
  • resolution set to fixed

We already addressed this by making aTools an empty subclass of BaseaTools? for easy overrides.

Note: See TracTickets for help on using tickets.