Hi there, anyone know how I would hide the most recent entry in a view of nodes? I have a list of nodes entries that a view pulls up and I would like to hide the most recent entry from showing up.

Is this achievable in the Views control? Or would this entail some custom solution?

This screenshot is what i'm trying to achieve:
http://www.thestirproject.com/stir_category.html

As you can see, I want the most recent node to show up in the main feature area and the rest of the nodes to show up in the block view.

Any advice would be greatly appreciated! Please help! thanks!

Comments

terbs’s picture

I had some success by modifying my views template file to include an extra CSS rule, then just hiding it with CSS.

Modify views-view.tpl.php
Put this before the parent container div
$page = $view->pager['current_page'];

That gets what page the view is on (0, 1, 2, 3, etc.)

Then, echo that page out into the div's container class
class="view view-page-?print $page?

Then use CSS to .view-page-0 .views-row-first {display:none;}