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.

Does {exp:magpie} support a {no_results) use case?

November 28, 2011 6:14am

Subscribe [3]
  • #1 / Nov 28, 2011 6:14am

    mathalete

    86 posts


    Hi,

    How would I incorporate a {no_results} message to be displayed if the feed I’m calling is empty?

    <div class="holder">
        {exp:magpie 
        url="http://rss/rss.xml" 
        limit="10" 
        refresh="1"  
        convert_entities="y" 
        encoding="utf-8" 
        convert_encoding="y"}
         <ul>
          {items}
           <li><a href="http://{link}" rel="nofollow" title="Read more about {title} in the Jobs portal">{title}</a></li>
          {/items}
         </ul>
        {/exp:magpie}
      </div>

    Best

    Peter

  • #2 / Nov 29, 2011 1:37am

    John Henry Donovan

    12339 posts

    Hi Peter,

    There is not a {no_results} message or function available for this plugin. You are welcome to make a feature request though

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

ExpressionEngine News!

#eecms, #events, #releases