Opened 4 years ago

Last modified 3 years ago

#4687 closed change

Provide global index function in adblockplus/cms — at Initial Version

Reported by: juliandoucette Assignee:
Priority: P2 Milestone:
Module: Sitescripts Keywords:
Cc: saroyanm, kvas, jsonesen, philll Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: yes Confidential: no
Tester: Unknown Verified working: no
Review URL(s):



  • The new Help Center website categorizes pages by taxonomy like [product, platform, category, tag]
  • Several of the page templates required to build this website list pages based on these taxonomies
  • Therefore we must provide a method for adblockplus/cms to implement these lists using Jinja2

What to change

Provide the following global function:

def index(taxonomies):
    """Index pages by taxonomy.
        taxonomies: A list of taxonomies
            List of strings: ["product", "platform"]
            List of tuple of strings: [("product", "adblock-plus"), "platform"]
        A list of pages that match given taxonomies
            List of dicts: [{page: "acceptable-ads", product: "adblock-plus", platform: "firefox"}]
        TypeError: if taxonomies is not a list
        TypeError: if taxonomies list is formatted incorrectly

Change History (0)

Note: See TracTickets for help on using tickets.