Extension, Fieldtype

Developer
Supported

Multi Relationships

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Denza

     

You must be logged in to post.

Group wise entries issue

General

Tejas
Tejas

Hi,

We have used this plugin to connect 2 channels(Groups and Topics).

Many Topics entries assign to many Groups entries.

How can I show Topics entries Group wise.

Means, one template for Group entries and embedded Topics entries template in it.

But issue with related entries tag in Topics entries template.(getting more Group id’s) . So how can it differentiate.

Are you getting the issue/requirement?

thanks,
Tejas

denza
# 1
Developer
denza

Hi, sorry for delay.
If I understand you right:
you have channel Groups with Multi Relationships custom field in which is listing of entries from channel Topics (Let’s call this field topicsMR)

So, to output on Group entry related Topics you should use native {related_entries} tag

And to output on Topics entry parent related Groups you should use native {reverse_related_entries} tag

Tejas
# 2
Tejas

Hi,

Thanks for reply.

I have channel Topics with Multi Relationship custom field for Groups channel entries.

I want to list Topics related by Groups.

I I use below code to list all topics entries assigned to one Group.

{related_entries id=“topicsMR”}

{title}

{/related_entries}

But in field variable so many groups id or something come in join format by pipe like, 2|3|4.

If I want to show only those Topics entries which assigned to Group 1(from Groups channel). then how can I achieve this.

thanks,
Tejas

denza
# 3
Developer
denza

to list Topics Entry with related groups try:

{exp:channel:entries channel="TOPICS"}

       {related_entries id
="topicsMR"}
               
<p>GROUP related to TOPIC{title}</p>
       
{/related_entries}

{
/exp:channel:entries} 


to list Topics which are parent for group try:

{exp:channel:entries channel="GROUPS" entry_id="group_entry_id"}

       {reverse_related_entries channel
="TOPICS" status="open" sort="desc" orderby="title" offset="5" limit="10"}
              
<p>Parent TOPIC{title}</p>
       
{/reverse_related_entries} 

{
/exp:channel:entries} 

 

Tejas
# 4
Tejas

Thanks. It’s working.