#617 Posted in ‘Econa’

Latest post by Jip JJ Jonker on Monday, 28 September 2020 15:40 EEST

Jip JJ Jonker
Hi!

We are using the econa custom field on articles a lot. We really like the way we can configure this and make it easy for users to upload and edit an image. We can save and store the image in several formats and use it in our templates.

But when we want to use Joomla article in AcyMailing it is not possible to have the econa image added in a automatically placed Joomla article. Because AcyMailing (6) can only place the 'intro image' URL that is used by Joomla.

So I was wondering if it would be possible to add a feature where the econa custom field would save the URL of one of the set image sizes tot the Joomla intro image URL when an image is saved? This way other components (like AcyMailing) could use this URL to display the image.

Maybe it would be possible to have image sizes 'mapped' to the intro image and also the 'main' image URL in joomla. This way not only other components can use this URL but the image can also be used by (not custom) templates.

I know we could use econa for the 'images tab' as well. But on this tab a user always has to upload two images (intro and main) and in most cases uploading one image would be sufficient. But when it would be possible to set this econa plugin (replace images tab Joomla) to have just one image upload that would also help. But I personally prefer the flexibility of the custom field plugin. So it would be great to somehow 'map' images to the Joomla intro an main image URL.

What do you think?

Kin regards,
Jip

Lefteris Kavadas
Hi Jip,

Can you please clarify, why you say "user has to upload two images"? There is no such requirement, you can upload just the intro image.
Anyways, regarding your request, what you describe seems overcomplicated to me and serves a very specific purpose. What you actually need is have AcyMailing render custom fields. This is something you have to ask AcyMailing support.
As you already said Econa also supports Joomla core images so I don't see anything more we can do here.
I am pretty sure that what you want to do can be achieved with a custom plugin as long as AcyMailing supports plugin events. But, to be honest, this is something I don't want to add to the extension because it's more a hack than a feature.

Regards

Jip JJ Jonker
Hi Lefteris,

Thank for getting back to me on this.

Upload two images: I mean, one for the intro and one for the article page. But maybe when we use replace the images tab from Joomla with the Econa version this might work differently. I will examine this a bit further ;-)

I have already been in contact with AcyMailing support. The have added the possibility to add custom fields data to the newsletter item, but in case of the econa field this produces a json string. We need PHP to get the right URL but using PHP in de 'template' of an item is not (yet) supported bij AcyMailing.

We are looking into creating our own plugin to AcyMailing to get this working the way we want. So we'll focus on that for now.

I just thought since the Joomla intro image URL can be easily used in AcyMailing (insert Joomla articles) it would be 'easy' to have Econa populated this URL. But I now understand that is not as easy to do, or not a desired way of doing things. That's OK, I'm just exploring option to get done what we need ;-)

Kind regards,
Jip





Lefteris Kavadas
I think it's more safe to use the article images. It's just a field with one URL and almost all third party extensions know how to handle it.
The custom field is different, it is not just one image URL, that's why it needs more data which is stored in JSON format. Any third parties can make this work by simply calling the required plugin events. Our plugin converts the JSON data to the required HTML output.

Regards

Jip JJ Jonker
OK, thanks!

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review