Search
Other Articles Field questions
Forum

Articles - Linked plugin & Yootheme Pro

Wim de Ruijter's Avatar Wim de Ruijter
Hi Peter, The articles field in J4! works amazing!
I just run into an issue with the Articles - Linked plugin.

I've created an "Articles - Linked" field named "Genoemd in"
Added this field to article A and set it to "show" in this article.
I've linked to article A from article Y's Article Field.
I've linked to article A from article Z's Article Field.
So now there are 2 articles linking to my Article A. So far so good.

Now, when using Yootheme Pro, trying show the 2 articles in article A I get the Title as "1" and the URL as "mywebsite.com/1".
It does not matter if I have 1 or 2 articles linking to Article A. It always shows "1".

Since there are multiple articles linked in the object I tried the "multiple items source" in yootheme, but the field does not show up there.
I'm aware this is probably a Yootheme pro thing. But perhaps you could point me in the right direction. If not, thanks anyway.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
Are you able to reproduce this on a standard Joomla setup? So without Yootheme?
Please post a rating at the Joomla! Extensions Directory
Wim de Ruijter's Avatar Wim de Ruijter
I don't see a linked article showing up in the article while using the default joomla theme.

Perhaps I'm not doing this correctly.

- I've linked the other articles.
- I'm using the Articles field as a mono-select option, in a subform field.
- I've enabled the linked articles field in this article.
- The linked articles should show After title.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
It looks like you are using the Articles Field inside a subform field.
So there is no direct link to the article.

The Linked Articles Field does not support this (yet?).
Please post a rating at the Joomla! Extensions Directory
Wim de Ruijter's Avatar Wim de Ruijter
Yes, I am. Thanks for looking into this Peter 🙂
Peter van Westen's Avatar Peter van Westen ADMIN
Please try the latest development version from:
regularlabs.com/development-releases
Please post a rating at the Joomla! Extensions Directory
Wim de Ruijter's Avatar Wim de Ruijter
Hey Peter, thanks for the swift release! I've tried the new development version. I've opened all the related fields I had created previously, saved them again. Did the same for the articles.
Still, I can't see the linked articles appearing on the frontend.

Confidential information:
(hidden)
Peter van Westen's Avatar Peter van Westen ADMIN
For now I quick-fixed it on your setup.

I am refactoring some stuff in the current version (moving around files, better namespacing, etc). So I'll release a new dev version soon that will also include this fix.
Please post a rating at the Joomla! Extensions Directory
Peter van Westen's Avatar Peter van Westen ADMIN
Can you give the new dev version a spin?
It should all still work the same. But I moved/renamed some folders, files and classes...
Please post a rating at the Joomla! Extensions Directory
Wim de Ruijter's Avatar Wim de Ruijter
Peter, installed the new dev version. It keeps working in the /test and /test2 articles 🙂
Peter van Westen's Avatar Peter van Westen ADMIN
Thanks. Try to break it if you can ?
Let me know if you find any issues.
Please post a rating at the Joomla! Extensions Directory
Wim de Ruijter's Avatar Wim de Ruijter
Ha, I'll try, thanks Peter!

One more question, perhaps a bit out of scope for the "Linked Articles" plugin.

I can perfectly use the "Articles Field" data as "Dynamic content" with "Multiple items source" in Yootheme. Straight out of the box.

But this does not seem to be the case for the "Linked Articles" plugin. Is the "Linked Articles" object or data any different compared to "Articles Fields"?
Peter van Westen's Avatar Peter van Westen ADMIN
The "Linked Articles" value is simply a true or false value.
Please post a rating at the Joomla! Extensions Directory
Wim de Ruijter's Avatar Wim de Ruijter
Ah yes, now I understand the 1 I keep seeing in my frontend when trying to show the Linked Articles 🙂
I should somehow find the linked articles id's and try to use that.
Peter van Westen's Avatar Peter van Westen ADMIN
Try:
$article_id = [however you are getting the current article id];
$custom_fields = (array) $field->fieldparams->get('linked_custom_fields', '');

$ids = \RegularLabs\Plugin\Fields\Articles\Helper\Helper::getLinkedArticleIds($custom_fields, $article_id, $field);
Please post a rating at the Joomla! Extensions Directory
Jaap Geerts's Avatar Jaap Geerts
Hi,

Were can we use this code?
I also need to display the articles linked in yootheme builder, so we can navigate to an article, open it and see related articles in different fields connected.
So like movie, author, cast, locations etc and navigate forward and back.

Need it for a website with biblical creative ideas that connect to a biblebook, connect to a person etc.

Do you have any idea how to create that with articles linked?
Jaap Geerts's Avatar Jaap Geerts
Hi Peter,

I like to create this behavior:
https://www.awesomescreenshot.com/image/32557639?key=c1f5811f32404420f9b980e2fd10b76c

So that the 'ideeen bij deze werkvorm' show the connected articles bi-directional, because I already connected them at the 'Knutsel een kruis'. With the setup shown in the image I need to connect them manually two times.

Do you have any solution for this or can you support with some custom code or another plugin with the bidrectional articles loade like the 'ideeen bij deze werkvorm (2)' which is in fact the articles field from the 'werkvorm'.

Would be a great feature and help.

We use joomla 4, Yootheme Pro 3.0
Peter van Westen's Avatar Peter van Westen ADMIN
This is pretty Yootheme specific, and you probably need to ask them about this.

You could try using Articles Anywhere to output the custom field for a specific article.
regularlabs.com/articlesanywhere
Please post a rating at the Joomla! Extensions Directory
Jaap Geerts's Avatar Jaap Geerts
Hi Peter,

Thanks for your quick reply. We also build Wordpress websites with advanced custom field and they have a similar functionality as Articles Field of your plugin, but I can install a plugin that will have bi-directional relation and I select the same field the other way around in the other post type and they sync. So if i select theme with an idea, at the theme the idea is also selected in the same field.

Would something be possible with your plugins?
Beceause then it is visible in Yootheme builder.

I know we can ask them and I've done also, but we use your plugin to extend the Joomla functionality and use theirs to design.
Why is there only a '1' as output instead of articles with articles linked. Can we output the articles as well?
Peter van Westen's Avatar Peter van Westen ADMIN
Articles Field is designed for Joomla and normal articles.
Yootheme seems to do things in its own way.

The Articles Linked Field DOES show the articles linking to it. Just try with normal articles (not the builder) with preferably a normal template, like Joomla's own core template.

The thing with the value being a 1, is that that is the value stored in the database. It is wither off or on.
But the output of the field is rendered through the layouts and will show the actual articles linking back to it.
Please post a rating at the Joomla! Extensions Directory
You can only post on the extension support forum if you have an active subscription and you log in

Buy a Pro subscription