What an amazing plugin! Thank you for something I’ve been needing!!!! For some reason, I seem to be missing how variables work with this plugin. Say I have {photos_12} in a weblog entry. The # 12 is dynamic, and will changed based on what photo needs to be added. I put in bold the problem areas for me. (What to put here?) Currently my code looks like:
{embed="global_embeds/header"}
{exp:nsm_replace:haystack}
{exp:channel:entries weblog="pages"}
{page_body}
{/exp:channel:entries}
{exp:nsm_replace:content needle="photo_[b]What to put here?[/b]"}
[b]What to put here[/b]
{/exp:nsm_replace:content}
{/exp:nsm_replace:haystack}
{embed="global_embeds/footer"}
Hope that makes sense…
I think you will find the answer in this thread, if I’ve understood your question correctly.
I think you will find the answer in this thread, if I’ve understood your question correctly.
Thanks a bunch for the link! It gave me some more ideas. However, I think I know how to explain what I am needing to do a little bit better. If I am understanding correctly, this tutorial relies on the assumption that there are a fixed number of images. I will be using this on various pages, and one page might need 10 images while another might only need 2.
Ideally I would like to call up my images doing something like {image_1_left} or {image_1_left_large}. I would use img resizer to take care of the necessary processing, etc. So my issue is how would I do this without a set number of images? Is it possible with this plugin?
Ooh, maybe I have a solution. I could use Playa to select the images I want to use with a certain channel entry, and then count the # of rows in the Playa field, use a loop, etc. The thing it would NOT take care of would be if I wanted to specify float left or right on the images, etc.
I use it when there are a variable number of images and the ability to choose alignment and size. See “Adding images to entries (an easy way)”
Hello,
I am actually looking for something that replaces dynamic text content with an image.
For example, I have a list of features for products and where the feature says ‘yes’, I want to replace this with an image of a ‘tick’ and when ‘no’ I want to replace that with an image of a ‘cross’.
Because my custom field for the yes/no is driven by a select list with one custom_field_name, I am not sure whether this Plugin works?? Hopefully my query makes sense here. From my understanding this plugin works off the custom_field name or tag_name and not off the actual dynamic output of the tag???
I am looking for something that basically finds a word ‘yes’ and ‘no’ and outputs an image instead. Does this plugin do that ?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.