These forums are not for official support. If you are looking for official support please click here.
You are here: Home :: Forum Home :: Modules :: Channel Images :: Thread
Pardon me, could you please explain what you mean by changing the image prefix, as I am not quite certain which file would require editing (or where).
I am assuming that is my problem, however am not certain. Your docs state that in EE2, if you get a blank screen, you may have to change the prefix.
I’m not getting a blank screen, but rather, in addition to displaying the few posts which I’ve created using the gallery to test it, the script is also listing every other post which contains images.
(example: http://bowdowntous.com/index.php/games/gallery)
I bought Channel Images hoping I would be able to accomplish the same thing as I have been able to using just EE (example: http://bowdowntous.com/index.php/games/screenshots) but using Channel Images instead (to resize as well as make uploading easier).
That said, I can’t seem to figure out how to nestle Channel Images into an existing entry tag.
Thank you kindly.
Hello,
It appears you don’t have your templates tags done correctly. The prefix tag is in case you use the field ‘image’ somewhere else on your site. So if you are using the field image you must change the prefix for channel images.
{exp:channel:entries channel="gallery" limit="1"}
{exp:channel_images:images entry_id="{entry_id}" prefix="myprefix"}
<img src="myprefix:url:large}" alt="{myprefix:title}" />
{/exp:channel_images:images}
{/exp:channel:entries}
Hope this helps with prefix. If you want to copy and paste your code in here with [ code ] around it, I can take a look.
Brad
I don’t have an Image field. So that shouldn’t be the problem.
As for the template I’m using for the Channel Images, I cut and pasted from the docs here with a couple minor changes.
{exp:channel:entries channel="games|" limit="1"}
{exp:channel_images:images entry_id="{entry_id}" cover_only="yes" }
<center><a href="{image:url:large}" rel="lightbox[Gallery]" title="{image:title}"><img src="{image:url:medium}" alt="{image:title}" /></a><br />
{image:description}</center>
{/exp:channel_images:images}
<center>{exp:channel_images:images entry_id="{entry_id}" skip_cover="yes"}
<a href="{image:url:large}" rel="lightbox[Gallery]" title="{image:title}"><img src="{image:url:small}" style="padding:5px 5px 0 5px;" alt="{image:title}" /></a>
{/exp:channel_images:images}</center>
{/exp:channel:entries}
I see what you mean now with the prefix (I thought I needed to edit an actual file on the server).
That said, I just did as you said, changed all instances of the prefix, and I’m still getting the same thing.
Very odd.
I can take a look if you want. Most likely you just have it setup incorrectly…
Brad
My apologies for the hassle. I did try to follow the instructions to the letter.
I would appreciate the assistance if you could check to see if you can spot the problem.
Feel free to email CP/FTP info to .(JavaScript must be enabled to view this email address)
Brad
Any luck? I emailed the information yesterday and have not yet heard back.
Thank you.
Hello,
I replied. Please check your email to see if you received it.
Brad
I’ve sent several emails, requesting an update if you’ve had an opportunity to look into this matter. Unfortunately, I’ve not yet received any reply, and so am posting here again to ask.
I’ve given you full access, and despite the fact that I appreciate the help, I am not comfortable having that level of access available to someone for such prolonged periods. (I work in IT Security, can you tell.)
I did make certain to follow your instructions on this site to the letter, and that is why I am so confused as to what the issue may be. I’ve worked in web design/programming for some time as well, so am comfortable with diving into code.
That said, I’m not above making errors, obviously. In this case though, having cut and pasted your code exactly, there should not have been a problem.
If you could please give me an update, I would appreciate it.
Hello Roger,
I apologize. You provided the email at 5pm CST at the end of our business day today on a Friday. I just took a look everything looks exactly what you have written. I think I am missing what the problem is.
Can you please take a moment to explain exactly what is wrong? I apologize if I am missing what you are asking. So please explain exactly what is going wrong.
Brad
Actually, I emailed you with the Super Admin access at noon. I emailed again at 5pm to enquire as to the status, having not heard back in those five hours.
The problem is that Channel Images is pulling posts that were made that did not use Channel Images.
I created two test posts using Channel Images. I uploaded a number of images for each of these.
However, when I pull up the page that I put the template in, I’m seeing not just my two test posts, but also the post titles of every other post I’ve made uploading images via EE2 (not Channel Images). Your template is not pulling up the images from those posts but just their titles.
If you look at the link I posted above to the gallery page, you’ll notice two test posts using Channel Images, but then a bunch of other post titles.
That’s why I thought that perhaps the template needed the prefix, but having added the prefix, it made absolutely no difference.
Hello Roger,
I apologize as I did not notice the email at noon, but only the one at 5 pm.
I think you are slightly confused on what Channel Images does. Expression Engine channel entries loop control what entries you see. In your tag you have two different channels. This control what data you see not Channel Images.
Channel Images is a field type and an image management system per entry. Meaning that it doesn’t control what entry you see but what data you see in the entry.
So you need to rework your tag to just see the channels and entries you want to see, then calll the channel entries field when you want to see your gallery in that entry.
Channel Images has no control over the entry titles.
For example:
[exp:channel:entries channel="channelone|channeltwo"}
<h1>{title}</h1>
{exp:channel:images entry_id="{entry_id}"}
<img src="{image:url}" alt="{image:title}" />
{/exp:channel:images}
{/exp:channel:entries}
If Channel One and Channel Two above had twenty entries however only two entries had galleries you would still see 20 entry titles. This is would be a mis-configuration if you only wish to show the galleries as your EE tag (loop) is asking for all entries from both channels. Make sense?
Brad
Thank you very much Brad.
That is what I thought initially, however I ran into a couple hiccups early on and so thought that perhaps I was interpreting the script wrong.
I tinkered with it just now and was able to get it to do exactly what I needed.
Thank you very much for your help and patience with this request for help. I appreciate it.
Great work on the script. I’m quite happy I bought it.
Roger,
Great! Once you learn the quirks of EE plus Addons you can truly build anything!
Brad