Skip Navigation

[Resolved] Creating an archive page.

This support ticket is created 3 years 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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 25 replies, has 3 voices.

Last updated by martham 3 years ago.

Assisted by: Minesh.

Author
Posts
#2253537

For the second issue, go here:

hidden link

This is the Photo Contest Winner archive. In there, look at the first field present after the feature image. This field is called Winner. We would like to make the display of this field conditional on if the value for the field is Yes. So for the one that is Yes, we want Winner: Yes to display. But for all the other posts, we do not want Winner: No to display. I tried making it a conditional field and thought I was doing it correctly, but the Winner: No output on the other posts persisted. So that's when I decided to ask you about this because I'm not sure if I was setting up the conditional field correctly.

#2253553

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've adjusted the code to download the file as given under:

<img src="<em><u>hidden link</u></em>" style="float: left; margin-right: 7px; margin-top: 7px;"><div class="tb-field" data-toolset-blocks-field="1" data-last-update="1.4">[types field='meeting-minutes-file' title='Download the [wpv-post-title] here'][/types]</div>

You can see it here: hidden link

#2253559

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Please check how I've configured the conditional block:
=> hidden link

As you set to store the value for Winner field when checkbox is checked is "Winner", we need to check against the value "Winner" as you can see how its configured with the conditional block:
=> hidden link

I can see its working as expected: hidden link

#2253573

Awesome! Thanks for the fix on issue #1. I'm glad that looks like it was an easy fix and seeing the way you coded it, I don't feel bad that I couldn't figure that out myself.

Do you have any documentation or tutorial information about placing elements like [wpv-post-title] like this within HTML? I don't have a specific need to do anything else like this right now, but I can see where knowledge of how to add fields and other data using this approach might be helpful for future needs. If there is a list of all post elements and field shortcodes that can be used like this, that would be very helpful to see.

#2253587

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Glad to know that solution I shared help you to resolve your issue. As per our support policy, we entertain only one question per ticket. This will help other users searching on the forum as well as help us to write correct problem resolution summery for the original issue reported.

Next time, kindly open a new ticket for every question you may have. Thank you for understanding.

We do not have any specific other doc but here is the Doc that lists all available shortcodes with its associated attribute:
- https://toolset.com/documentation/programmer-reference/views/views-shortcodes/

#2253589

Awesome again on fix #2! I'm looking at where you set the condition and that looks like you did it exactly the way I tried to do it. So now I'm just unclear on what you did differently to make it work. I'd like to get to where I can do this myself without having to bother you with another support thread.

I converted your work to HTML so I could make the Winner: text bold to keep that consistent with the other fields. That worked.

OK, I've now studied this a little more to try to recreate what you did myself as another field under the other ones. I think I'm now seeing what I did wrong. Tell me if this sounds correct to you. I set up a Conditional the same way you set it up. But it didn't show anything. I think the reason for that is I didn't realize the Conditional is just a container. I didn't add the single field display within the Conditional container before. I thought the Conditional was the display of the field I was choosing. I now added the single field within the Conditional container and it is now showing the Yes result but not the No results. I think that was it.

#2253591

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Here is the Doc for how you can use conditional Blocks:
=> https://toolset.com/course-lesson/using-toolset-conditional-block/

You should be careful about comparing the values. I already shared my feedback on what you were doing wrong with my previous reply:
=> https://toolset.com/forums/topic/creating-an-archive-page/page/2/#post-2253559

#2253593

That page with the shortcodes is exactly what I was hoping you'd have. Thanks. Sorry for asking these questions within the same thread. They were just sub-issues within the main issue so I kept it in here. I'll create new support tickets going forward.

#2253595

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Great and you're welcome to mark resolve this ticket 🙂

#2253597

I get it now with using Conditionals. Thanks for the help. Looking at the Doc on this, that's great that Conditionals can be used based on User Roles too. I wasn't even thinking about that and likely would have ended up starting a new support ticket for that when the need arose. But now that I've seen this, I'll know how that's done already. Great.

So far your plugin is meeting all our advanced functionality needs. I haven't seen anything yet to lead me to think it won't be able to do what we need, which is very good. I think everything is just a matter of learning how to make it all work. It is a pretty steep learning curve though. I'm used to being able to just play around with different settings until I can make it work and that usually succeeds. I'm getting stumped more than usual with using Toolset, but I still have confidence that it can do it all and the problem is solely my lack of experience using the plugin and all its features. Hopefully I'll do better with the set up of future functionality as I get more familiar with everything and will require gradually less support with everything. Thanks a bunch again and this ticket can now be considered done. I'll check the resolved button next.

#2253601

My issue is resolved now. Thank you!