Feature Request: makeSefUrl/uniqueness_of needs rewritten to allow some duplicates
Reported by dleffler | October 18th, 2012 @ 04:05 PM | in 2.1.1 (closed)
In the help module, expCats, etc... we CAN have duplicate sef_url's in some cases since they are aggregated by help_version, module, etc... We've already rewritten the help model code to cope with this, but need a more universal solution since we are running into issues with other modules.
In a basic sense, we need to be able to pass a 'limiter' param to the expValidator::uniqueness_of method with an additonal sql statement to limit the scope of checking for existing duplicates.
Part of this was caused by removing the redundant MakeSefUrl code from expRecord, which wasn't redundant since the same method in expCore is for 'sef_name' used in sections and we use 'sef_url' everywhere else.
Comments and changes to this ticket
-
expNinja December 12th, 2012 @ 03:34 AM
- State changed from new to resolved
(from [7c9530ffec4d5563583ec6926a1d3be033961510]) Adds some work-arounds for makeSefUrl and uniqueness_of to allow for subgroups. This only affects expCat & help, but reduces the code in the help model and implements uniqueness inside a module, but not globally for expCat [#777 state:resolved] https://github.com/exponentcms/exponent-cms/commit/7c9530ffec4d5563...
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.
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