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.

how to display1 entry and then 8 more, starting with second entry

July 11, 2007 8:44pm

Subscribe [1]
  • #1 / Jul 11, 2007 8:44pm

    Luka

    2 posts

    I am not even sure that I can do this, but….

    I would like to display 9 entries on the index page.  First i’d like to display one entry.  Then under that add in a “sidebar” of sorts.  The under that the REST of the entries, 8 in total starting with #2.

    Is that possible?  If it is, can you tell me how to do it? I tired searching but wasn’t even sure how to look it up.

    Thanks

    Luka

  • #2 / Jul 11, 2007 8:46pm

    Lisa Wess

    20502 posts

    You could do this in two ways

    1) Using a count conditional to show only the full entry for the first entry then only titles for the rest.  Or some variation.
    2) Using two weblog entries tag, the second with the offset parameter.

  • #3 / Jul 11, 2007 9:05pm

    Luka

    2 posts

    Well I tried using the second one….and I got the 1st entry twice, and no others

    I used the following coding

    {exp:weblog:entries status="open" weblog="weblog1" orderby="date" sort="desc" limit="1"}
    
    {exp:weblog:entries status="open" weblog="weblog1" offset="1" limit="8" orderby="date" sort="desc"}

    As you can see, http://www.incogblogo.net/index.php/blogathon07/index , it’s not working. :(

    thanks for your help

  • #4 / Jul 11, 2007 9:08pm

    Lisa Wess

    20502 posts

    That’s odd, it worked for me

    <h2>initial entry</h2>
    <p>{exp:weblog:entries status="open" weblog="dem" orderby="date" sort="desc" limit="1"}<br />
    {title}</p>
    
    <p>{/exp:weblog:entries}</p><h2>offset</h2>
    <p>{exp:weblog:entries status="open" weblog="dem" offset="1" limit="8" orderby="date" sort="desc"} </p>
    
    <p>{title}</p>
    
    <p>{/exp:weblog:entries}

  • #5 / Jul 11, 2007 11:54pm

    Luka

    2 posts

    ahh. I got it workin 😉

    I was missing some code

    {/exp:weblog:entries}

    Thank you 😊

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

ExpressionEngine News!

#eecms, #events, #releases