By cmckay on
I've been looking at different options to do this and have not found any desirable ones. I am looking to insert blocks between content displayed in a view. For example, on our news page http://www.myappleguide.com/news, I would love to insert a block between the 1st and 2nd nodes and the 4th and 5th. Is that possible? Any help would be greatly appreciated.
Comments
You might be able to do this
You might be able to do this with Panels, if you set up one View to do the 1st and 2nd nodes and another to do the 3rd and 4th.
The other way would be to create a custom region and then spit this out in the appropriate place by custom themeing your View. You could probably even use node.tpl.php to check if you are a) on the 3rd node b) on your news page and then insert the region if so.
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
Lets see
Hey gpk, thanks for the suggestion, however I need some more detail. I don't think the panels solution will work but the second solution may if i can figure it out.
If you can help me with some more detail as to how would I go about splitting $content to display before and after the new region. (if that is what you are suggesting.)
To give you more background, we are looking to display an ad block between the news stories. The ad module gives you an option to embed the ad in the content, but I want the ad to be independent of the article.
www.myappleguide.com
OK well I need to do a bit
OK well I need to do a bit of Views themeing stuff myself so I'll let you know when I've got somewhere...! The instructions are here somewhere ... http://drupal.org/node/42597 ... if you can find your way around it ... :P
Can you say what the View type is, and also what the View name is? Is this the only View on the site?
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk