Skip Navigation

[Resolved] Logic and conditions

This thread is resolved. Here is a description of the problem and solution.

Problem:

I just want to know where to start so I can understand the concept and make my own rules or logical conditions to small detail that I may need in my website.

Solution:

There is a built-in feature within Views plugin: Conditional HTML Output in Views, I suggest you start with below document:

Relevant Documentation:

https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

This support ticket is created 5 years, 10 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/Hong_Kong (GMT+08:00)

This topic contains 4 replies, has 2 voices.

Last updated by acts-1224C 5 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1186523

Tell us what you are trying to do?

I am a non-techie,
If I want to make some conditions, what kind of language I need to use in order to have it in the editor to work with the result rendered in the toolset view? is it php? HTML ? I just want to know where to start so I can understand the concept and make my own rules or logical conditions to small detail that I may need in my website. I have seen in the toolset custom post types I can input additional condition (advanced). lets say I have a new board member being elected and I needed to display the term ending date without me having to physically input the date. I know toolset has some example. but I don't know where to start.

Thanks

#1186534

Hello,

There is a built-in feature within Views plugin: Conditional HTML Output in Views, I suggest you start with below document:
https://toolset.com/documentation/user-guides/conditional-html-output-in-views/

For example, you can setup two custom fields:
- custom radio field: board member elected (yes or no)
- custom date field (term ending date)
Use wpv-conditional shortcode to check board member elected = yes, then display the custom date field field value

#1188410

Thank you Luo. Good information. I have made note of it and it will be helpful. Now I need help in another situation.

when creating a post type, will that post type have just one archive? or view? I ask this because I need implement my membership site and I don't want to create a thousand of post types. this is my scenario and dilema:

I have 27 districts, which each district has about 4 to 5 churches. I have district leaders leading each district individually and they dont share information among them. and churches with one or two ministers in each church.

The district leader will have oversite (and access to view only the churches in his district and only the churches assigned to that district, and not access the other districts info. how do I accomplish it without having to make 27 district post type? Can I assign a particular view to a user? lets say district #1 is assigned to John, and district #22 to Rachel. Can the same be done with templates and archives?

The same with churches. Each church will be accessed by their minister only. how do I do it without the need to create many different church post types? Could the district leaders control just the custom fields assigned to them under the same post type? if so then can I assign several custom fields to a single district leader, and a minister viewing only one custom field which in this case will be their church only, without taking a peak in the other custom post field (church).

Thanks

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/now-i-need-help-in-another-situation/

#1188709

I assume the original question of this thread is resolved, for the other new questions, please check the new thread here:
https://toolset.com/forums/topic/now-i-need-help-in-another-situation/

#1192700

My issue is resolved now. Thank you!