Hello,
I have a page with "searchable=1" as a parameter so that I can make searches with keywords in the admin panel.
What I don't understand is what field is used to scan for the keywords?
I guess it's the "k_page_title" field?
But even then, it's not working 95% of the time. For some reasons, sometimes it does work and find what I typed, but most of the time it doesn't.
For example, here's the title field of a page I'm trying to find :
Julie Doe / julie.doe@example.com / 2023-10-04 09:38:30
I typed "julie" in the search field, and it's not showing. But another entry similar was found :
Julie Niral / julie.niral@example.ca / 2023-09-19 09:47:25
But not "Julie Doe".
I tried searching for any other keywords stored in that Julie Doe entry, and nothing is showing.
I really don't understand what is going on, and why one was found but not the other.
Does the search bar look for other fields than page_title?
If so, can I specify which fields I want to be used to search?
I tried comparing both entries (the ones that can be found, and the ones that cannot) and I can't find anything that could cause this in the text saved in each fields.
Here's the code of the entire top section of the "leads.php" page :
Thank you very much
I have a page with "searchable=1" as a parameter so that I can make searches with keywords in the admin panel.
What I don't understand is what field is used to scan for the keywords?
I guess it's the "k_page_title" field?
But even then, it's not working 95% of the time. For some reasons, sometimes it does work and find what I typed, but most of the time it doesn't.
For example, here's the title field of a page I'm trying to find :
Julie Doe / julie.doe@example.com / 2023-10-04 09:38:30
I typed "julie" in the search field, and it's not showing. But another entry similar was found :
Julie Niral / julie.niral@example.ca / 2023-09-19 09:47:25
But not "Julie Doe".
I tried searching for any other keywords stored in that Julie Doe entry, and nothing is showing.
I really don't understand what is going on, and why one was found but not the other.
Does the search bar look for other fields than page_title?
If so, can I specify which fields I want to be used to search?
I tried comparing both entries (the ones that can be found, and the ones that cannot) and I can't find anything that could cause this in the text saved in each fields.
Here's the code of the entire top section of the "leads.php" page :
- Code: Select all
<cms:template title='Leads' order="300" clonable='1' icon="graph" executable='1'>
<cms:config_list_view order='desc' orderby='publish_date' limit="50" searchable="1" exclude='default'>
<cms:html>
<cms:show_info heading='' >
Vous voyez seulement les leads qui vous sont attribués.
</cms:show_info>
</cms:html>
<cms:field 'k_selector_checkbox' />
<cms:field 'form_prenom' header="Nom" search_type='text' sortable='1'>
<a href="<cms:admin_link />"><cms:show form_prenom/> <cms:show form_nom/></a>
</cms:field>
<cms:field 'form_entreprise' header="Entreprise">
<cms:show form_entreprise/>
</cms:field>
<cms:field 'form_courriel' header="Courriel">
<a href="mailto:<cms:show form_courriel/>"><cms:show form_courriel/></a>
</cms:field>
<cms:field 'form_telephone' header="Téléphone">
<cms:show form_telephone/>
</cms:field>
<cms:field 'form_date' header="Date de l'événement">
<cms:if form_date><cms:show form_date/></cms:if><cms:if form_heure> à <cms:show form_heure/></cms:if>
</cms:field>
<cms:field 'form_conferencier' header="Conférencier">
<cms:show form_conferencier/>
</cms:field>
<cms:field 'author' header="Pris en charge">
<cms:if author_en_charge == 'Non déterminé'>
<span style="color: red;"><cms:show author_en_charge/></span>
</cms:if>
<cms:if author_en_charge != 'Non déterminé'>
<span style="color: green;font-weight: bold;"><svg class="i" style="fill:green;"><use xlink:href="http://db.orizon.ca/edit/theme/_system/assets/open-iconic.svg#check"></use></svg> <cms:show author_en_charge/></span>
</cms:if>
</cms:field>
<cms:field 'dernier_contact' header="Dernière activité">
<cms:show_repeatable 'notes_user'>
<cms:if k_count == k_total_records>
<cms:date form_lead_notes_date format='%d %B %Y, %R' locale='fr_FR.UTF-8'/>
</cms:if>
</cms:show_repeatable>
</cms:field>
<cms:field 'k_page_date' header="Reçu le" >
<cms:date k_page_date format='%d %h %Y, %R' locale='fr_FR.UTF-8' />
</cms:field>
<cms:if k_user_access_level ge '10'>
<cms:field 'k_actions' />
</cms:if>
</cms:config_list_view>
<cms:config_form_view >
<cms:editable type="group" name="gestion_group" label="Gestion du lead" order="0" collapsed='1'/>
<cms:editable type="group" name="contact_group" label="Info du contact" order="1" collapsed='1'/>
<cms:editable type="group" name="evenement_group" label="Info sur l'événement" order="10" collapsed='1'/>
<cms:editable type="group" name="notes_group" label="Activité et notes" order="20" collapsed='1'/>
<cms:editable type="group" name="notifications" label="Notifications" order="30" collapsed='1'/>
<cms:editable name='form_demande_type' label="Type de formulaire" type='dropdown' opt_values="Demande info | Demande direct conférencier | Ajouté manuellement" />
<cms:editable name='form_sent_from' label="Envoyé de la page..." type='text' />
<cms:editable name='form_browser_details' label="Détails sur le navigateur" type='text' />
<cms:editable name='form_lead_status' label="Status" type='dropdown' opt_values="Nouveau | Contacté et en attente | En discussion active | Proposition envoyée | VENDU | Perdu" group="gestion_group"/>
<cms:editable name='author_en_charge' label='Pris en charge par' opt_values='Non déterminé | Tous | Nancy Brault | David Larose | Diana Trejo' type='dropdown' search_type='text' group="gestion_group"/>
<cms:editable name='form_entreprise' label="Entreprise" type='text' group='contact_group' />
<cms:editable name='form_prenom' label="Prénom" type='text' group='contact_group' />
<cms:editable name='form_nom' label="Nom" type='text' group='contact_group' />
<cms:editable name='form_courriel' label="Courriel" type='text' group='contact_group' />
<cms:editable name='form_telephone' label="Telephone" type='text' group='contact_group' />
<cms:editable name='form_conferencier' label="Conférencier demandé" type='checkbox' opt_values="<cms:pages masterpage='conferenciers.php' orderby='page_title' order='asc'><cms:show prenom_conf/> <cms:show nom_conf/> ,</cms:pages> " separator=',' group='evenement_group' />
<cms:editable name='form_date' label="Date" type='text' group='evenement_group' />
<cms:editable name='form_heure' label="Heure" type='text' group='evenement_group' />
<cms:editable name='form_type' label="Type d'événement" type="dropdown" opt_values='Choisir... | Présentiel | Virtuel | Hybride | Ambassadeur et porte-parole | Spectacle corporatif ou humoriste' group='evenement_group' />
<cms:editable name='form_adresse' label="Adresse" type='text' group='evenement_group' />
<cms:editable name='form_participants' label="Nombre de participants" type='text' group='evenement_group' />
<cms:editable name='form_info' label="Info sur l'événement" type='textarea' group='evenement_group' />
<cms:repeatable name='notes_user' label="Détails des activités" group="notes_group" order="10">
<cms:editable name='form_lead_notes' label="Notes" type='textarea' class="test"/>
<cms:editable type='datetime' name='form_lead_notes_date' minute_steps="1" label="Date" format='dmy' allow_time='1' months='janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre' default_time="@current" />
<cms:editable name='author' label='Créé par' opt_values='list_authors.htm' opt_selected = 'current_author.htm' group="info_base" dynamic='opt_values | opt_selected' type='dropdown' />
</cms:repeatable>
<cms:editable name='logged_user' label="Utilisateur" type='text' order="999" />
<!-- -->
<cms:editable name='notif_row_envoi_propo' group="notifications" type='row' order='355'>
<cms:editable type='datetime' default_time='@current' name='date_envoi_notif_envoi_propo' minute_steps="1" label="ENVOI PROPOSITION" format='dmy' allow_time='1' months='janvier, février, mars, avril, mai, juin, juillet, août, septembre, octobre, novembre, décembre' class='col-xs-4' order="40"/>
<cms:repeatable name='notif_envoi_propo' label="Destinataires" order="50" class='col-xs-4'>
<cms:editable name="notif_envoi_propo" type="text" label="Courriel"/>
</cms:repeatable>
<cms:editable type="checkbox" name="activer_notif_envoi_propo" opt_values="Oui" label="Activer?" order="60" class='col-xs-4'/>
</cms:editable>
<cms:field 'sep_notif_envoi_propo' label="-" group="notifications" order="356">
<style type="text/css">#k_label_f_sep_notif_envoi_propo {display: none;}</style>
<hr style="border:1px solid ccc;">
</cms:field>
<!-- -->
</cms:config_form_view>
</cms:template>
Thank you very much