Jump to content

Module ImageReference - Pick images from various sources


gebeer

Recommended Posts

1 hour ago, dragan said:

@gebeer Are there plans to allow for multiple images to be used with this module / field-type? Or is there something I've been missing? I don't see anything in the module or field configs. (not that I would need it right now for a real-live project, I'm just curious)

No plans to implement this for now. If there are multiple requests I will consider it.

Link to comment
Share on other sites

15 hours ago, gebeer said:

@Sevarf2 where do your images live, in site/assets/imgs? Then you need to define just 'imgs/'

I just pushed a fix for the error you mentioned to github. You only need to download and replace https://github.com/gebeer/FieldtypeImageReference/blob/master/InputfieldImageReference.module

Let me know how it goes.

I'm sorry but there is a new error showing up in logs:  Fatal Error: Uncaught Error: Call to undefined function bd() in /site/modules/FieldtypeImageReference/InputfieldImageReference.module:226 Stack trace:
1. /site/modules/FieldtypeImageReference/InputfieldImageReference.module(192): InputfieldImageReference->renderThumbnails()

Link to comment
Share on other sites

  • 3 months later...

[Edit: I probably should have tagged @gebeer.]

Hi, I came across a use-case today that I wondered if it would be possible to add?

It would be super useful to have the option to include child pages in the "Pick from the page being edited" and also "Pick from any page" source options.  Furthermore, it would really useful if, when "include child pages" is selected (for all source options), the parent page being edited itself did not need to contain an image field.

My use case is the following set-up:

  • Gallery
    • Collection 1 <-- contains 'image reference' field, but no 'images' field of its own.
      • Album  1 <-- contains the 'images' field for a group of related image (e.g. different view of the same object).
      • Album 2
      • Album
    • Collection 2
      • Album 1
      • Etc...

The parent "collection" template has an image reference to choose an image from one of the child album templates to serve as its "cover image".

It would be even cooler if, as well as specifying the images field to select from, you could also specify images having a particular tag (if tags are used). But that might be asking for the moon 😄 !

Link to comment
Share on other sites

  • 7 months later...
22 minutes ago, Ivan Gretsky said:

Good day, @gebeer!

Didn't find this one in the modules directory. Is there a reason it is not listed there?

Thank you for asking. Not really. Apart from having limited resources for supporting the module. Most of the bugs mentioned in this thread should be fixed. Have it running in production on 2 sites with no problems so far. But there are so many different setups that people run their sites on so I was still not confident enough to release it as an official module.

  • Like 2
Link to comment
Share on other sites

May I ask another question. This time more about the module itself. I found out about the module in the Settings Factory thread in this @adrian's post. He said he uses this module (probably the inputfield part of it) to manage images in the context, where uploads are not possible. I am now starting to use Combo pro module, and it does not support images yet either. I was thinking I could use it the same way Adrian says he uses this module for Settings Factory. Did add the Image Reference inputfield to Combo`s settings and created a subfield. But it does not even show up on the page with template where the compo field is located. Do you think there is a way to make it work in this case? Maybe you (or someone else) already did this and solved the problem?

Link to comment
Share on other sites

1 hour ago, Ivan Gretsky said:

May I ask another question. This time more about the module itself. I found out about the module in the Settings Factory thread in this @adrian's post. He said he uses this module (probably the inputfield part of it) to manage images in the context, where uploads are not possible. I am now starting to use Combo pro module, and it does not support images yet either. I was thinking I could use it the same way Adrian says he uses this module for Settings Factory. Did add the Image Reference inputfield to Combo`s settings and created a subfield. But it does not even show up on the page with template where the compo field is located. Do you think there is a way to make it work in this case? Maybe you (or someone else) already did this and solved the problem?

Never used it together with the Combo Pro module. Actually, I didn't even know that a Combo Pro Module exists 🙂 Is it part of the ProFields package? Then I could have a look at it. And that is exactly what I meant when I said that it is hard to cater for all possible setups. At least I managed to make my module work well with the Repeater Matrix Pro Field 🙂

Edit:
Just saw your thread

Since my module behind the scene is working with PageImage objects and is storing data in multiple columns, I don't think it is possible to make it work with the Combo Field ATM. Would have to look deeper into how Combo Field is storing data, but, unfortunately, do not have the resources. Not until mid to end of October.

  • Like 1
Link to comment
Share on other sites

  • 4 months later...
  • 2 months later...

Hi,
I created a new installation and tried to use the module, only it doesn't work for me if I put the field ImageReference inside the Repeater.
Do I have to do anything to activate it?

ty

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...