Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !201

Current category list

  • Review changes

  • Download
  • Patches
  • Plain diff
Closed Sebastien Robin requested to merge seb/erp5:current_category_list into master Nov 28, 2016
  • Overview 14
  • Commits 3
  • Pipelines 0
  • Changes -

Since the beginning, there was in getCategoryChildItemList Renderer API the possibility to pass a parameter 'current_category'. The idea was to allow displaying a category which is not part of what the item list will return (typically, if you expire a category, and if you check permission, the category will not be in item list any more).

But the way it was implemented was too inconvenient and it looks never used. So improve several things:

  • possibility to pass multiple categories for multi value cases
  • reuse renderer to render current categories instead of just reinjecting the url (which is not user friendly)
  • implement handling of current_category_list in getCategoryChildItemList to allow caching the result of the Renderer. The only part which is not cached is the rendering of current categories.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: current_category_list
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7