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.

Avoid first returned entry (EE-Syntax)

December 12, 2011 9:08am

Subscribe [2]
  • #1 / Dec 12, 2011 9:08am

    iPixel

    64 posts

    So i have this basic weblog im pulling info from.

    {exp:weblog:entries weblog="weblog-name" status="open|closed|featured" orderby="date" sort="DESC" dynamic="off"}
    
    
    <div>
    
    {if headline}<strong>{headline}</strong> - {/if}{entry_date format="%m/%d/%y at %g:%i %a"}
    
    {body}
    
    </div>
    
            
    {/exp:weblog:entries}

    Basically pulls all the entries, and returns them 1 by 1 based on date descending.

    My question is, how can I tell EE to avoid/skip the first entry.

  • #2 / Dec 12, 2011 9:24am

    Mark Bowen

    12637 posts

    Hi iPixel,

    If you add :

    offset="1"

    offset parameter documentation

    to your weblog entries tag then this should get you what you need here.

    Best wishes,

    Mark

     

  • #3 / Dec 12, 2011 9:34am

    iPixel

    64 posts

    Like a glove!!!  Thanks very much! worked perfectly!

  • #4 / Dec 12, 2011 10:35am

    Mark Bowen

    12637 posts

    Excellent. Glad that helped a bit.

    Best wishes,

    Mark

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

ExpressionEngine News!

#eecms, #events, #releases