EllisLab text mark
Advanced Search
     
Exclude first returned entry
Posted: 28 July 2012 05:27 PM   [ Ignore ]
Joined: 2011-04-18
38 posts

I have a navigation where the first entry will always be the latest entry from a channel and then further down the navigation i want to list all other entries. Basically I want to exclude the first entry returned in a channel entry list. How can i do this..?

So far I have:

<ul id=“nav” role=“navigation”>
  {exp:channel:entries channel=“collections” limit=“1” disable=“categories|category-fields|member-data|pagination”}
  <li class=“top-level”>{title}</li>
  {/exp:channel:entries}
  <li class=“top-level”>WEDDING COLLECTION</li>
  <li class=“top-level”>ACCESSORIES</li>
 
  <li class=“top-level item-with-ul”>COLLECTION ARCHIVE
    <ul class=“sub-menu”>
  {exp:channel:entries channel=“collections” limit=“10” disable=“categories|category-fields|member-data|pagination”}
    <li>’{entry_date format=”%y”} S/S</li>
  {/exp:channel:entries} 
    </ul>
  </li>

  <li class=“top-level”>CONTACT US</li> 
  <li class=“top-level”>AV STORY</li> 
  <li class=“top-level”>SHOP</li> 
  </ul>       

 
Posted: 28 July 2012 05:32 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2005-06-20
3997 posts

Hi Niall,

Will the offset parameter do what you need?

Cheers

Greg

 Signature 

   Purple Dogfish | Member of EE Pro Network | Follow me on Twitter

 
Posted: 28 July 2012 05:33 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2011-04-18
38 posts

yep, that will do it! thanks

 
Posted: 28 July 2012 05:35 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2005-06-20
3997 posts

Welcome!

Cheers

Greg

 Signature 

   Purple Dogfish | Member of EE Pro Network | Follow me on Twitter

 
Posted: 30 July 2012 12:34 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Avatar
Joined: 2011-11-25
7174 posts

Hey niallthompson,

I am glad that Greg was able to help you out here!

If you need anything else, please just let me know by opening a new thread.

Cheers,

 Signature 

Recent version: EE 2.5.4 | Forum Module 3.1.10 | MSM 2.1.4 | 2.x Bug Tracker | Version Upgrade