I need my content template to have a conditional for when it is first in a loop. I see the shortcode [wpv-item index=1], but this is only available within the view loop and not within the content template being accessed via [wpv-post-body]
What is the best way to achieve what I am hoping to do?
There isn't a way to readily communicate to the linked template what the current iteration of the loop is, that is really only accessible within the wpv-loop tags.
I can think of how you might do it with custom shortcodes, but first, can you tell me what you are trying to do?
Maybe it can be done somehow from within the Loop Editor.
If it's a question of CSS styling then you can output the View in such a way that the content for each iteration has a wrapper div, only the first of which has a custom class.
Use the wpv-item shortcode to add the custom class to the initial iteration, like so:
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-item index=1]
<div class="first">
[wpv-post-body view_template="Loop item in Highlight first listing"]
</div>
[wpv-item index=other]
<div>
[wpv-post-body view_template="Loop item in Highlight first listing"]
</div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]