Help Center

Powered by Minitek FAQ Book
Loading...

Custom fields in Wall Pro

TT
Thomas ThranePosted 1 year ago
Minitek Slider Pro - Professional Subscription Minitek Wall Pro - Professional Subscription

Hi
I've found this https://www.minitek.gr/support/forum/joomla/responsive-grid-for-articles/is-it-possible-to-display-jommla-articles-custom-fields, but where do I have to enter that?

I have made an override of the Masonry-files and assume it has to go in the _columns.php file somewhere?

Thanks!

Regards
Thomas

Loading...
0
#4130

6 answers

TT
Thomas ThranePosted 1 year ago

Thanks, found that, but I don't see wheere to put:

 

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

foreach ($item->jcfields as $jcfield) {
  $fields[$jcfield->name] = $jcfield;
}
M
MinitekPosted 1 year agoModerator

You can put the code inside the override file that you have created.

For the masonry layout, that would the be override_masonry.php file:

https://www.minitek.gr/support/documentation/joomla/minitek-wall/widgets/template-overrides

TT
Thomas ThranePosted 1 year ago

Thank you, but where in the override-file?

M
MinitekPosted 1 year agoModerator

You can enter the code right after the title for example:

TT
Thomas ThranePosted 1 year ago

Thanks!