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.

Display entries if checkbox selected

August 21, 2014 6:23am

Subscribe [2]
  • #1 / Aug 21, 2014 6:23am

    deswork

    122 posts

    Hi,

    I’ve setup channel fields with a checkbox that when checked shows a “new” flash when displayed front end. Is there a way with channel entries to only show entries that have a checkbox checked?

    I want to show entries that have the “new” checkbox checked.

    I know this can be done with statuses, but I’ve already entered 100s of products.

    Cheers

    Wayne.

  • #2 / Aug 22, 2014 5:10am

    Rob Allen

    3118 posts

    Sure, use the search:field_name parameter

    {exp:channel:entries channel="mychannel" search:your_checkbox_field="new"}
    {title}
    {/exp:channel:entries}

    Where your_checkbox_field is the name of the checkbox field and new is the checkbox value.

  • #3 / Aug 22, 2014 5:59am

    deswork

    122 posts

    Great, thanks Rob.

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

ExpressionEngine News!

#eecms, #events, #releases