I think I need fresh eyes to help me on this.
I just upgraded on a local test server (MAMP) to EE2.5. The sites was previously running 1.7.1 - and successfully using LG Replace with Matrix and Image Sizer to place images inside of posts. That code looked like this:
<!-- Code to place images -->
{exp:lg_replace:haystack needles="{cf_images backspace="1"}image_{row_count}|{/cf_images}"}
<!-- Now loop through the matrix and create the individual links -->
{cf_images}
{exp:lg_replace:replacement needle="image_{row_count}"}
<div class="{align}"><a href="http://{image}">{exp:imgsizer:size src="{image}" auto="{size}" title="{caption}" alt="{caption}"}</a>
{caption}
</div>
{/exp:lg_replace:replacement}
{/cf_images}
<!-- End of loop -->
{body}
<!--closing tag for code to place images-->
{/exp:lg_replace:haystack}
<!--end image code-->I understand that LG Replace is not for EE2, so I got NSM Transplant. Also, support for Image Sizer seems nonexistent so I purchased CE Image. UPdated to the latest Matrix, tested file paths, etc. but can’t get images to appear. I;ve looked all over and found a little bit of sample code, but somehow (maybe I’m just substituting things in the wrong place) I still can’t get it to work.
Here is the code I am trying now:
Changes - matrix field changed from cf_images to matrix_image
<!-- Code to place images -->
{exp:nsm_transplant:body}
{matrix_image}
{exp:nsm_transplant:content id="image{row_count}"}
<div class="{align}">
{exp:ce_img:make src="{image}" max_height="{size}"}
{made}
{/exp:ce_img:make}
{if caption}{caption}{/if}
</div>
{/exp:nsm_transplant:content}
{/matrix_image}
<!-- End of loop -->
{body}
<!--closing tag for code to place images-->
{/exp:nsm_transplant:body}
<!--end image code-->I feel like I can’t even see it right now - can anyone enlighten me?
This newspaper publishes again on Wednesday and I need this function.
Thanks.