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.

Category Heading doesnt work, ideas why?

June 28, 2014 10:58am

Subscribe [2]
  • #1 / Jun 28, 2014 10:58am

    Riverboy

    2993 posts

    Hi,

    When im using categories as default way (url is something like foo/bar/C4)
    Im getting Category Heading showing up, but when im using “Use Category URL Titles In Links”,
    Then Im getting nothing when trying to look certain category that has no results with this:

    {if no_results}  {exp:channel:category_heading}<h1>{category_name}</h1>No Events on this location{/exp:channel:category_heading} {/if}

    I took everything off from channel:entries opening tag also, and its now simply this:

    {exp:channel:entries channel="locations" limit="20"}

    Ideas why the “no results” doesnt pull anything out when using titles as URLs..?

  • #2 / Jun 30, 2014 3:32am

    Rob Allen

    3118 posts

    If you use category titles in URL’s you need to specify a channel name,eg

    {exp:channel:category_heading channel="locations"}
  • #3 / Jun 30, 2014 3:16pm

    Riverboy

    2993 posts

    Thanks. Why I didnt think of that, its too simple 😊

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

ExpressionEngine News!

#eecms, #events, #releases