Help Center

Powered by Minitek FAQ Book
Loading...

ACF image integration in thumbnails Bug

D
DPosted 2 years agoEdited 2 years ago

Hi

 I thought I had already asked for it but I can't find it.

How to integrate ACF image custom fields into the component?
Regards

Loading...
0
#4215

32 answers

M
MinitekPosted 2 years agoModerator

Hi there,

I have not used ACF, but for regular Joomla custom fields you can read this article.

D
DPosted 2 years ago

HI

I now want to use the ACF image custom field as a thumbnail.

I've looked at the documentation https://www.minitek.gr/support/documentation/joomla/minitek-wall/widgets/custom-fields , but it's too brief for me.
Can you tell me which minitek wall file to override and ?
the command lines to insert in this file ?

Regards

D
DPosted 2 years ago

Hello

Quick reminder because I will be less available next week.

Thank you for your understanding

Regards

M
MinitekPosted 2 years agoModerator

The override file depends on the layout that you are using.

If you are using a Masonry layout, you must make your changes in the file override_masonry.php.

For the columns layout, that would be the override_columns.php.

For the template overrides, you can find more info in this article.

Let me know if you need more help.

D
DPosted 2 years ago

Hello

OK thanks
I created the substitutions and renamed the file override_masonry.php.
I can't find the location that will allow me to view the image of the custom field: 'imageart'

If I understood correctly, once found, you will need to add the following code in the correct location:


$item->jcfields = Joomla\Component\Fields\Administrator\Helper\FieldsHelper::getFields('com_content.article', $item, true);
$fields = [];

foreach ($item->jcfields as $jcfield) {
  $fields[$jcfield->name] = $jcfield;
}

echo "<p>$fields['imageart']->value</p>";

M
MinitekPosted 2 years agoModerator

Hello,

In the first attachment, I see that you have entered:

echo "

TEST

";

Can you see this h1 in the front-end?

D
DPosted 2 years ago

Hello

well no, I gave you the link to the home page where you find the module in the settings.
I can give you access to the site to expedite the possibility of resolution.
Thanks

Regards

M
MinitekPosted 2 years agoModerator

In the 2nd screeshot that is showing the override files, I see that you files are still named as default_****.

This is not correct, all files must start with override_****.

D
DPosted 2 years ago

HI
I deleted all the default_*.* files because I will only use override_masonry.php
I don't see anything appear!
Is this the right place? and the correct php code to insert?

M
MinitekPosted 2 years agoModerator

You need all files for the override to work.

You can then put your code in different places and see where it works best for you. Under the title is usually a good place for fields.

D
DPosted 2 years agoEdited 2 years ago

Hello

Well, time flies, I lose track and yet it is a fundamental functionality for me and which may interest people.
I renamed and kept all the files under /html/com_minitekwall/masonry/

override.php
override_masonry.php
override_columns.php
override_list.php
override_filters.php
override_sorts.php
override_pagination.php

I am attaching the override_masonry.php file where I tried different locations
(search for “TESTHD”) to display a test title then the ACF field
This must be a stupid mistake; A professional eye like yours should be able to see and understand it faster than me.
Regards

ps:  file sent by email because it does not appear on the forum. If you would like FTP access, I can provide it to you

M
MinitekPosted 2 years agoModerator

I need to login to the back-end and check whether you have setup the override correctly.

D
DPosted 2 years agoEdited 2 years ago

hello

Ok direct access given to the override file

For another joomla 3.x site, I have to switch to php 5.3 from time to time. If you encounter an error, please send me a message to let me know and I can switch for a while.
Regards

D
DPosted 2 years ago

Hi
I will need to do some testing, changing the php version for another site.
When can you view this file? If it were now, that would suit me

Regards

M
MinitekPosted 2 years agoModerator

I'm sorry but I'm very very busy right now to deal with customizations.

You understand that this is a customization.

D
DPosted 2 years ago

Hi

Yes I understand, it's not urgent, but important for me to use your extension on an association site.

It's just that I can't wait to work on another site. If you come across a problem with the site I sent you, let me know so I can change the php version

D
DPosted 2 years agoEdited 2 years ago

Hi

Since I have to use the previous site with a PHP 7.4 version, I tried to reinstall the component on the future associative production site.
I installed the latest version pro 5..0.2 on a joomla 5.0.2 site.
The component is installed but I still get the error message after installation:
An error has occurred
0 String could not be parsed as XML

then another error message on the borf minitek board
An error has occurred
0 Class "Joomla\Component\MinitekWall\Administrator\Extension\MinitekWallComponent" not found

You had intervened at the test site.
Do you have a version that corrects this problem because I have to install your extension on 2 associative sites?

Regards

 

D
DPosted 2 years ago

Hi
Can you look, as I had this same problem previously and cannot give you access to the test site?
Regards

M
MinitekPosted 2 years agoModerator

Hello, which version are you trying to update from?

D
DPosted 2 years ago

HI
the latest versions re-uploaded yesterday on your site minitek-wall-pro-5.0.2.zip minitek-source-content-5.0.