How do I query the joomla custom field group and its content (if it exists)? I want the content of field groups to be "implemented" in the joomla's template com_content/article/default.php file. My basic concept already exists, I want to see the contents of each group under different tabs. I could ask about the content of the fields, but unfortunately I can not access the field groups. Can somebody give me some help in this? Thanks in advance!
(In my example I'm not interested of the user groups.)
For example: I have created three field groups with different fields. (in this example only the field group names are listed, Field group 1, Field group 2, Field group 3). I would like to display the content of the field groups: (Field group 1 content, Field group 2 content, Field group 3 content)
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="tab" href="#home" role="tab" aria-controls="home" aria-selected="true">Field group 1</a>
</li>
<li class="nav-item">
<a class="nav-link" id="profile-tab" data-toggle="tab" href="#profile" role="tab" aria-controls="profile" aria-selected="false">Field group 2</a>
</li>
<li class="nav-item">
<a class="nav-link" id="contact-tab" data-toggle="tab" href="#contact" role="tab" aria-controls="contact" aria-selected="false">Field group 3</a>
</li>
</ul>
<div class="tab-content" id="myTabContent">
<div class="tab-pane fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">Field group 1 content</div>
<div class="tab-pane fade" id="profile" role="tabpanel" aria-labelledby="profile-tab">Field group 2 content</div>
<div class="tab-pane fade" id="contact" role="tabpanel" aria-labelledby="contact-tab">Field group 3 content</div>
</div>