Ok, first of all I dont know the proper terminology for what i'm trying to accomplish here. But it seems straight forward, just not easy.
I'm working on a joomla mod_article_news override, using the original for loop. The problem is, i need to split the output in 2 different places, like:
<service_container>
<services_carousel>
<!-- PHP for loop starts here -->
<service_block>
Image and title
<service_block>
<!-- for loop ends here -->
</services_carousel>
<service_details>
<details_list>
<!-- I need the same For loop to output here at the same time -->
<li>Intro text and Readmore button</li>
</details_list>
</service_details>
</service_container>
If you take a look, you can see I have the intro image and title in service_block, while the intro text and readmore button are in service_details.
The functionality here is basically intro image and title blocks, when user hovers over each block, the full-width container below will display the relevant intro text.
The original for loop looks like this:
<?php for ($i = 0, $n = count($list); $i < $n; $i ++) : ?>
<?php $item = $list[$i]; ?>
If somebody can tell me the correct terminology for this, that would be great too! =)
Thanks in advance for any help and suggestions.