ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Defining a standard category if none is given

September 30, 2010 4:50am

Subscribe [1]
  • #1 / Sep 30, 2010 4:50am

    Paul Verheul

    27 posts

    Hi there,

    What’s the easiest way to load entries from only one, default, category if no category is given. So for instance:

    Categories:
    - a
    - b
    - c

    If visitor enters page with no category specified in the url, he/she will see category a entries. If a category is specified, he/she will see entries from that category.

  • #2 / Sep 30, 2010 11:04pm

    Lisa Wess

    20502 posts

    Hi, Paul -

    You could do this by using the category= parameter.  The trouble there is that will turn dynamic off, so that your dynamic category display won’t work.

    The most straightforward way, then, is to use two templates.  One for your default “from all categories” list, and another with your dedicated category delivery.

    Does that help?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases