8 years ago
1
Topic

Good Day! I am having a hard time searching on how can this be done, I am still new to using Joomla! There is a similar approach like this in WordPress using PODS plugin where I can just call pods() class to get custom data anywhere in the template with ease.

Here is what I have, I created a new custom content called 'Team Member' and I have a custom template which is for Team Member Article and Team member has fields "Name", "Role", "Member Image", "Description", "Any other custom fields".

And what I want to do is list all articles which have team member category inside my custom template. It would be something like this:

articles->category == "team-member"

foreach articles as article

    echo article->field("role")
   echo article->field("member-image")

    echo article->field("any-other-custom-fields")

end foreach

I hope someone could help me.
Thanks

Get a Book for SEBLOD
4229 Posts
Kadministrator
8 years ago
0
Level 1

Hi,

you don't need to add anything programatically, what you are describing can be done easily out of the box by creating new Search&list type and assigning this fields to list template postions of your choosing. See linked and other mauals for mroe information

Get a VIP membership