Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Feature Request: makeSefUrl/uniqueness_of needs rewritten to allow some duplicates

#777

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.

Reported by dleffler · October 18th, 2012 @ 04:05 PM

State: resolved
Milestone: 2.1.1
Assigned to: dleffler dleffler

Activity

  1. expNinja
    expNinja
    • 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 Feature Request: makeSefUrl/uniqueness_of needs rewritten to allow some dupli... state:resolved] https://github.com/exponentcms/exponent-cms/commit/7c9530ffec4d5563...

    December 12th, 2012 @ 03:34 AM

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.