Is there any way to convert an existing CCK imagefield to a Link Image Field within a content type? If so, can the URL be defaulted to the node URL?

Comments

pribeh’s picture

Wondering if there's a way to do this as well - in D6.

parasox’s picture

I just blindly installed this module in D6, and changed my "Basic" settings for an existing imagefield from Image to ImageLink, and it didn't seem to disturb anything. Mind you in my use case, my field only saves one image, not multiples, so I can't comment on those.

I then had to change my display settings to use the LinkImage for one of my ImageCache profiles, and everything seems to be working as designed.

One note, all existing images link to my page, so I'm going through and editing. You can set another default URL, however it doesn't support tokens, so you can only use a single URL for all images across the site as a default if I understand correctly from reading another issue in this queue.

Hope this helps someone. I flew blind solo with no backup; you might want to show more sanity. ;)

sickness29’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Development or support is not planned for D5. All D5-related issues are marked as outdated in a bunch.

Everyone can apply the patch above (not tested by the maintainers, tested by the community) to their D5 projects.
If the issue remains relevant for D10+ versions, merge requests with proposed solutions for a new module version (D10+) are welcome in a new follow-up issue.

Thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.