6

Is it possible to limit the number of categories that are returned by the {exp:channel:categories} tag? If not is there an alternative (or dare I say add-on :P)

Obviously I could just use an SQL query for this, but if possible I would prefer to use one of the more standard built-in tags for this if possible.

Use Case:

  • Categories have been manually ordered using the control panel.
  • Only want the first 10 to be displayed.
7

The {exp:channel:categories} sadly does not have a limit parameter. GW Code Categories does have a limit parameter though (along with many other useful features when working with categories).

2
  • Lea, if Derek's answer is correct, please select it as the correct answer by clicking the checkmark to the left.
    – CreateSean
    Dec 11 '12 at 15:24
  • @CreateSean I actually did the first time, but this site kept showing error messages. Still, its definitely ticked now :)
    – Lea Hayes
    Dec 11 '12 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.