Skip Navigation

[Waiting for user confirmation] Conditional menu in legacy view editor not working in loop item section

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 5 replies, has 1 voice.

Last updated by Minesh 2 days, 14 hours ago.

Assisted by: Minesh.

Author
Posts
#2812709

I am trying to:
When editing some views with the legacy Editor, I found, that the the menu 'conditional is not working in the section 'Loop items', but does work in all the other sections of the editor. I don't know, since when this bug happens.

We do work with the latest versions of WordPress and Toolset plugins, We re-installed all of them in the hope, that this improve the situation, unfortunalty nothing helped.

Link to a page where the issue can be seen:
hidden link, if you need access to the admin, I you find the credentials below.

One example of a page, which is based on block-editor:
hidden link

Link to a page where the issue can be seen:

I expected to see:

Instead, I got:

#2812779

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please tell me what exactly is not working.

I try to login with the access details you shared but I could not able to login due to 2-factor authentication. Can you disable 2-factor authentication and also share few screenshot what exactly is not working and within what section of your page?

#2812791
Screenshot view editor small.png

hello Minesh,

thanks for your answer. I disabled 2 FA, sorry, I was not aware of that.

I send you a screenshot of the legacy view editor. This editor has 3 main sections, i.e. search & filter, loop editor and loop items. In the first two sections, when I click on 'bedingte Ausgabe', in english conditional, a new window opens, where the conditions can be defined. In the third section, loop items (Loop item in Selektion Newsbeiträge Kunde eigene Seite), if I click on the menu conditional, nothing happens, no window appears.

Kind regards

Franz

#2812904

Minesh
Supporter

Languages: English (English )

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

First of all, when I checked the "Loop-Editor" sectin, I found that you added the heading shortcode as given under:
=> hidden link

<thead>
			<tr>
<th>[wpv-heading "types-field-sr-nr"]SR Nr.<br/>No. RS[/wpv-heading]</th>
				<th style="text-align:left">[wpv-heading "post-title"]Titel<br/>Titre[/wpv-heading]</th>
				<th>[wpv-heading "types-field-datum-erlass"]Datum Erlass<br/>Entrée en vigueur[/wpv-heading]</th>
				<th>[wpv-heading "types-field-datum-letzte-anderung"]Letzte Änderung<br/>Dernière modification[/wpv-heading]</th>
                <th>[wpv-heading "post-taxonomy"]Kanton/Land<br/>Canton/pays[/wpv-heading]</th>
                <th style="text-align:left">[wpv-heading "types-field-zusammenfassung"]Übersicht<br/>Résumée[/wpv-heading]</th>
				<th>[wpv-heading "types-field-chronologie"]Chronologie<br/>Chronologie[/wpv-heading]</th>
				<th>[wpv-heading "types-field-bundesamt"]Bundesamt<br/>Département[/wpv-heading]</th>
                <th style="text-align:left">In Kraft<br/>En vigeur</th> 
 </tr>
</thead>

As you may notice that every [wpv-heading] shortcode missing the atttribute name. It should be:

<th>[wpv-heading name="types-field-sr-nr"]SR Nr.<br/>No. RS[/wpv-heading]</th>

So, I've corrected that as given under:

<thead>
			<tr>
				<th>[wpv-heading name="types-field-sr-nr"]SR Nr.<br/>No. RS[/wpv-heading]</th>
				<th style="text-align:left">[wpv-heading name="post-title"]Titel<br/>Titre[/wpv-heading]</th>
				<th>[wpv-heading name="types-field-datum-erlass"]Datum Erlass<br/>Entrée en vigueur[/wpv-heading]</th>
				<th>[wpv-heading name="types-field-datum-letzte-anderung"]Letzte Änderung<br/>Dernière modification[/wpv-heading]</th>
                <th>[wpv-heading name="post-taxonomy"]Kanton/Land<br/>Canton/pays[/wpv-heading]</th>
                <th style="text-align:left">[wpv-heading name="types-field-zusammenfassung"]Übersicht<br/>Résumée[/wpv-heading]</th>
				<th>[wpv-heading name="types-field-chronologie"]Chronologie<br/>Chronologie[/wpv-heading]</th>
				<th>[wpv-heading name="types-field-bundesamt"]Bundesamt<br/>Département[/wpv-heading]</th>
                <th style="text-align:left">In Kraft<br/>En vigeur</th> 
              </tr>
</thead>

So, above is a bonus fix. 🙂

Now, regarding your original issue, I checked with the brand new sandbox site and I do not able to reproduce the issue.

However, with your site I can see the issue and when I click on the button "bedingte Ausgabe" of view's template section "Templates für diese View" -> Loop item in Gesetzesliste 1, I can see the issue but when I checked the browser's console I discover the following JS error:

 
Uncaught TypeError: Cannot read properties of undefined (reading 'focus')
    at qtInstance.theButtons.<computed>.callback (toolset-quicktags.js?ver=4.4.9:49:44)
    at HTMLDivElement.t (quicktags.min.js?ver=a818115371f3fbca44c2fc92153c80ee:2:2179)

I do not see any other user reported such issue so this looks like specific to your installation.

*** Please make a FULL BACKUP of your database and website.***
In order to minimize the cause of the issue and to ensure there is no conflict with the theme or plugins you use, maybe you want to setup a staging site that should be 1:1 copy of your production site and then you should try to run a compatibility check agains your existing theme/plugins.

Could you please try to resolve your issue by deactivating all third-party plugins one by one as well as switch to the default theme to check for any possible conflicts with any of the plugins or themes you use.
- Do you see any difference?

#2813000

hello Minesh,
thanks for your answer. There are, by the way, some reasons, which I cannot explain here, why I put this code for the table heading. But many thanks for your help
So I will try to find interactions between conditional in Toolset legacy view and plugins. The same is true for the Field and Text Block (another ticket). You will hear from me .....

#2813083

Minesh
Supporter

Languages: English (English )

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

Ok fine - Please let me know your findings.