Skip Navigation

[Closed] Blocks Content template

This support ticket is created 4 years, 8 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 36 replies, has 3 voices.

Last updated by Shane 4 years, 7 months ago.

Assisted by: Shane.

Author
Posts
#1691743

Hi,

am having some buggy functionality with blocks and i need some help

I am upgrading my site and i am rebuilding it with blocks (in the previews form i had no working problems)

I have found some problems (regarding with the classic view that i had no problem on the site)

A) I cannot add a delete custom post button

i used the shortcode inside a text edtior:
[cred_delete_post_link type="button" onsuccess='1' action='delete' message='...' message_show='0' class='cred-refresh-after-delete']delete[/cred_delete_post_link]

i am trying to add the same code to blocks either as an html or a schorcode but i see the exact code instead the delete button

B) i was using a view to display all the children of the current parent in my parents content template. When i am constructing again the same view with the same query i can see the results inside the blocks editor but in the page i see no results

i could use some help here.
Thanks in advanced

#1691825

I found a soloution for the a)

But i just created a custom template for another custom type by just displaying the fields as dynamic content and while i see the elements when I am inside the editor when i open the page i see all the fields blank

#1692089

Shane
Supporter

Languages: English (English )

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

Hi Kostas,

Thank you for getting in touch.

Good to see that you were able to resolve your first issue. However for your second issue where your view is returning "No Results Found" would you mind me taking a more detailed look?

I've enabled the private fields for your next response so that you can provide me with the credentials as well as a link to the page where i can see the issue.

Thanks,
Shane

#1692929

Shane
Supporter

Languages: English (English )

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

Screenshot 2020-07-09 at 8.02.50 AM.png
Screenshot 2020-07-09 at 8.02.17 AM.png

Hi Kostas,

I'm not having any issues, it works for me. See Screenshot.

What I did was to remove the Post Author filter because I didn't have any posts created under my user. Once I did this and added the post title information to the view block it works fine. See Screenshot.

So there aren't any issues here from what I can see.

Thanks,
Shane

#1693075
problem.jpg

HI Shane,

Thank for the help,

but it does not....
as you can see in the screenshot i have 3 targets (1) , when i am adding in the view loop an dynamic image it appears only one (2) and the front end it appears none (3)

#1693105

Shane
Supporter

Languages: English (English )

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

Hi Kostas,

I'm able to see the issue now. This is quite odd as this is a very minimal install. Perhaps your server is caching the page.

Could you check to see if your server has a cache that can be cleared? Secondly would it be ok if I grabbed a copy of your site to test here to see if the issue still remains.

Thanks,
Shane

#1693107

- in the albums content template where i want to use a view with a relationship in order to present all the children also does not appear nothing.

-in the targter content template also none of the custom fileds is presented in the front end. in back end i can see them

#1693113

Shane
Supporter

Languages: English (English )

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

Hi Kostas,

The current user role doesn't allow me to install plugins.

Can you follow the instructions in the link below so that I can get a copy of the website to test here locally ?
https://toolset.com/faq/provide-supporters-copy-site/

Thanks,
Shane

#1693161

ready
hidden link

#1693413

Shane
Supporter

Languages: English (English )

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

Screenshot 2020-07-09 at 1.43.48 PM.png

Hi Kostas,

Thank you for the website copy. I was able to get this to work on my end by using the single field block and set it to get the images from the Image field. See Screenshot

Can you try this on your end and let me know the results.

Thanks,
Shane

#1693423

Shane
Supporter

Languages: English (English )

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

Screenshot 2020-07-09 at 1.43.48 PM.png

Hi Kostas,

Thank you for the website copy. I was able to get this to work on my end by using the single field block and set it to get the images from the Image field. See Screenshot

Can you try this on your end and let me know the results.

Thanks,
Shane

#1697049

Shane , i cannot see the screeenshot
i get the message

The requested content cannot be loaded.
Please try again later.

#1697187
bug.jpg

i saw your screen shot from the above replay.

i thing you may have a bug..
see what is appeared in the background of the content template if you open the debug (screenshot)

#1697287

i think it cannot read the [view id]
here is the line 332

if ( $view_post->ID === $attributes['viewId'] && array_key_exists( 'viewSlug', $attributes ) ) {
$view_identification_attribute = sprintf( 'name="%s"', esc_attr( $attributes['viewSlug'] ) );
} else {
$view_identification_attribute = sprintf( 'id="%s"', esc_attr( $attributes['viewId'] ) );
}

#1697625

I worked with your solution and it works,
but if i follow this, i have no visual control in the CSS, so there is no need to use blocks for visual styling. I could do the same with cred and views and manual CSS.

The topic ‘[Closed] Blocks Content template’ is closed to new replies.