Multi Relationships
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Denza
Group wise entries issue
General
Tejas
|
Posted: 28 September 2012 02:42 AM |
|
|
|
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
|
Posted: 30 September 2012 01:04 PM |
# 1
|
|
Developer
|
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
|
Posted: 01 October 2012 02:59 AM |
# 2
|
|
|
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
|
Posted: 01 October 2012 06:53 AM |
# 3
|
|
Developer
|
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
|
Posted: 09 October 2012 05:50 AM |
# 4
|
|
|
Thanks. It’s working.
|
|
|