Skip Navigation

[Resolved] Using blocks

This support ticket is created 2 years, 7 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 2 replies, has 2 voices.

Last updated by glenn 2 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#2413263

Hi,

I am trying to move from views to blocks. It seems that it is in a state that i can now do a lot of the things i used to be able to do with views. However there are some things i still can't figure out.

1. i want to use a conditional to check if a post has a featured image. I used to be able to do this with the check on 'thumbnail_id'. However if I add this code in a conditional block html it says the block is not good. And if i add the code in a 'field and text' block it doesn't do anything. How can i check for a featured image in a post type template?

2. I love toolset views because it gives me an option to add custom html. With the 'field and text' block i can do a lot. However i can only add views when i add them in a template. Is there a way to access all the views that i have created(and be able to create views and add them to templates afterwards?). And is there a way to create views the old way by writing html to have more control over the structure of the view? It would be really nice to have a separate full screen view editor page.

Kind regards,

Glenn

#2413289

Shane
Supporter

Languages: English (English )

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

Screenshot 2022-07-07 at 10.13.40 AM.png

Hi Glenn,

Thank you for getting in touch.

You can use the conditional block to check for the featured image URL. See Screenshot

This should provide the same effectiveness as checking the attachment ID.

2. I love toolset views because it gives me an option to add custom html. With the 'field and text' block i can do a lot. However i can only add views when i add them in a template. Is there a way to access all the views that i have created(and be able to create views and add them to templates afterwards?). And is there a way to create views the old way by writing html to have more control over the structure of the view? It would be really nice to have a separate full screen view editor page.

Views is still a part of blocks. 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

#2413301

Hi Shane,

thank you for your quick and clear reply.

Apparently i am blind. I checked the dropdown a few times and could find the 'featured image'. But now i do.
And I am really happy to be able to create views the old way with full control.

Kind regards,

Glenn