Skip Navigation

[Resolved] If dynamic Source returns no content there should be no result shown in frontend

This support ticket is created 3 years, 3 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 4 replies, has 2 voices.

Last updated by nilsM 3 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#2351731

Hey there,

I created a page with a table wich has two columns, in every row is dynamic content displayed, so the results which are shown in the columns in the same row depend to each other.

Now the problem is if the dynamic source returns no content the row of the column is still shown.

Is there any possibility to set a filter, which said that there will be no result shown if the dynamic source returns no content?

You see the issue here, for example in row 1, 2 and 4:
hidden link

I am looking forward to your answer.

Thanks
Nils

#2351775

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nils,

Thank you for getting in touch.

The best advice that I can give here is to employ the use of the conditional block to work around this issue.

However in a block view I suspect that the row will be wrapped around the conditional which won't cause the row to not appear.

Are you able to rebuild this view in the classic editor for views ? This way we have better control over the wrappers for the table and you can use the conditional around the table rows so they only appear when the value is present.

Please let me know.
Thanks,
Shane

#2351799

Hi Shane,

thanks a lot for the fast reply!

When you said I should rebuild this view in the classic editor for views, you mean I should rebuild the view without tables?

Best
Nils

#2351973

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Nils,

No I mean you should rebuild it by going to Toolset->Views.
If the classic view hasn't been enabled you can enable it by going to Toolset -> Settings and scrolling to Editing Experience. From there I recommend that you select " Show both the legacy and Blocks interface and let me choose which to use for each item I build".

This will allow you to have access to the classic editor as well as the block editor. From there refresh the page and go to Toolset -> Views.

Thanks,
Shane

#2352485

My issue is resolved now. Thank you!