First time using Toolset and slowing getting my head round using it.
We are using Elementor and have set up a test listing here: hidden link
Before we start styling this for wider use we have hit a bit of a wall.
See lower down, The Essentials?
We need to create some kind of list with icon before text. A 'check mark' ideally. (see image attached)
Now the list changes with the different properties so no list will be the same. I have no idea how to set this up in our Post Field Group or then feed this to the post dynamically.
If this isn't possible, can we have a manual section in the layout so we can manually add this to each post?
Hi, this sounds like two main questions:
1. How can I store The Essentials for each post, so I can display a list of included Essentials in the post template?
2. How can I format a list in the template so that it shows a checkmark before each item?
1. The most straightforward way to save this information in a custom field is to use a checkboxes group. Each possible Essential item will be included as an option in the checkboxes group. When you save a post, you can select each Essential item by checking the corresponding checkbox. If you'd like to use these checkboxes for a custom search filter, be sure to use the checkboxes group option "Don't save anything" instead of "Save 0 to the database".
2. You can use the Types field shortcode to output each checked checkbox. You can also add markup around each element to create an unordered list. Then adding custom styles to list elements will require custom CSS code. This post describes one method you can use to apply an icon to a list item: https://stackoverflow.com/questions/13354578/custom-li-list-style-with-font-awesome-icon
Unfortunately the Elementor dynamic field integration isn't really well suited for complex fields or field display. It works okay for simple text. If you want to use this code in an Elementor template, I recommend setting up the list markup in a Toolset Content Template first without Elementor, then once it's working like you want you can copy + paste that code into an Elementor text element.
Ok at least I know I'm not missing something in trying to make this work.
As a newbe to Toolset, is there any info on a step by step guide for....
I recommend setting up the list markup in a Toolset Content Template first without Elementor, then once it's working like you want you can copy + paste that code into an Elementor text element.
Basically you would go to Toolset > Content Templates and create a new Content Template. Then click the Fields and Views button above the editor area and click the button to insert your checkboxes group field. In the popup, you have the option to add custom code in the separator field. The system will then generate the appropriate shortcode for you. Here's some documentation for displaying custom fields: https://toolset.com/documentation/customizing-sites-using-php/functions/#checkboxes
If you want the fast version, here's the code I would use in the Elementor text widget:
The slug of a custom field is defined when you create the field in Types. In your screenshot above, "Screen 1", you can see the field slug is "features". So in this case, your code would look like this:
I have added the code suggested to an El text module. Ok, I don't see how this would work taking the dynamic info from FEATURES in each individual listing?
This is just one of the listings this dynamic feed would be needed. See The Essentials and your list: hidden link
If you could enlighten me I would be very grateful 🙂
So lets say the user selects the feature "close to the cost" is it that you want to display an icon for this ? or you just want what the user selects to be displayed on the frontend.
Unfortunately its not possible to do it like this and you will definitely need to employ some form of custom code in order to achieve exactly what you want.
Our plugin is only able to display the items that are selected, not the ones that aren't
So is there no way, like we do for a text area, add what we wish for each property's FEATURES but instead of this displaying as sentences, it appears as a styled list?
Basically a list of text items?
Something like the property list here on this: hidden link
I can do this in Elementor no issue manually, it's really frustrating that I can't somehow do this with Toolset someway!