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.

Search multiple fields in weblog entries tag

May 14, 2010 11:17am

Subscribe [1]
  • #1 / May 14, 2010 11:17am

    lisab

    2 posts

    re: dynamic menu display not using categories

    I’ve set up a weblog with no categories used. It uses 3 fields: 2 dropdowns and one radio selector. Each entry has just 1 dropdown and the radio box either selected or not. I would like the menu code (snippet below) to display ALL entries that match the boolean param. Currently it only shows the current url title.

    Is there a way to search ‘multiple’ fields in a weblog entries tag. I know of search_in tag but that’s used in a forms tag.

    {exp:weblog:entries weblog="research" disable="member_data|trackbacks|categories" orderby="title" sort="asc" status="open"}
        {if research == "About Us" && menu_display=='y'}
        <ul>
        <li><a href="http://{site_index}/research/entry/{url_title}/">{title}</a></li>
            </ul>
    
        {if:elseif  research == "News and Reports"  && menu_display=='y'}
        <ul>
        <li><a href="http://{site_index}/research/entry/{url_title}/">{title}</a></li>
            </ul>
    
            ....
         {/if}
    {/exp:weblog:entries

    Thanks.

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

ExpressionEngine News!

#eecms, #events, #releases