It must be late, but I can not display all the results! Only one result is taken into account.
Code:Only registered members can view the code.
It must be late, but I can not display all the results! Only one result is taken into account.
Code:Only registered members can view the code.
Last edited by Blackred; January 14, 2018 at 02:14 AM.
What is the function that displays all options checker ? Any idea ?
Hello Blackred,
- On what page you need to use this code and where in the script you insert it?
- What is the type of field 'immo_equipements_du_bien'?
Hello Rudi,
This is on the result of a listing-details.tpl page
I did not keep the basic function because I change a lot of things, but I must say that I block on this part.
This is an option of an announcement in checkbox
Exemple : https://www.zoomprovence.fr/immobili...ssanne-75.html
> Commodit
The checkbox values are combined in one string with a comma like '1,2,3,5'
you should divide them by comma assigning to a new value:
then use your new variable {$items} and iterate it to check its values like this:Code:Only registered members can view the code.
so in your case it should look like:Code:Only registered members can view the code.
Code:Only registered members can view the code.
Hello Rudi,
Thank You Very much !!!
Hello Rudi
I would like to do the same thing as above but with the data in the data, how do I please bring it out?Code:Only registered members can view the code.
Hello,
The same way,
but instead of using:
you should use the key of the item from Data Entiries > your entry > BuildCode:Only registered members can view the code.
for example:
Code:Only registered members can view the code.
Thank you Rudi,
by any chance, isn't there a way to make a foreach only on part? I have 200 lines per field. if ever
Instead of {foreach} you can use {if} condition along with in_array method like that:
Code:Only registered members can view the code.