Dear Drupal Community,

I need some help as getting into using Drupal. I have created a new content type called portfolio. I made a content field called Portfolio Gallery. I choose unlimited image entries.

I created a view for the portfolio and the override fields template files. In the View I clicked on the fields for the image gallery and deselected Multiple field settings, Display all values in the same row. As I am not sure if it should be enabled or not as well as these settings Unordered list, Ordered list, Simple separator.

I would like to echo out all of my portfolio gallery images for each portfolio/project. I have some code in my views-view-fields--portfolio.tpl.php which I want to use to display the unlimited images for each project..

My field is
<?php print $fields['field_portfolio_gallery']->content?>

I would like to echo the unlimited gallery images into the code below where the jpeg is. I am not sure how to go about this in the views-view-fields--portfolio.tpl.php?

<ul class="portfolioSliderData">
<li data-src="/images/projects/project_01_b.jpg"></li>
</ul>

Also what is the code to say if the fields are empty to not display and hide the section of code from the UL class and data till

?

I look forward to hearing from you.

Thanks,

Leo