Skip Navigation

[Resolved] Conditional display using relationships

This support ticket is created 4 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by antonioV 4 years, 7 months ago.

Assisted by: Waqar.

Author
Posts
#1585757

Hello,
I created a comment section using toolsets. I have a relationship between adverts(posts) and sayings (comments). Everything works fine. I have a form that allow users to comment on adverts and a form that allows users to reply to other users comments - this form (reply) is inside a view that displays comments (sayings).
Reply's is a repeatable group that belongs to sayings so users can create many replys and therefore start a conversation.
I got this to work well but i decided that only the owner of the original post (advert) can reply to comments (sayings) - meaning that when a user posts an advert other users can comment but those comments can have no reply's from other users, only from the original post owner.
I decided to include the replys form not in the loop of the view (content template) but in the wpv-no-items-found instead. This means that when there's no items to display, the form appears, but as soon as a reply is posted the forms disappears.
I want to make sure that the form is only displayed to the owner of the original post (relationship) and not to the owner of the comment itself.
Thanks for your help in advance.

Is there any documentation that you are following?
https://toolset.com/forums/topic/can-i-configure-access-so-subscribers-can-only-view-their-own-posts/

Kind Regards,
Antonio

#1586197

Hi Antonio,

Thank you for contacting us and I'd be happy to assist.

To suggest the best way forward, I'll need to see exactly how this view and the content template is set up.

Can you please share temporary admin login details along with the link to a page where this reply form can be seen?

Note: Your next reply will be private and please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1586965

My issue is resolved now. Thank you!