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.

If no entries and blank page?

July 04, 2007 5:31am

Subscribe [1]
  • #1 / Jul 04, 2007 5:31am

    Riverboy

    2993 posts

    How to use {if} to echo static “no entries”-page if weblog has no entries?

    Thanks!
    - Tuittu

  • #2 / Jul 04, 2007 6:03am

    silenz

    1651 posts

    Take a look here.

  • #3 / Jul 04, 2007 6:23am

    Riverboy

    2993 posts

    Thanks!

    Further question: No results on search, i tried to put

    {if no_results}
    {redirect="my weblog/no results-page"}
    {/if}

    inside the simple search form but it didnt work and it shouws the basic “no results”-page. To where i must put this {if} in search?

    Yours:
    - Tuittu

    PS. i have proper filenames in that redirect if you are looking the code above and wondering those…

    EDIT: never mind i found the answer!

    no_result_page="search/noresults"
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases