Skip Navigation

[Resolved] I don't understand how to set up a different content model according to a custom

This support ticket is created 3 years, 2 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: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by frederiqueC 3 years, 2 months ago.

Assisted by: Jamal.

Author
Posts
#2154403

Tell us what you are trying to do?
I want to set up a different template based on a custom field but I don't know the steps to do so.

I created a type of publication: book.
Among the custom fields, there is the "library" field with the following value: youth, adolescent and adult.
I would like for each book responding a different value of this field to have a different pattern.
What are the steps to take to achieve this?
Do I have to create three different content templates?
Do I have to create three different views?
What conditions should I use?
I do not know how to do.

Is there any documentation that you are following?
Yes, in your site, but it's really not clear.

Is there a similar example that we can see?
I don't know!

What is the link to your site?
hidden link

#2154775

Hello and thank you for contacting Toolset support.

You can set conditions to display content templates on custom fields. Check this screenshot hidden link
However, I checked my test site, and I could not choose a select field from my custom fields. I was able to select single line, multiline, WYSIWYG, and radio fields, but I could not use a select field.

As a workaround, you can create 3 content templates, for each value of the custom field(youth, adolescent and adult). Then, create another content template(to be used as the parent) and inside of it use the conditional block, or conditional shortcodes(if you are using the legacy editor) and put each of the first 3 content templates inside of the condition. Does it make sense?

If you are unsure of how to do it, allow me temporary access to your website and I'll help you with it. Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **

#2155229

My issue is resolved now.

As with my previous request, I went through the Facebook group and in fact, I just had to add conditional blocks in the content model.

Thank you!