Hello ppl, need help here.

My problem is this:

I have 2 different regions on my site, each of the regions has a different block generated via views. The problem is I get duplicate nodes, and I don't want that.

I want to have one block ( in one region ) displaying ONLY ONE node ( the newest ), and the other block displaying the other nodes ( different block template etc. )

Is that possible ?

Thanks in advance. Hope I will get an answer soon.

Comments

nevets’s picture

For the first block set it to only display 1 node, for the second you will need to theme the view so it excludes the first node.

Mlinka’s picture

That is exactly what I did in the start. The problem is HOW to "hide" the first node in the second block.

nevets’s picture

The theme function has access to an array of nodes to display, you can just unset($nodes[0]); to remove the first node from the list.

Mlinka’s picture

Nevets, thank you very much. unset solved my problems.