Custom Attributes missing in v6 (6.2.0 latest)

Hey guys,

Custom Attributes inside a custom looper are not being set.

I’ve had to implement a work around to extract the data from the looper.

The ID of the Video Cover is being set with looper content, but the custom attributes are blank. When I add in a text object with a div inside and use the looper to fill the custom attributes it works.

So, there seems to be an issue.

Thanks,

Matt

Hi @mjshelley,

Thanks for reaching out.
I have checked the specific Looper and found the custom attributes are working fine in the front end. I have also added an example custom attribute and found it is showing too.

If that is not the case and you are trying to point out something else, please provide any screenshot marked with the issue or any video that helps us to recognize the problem.

Thanks

Hi Tristup,

The problem appears to be with setting attributes combined with the custom looper.

I’ve recorded a video and attached it to the secure note above.

When I disable my patch you can see that the fields are empty, but that my patch div works. This was a stable website and the only change was the upgrade from v5 to v6 last week - there was no development on it.

The page has two custom loopers, one that controls the over all page at the top level, and then a second custom looper that loads the chapters - so they are embedded within each other.

And then deeper inside that section there’s another call to a second looper to pull back the chapters.

Screenshot 2023-04-12 at 08.22.29

Thanks,

Matt

Hi Matt,

I have checked the custom Looper Provider named chapters and added the Custom Attributes to the Chapter Grid > Cell 1 as shown in the givens screenshot. And it shows at the front end.

Now, it is not very clear if that is what you are trying to point out. Can you please check once and add the Custom Attributes again and let us know if that is not coming up at the front end? Please don’t remove those attributes and mention the section where you have added them.

Thanks

Hey there,

Yes, static custom attributes get added fine - but if the content for the custom attribute comes from the looper it doesn’t work.

There’s a work around running on the site to bypass the issue in the video (Div .tptc_patch) I posted above. In there I demonstrated the issue with custom attributes derived from a looper are not working but a text object at the same level using a DIV tag as it’s content is able to access the data.

e.g. data-video="{{dc:looper:field key=“ID”}}"
Screenshot 2023-04-17 at 09.47.31

The above value are not populated by the looper - but they should.

And I had to write a JavaScript workaround outlined above to get the data from the looper.

This was working fine in version 5 but now fails in version 6.

Thanks,

Matt

Sorry, if we’re going around in circles here - hopefully, the video I posted earlier will help you see the issue that’s hit two of our sites.

Hi Matt,

I have added the same and it worked for me.

image - 2023-04-17T151010.552

Please check if you are adding the custom attributes outside the looper, and that might be the reason why the Dynamic Content is not returning the value.

Thanks

Do you want me to disable the patch I wrote to fix this error, taking the client site offline so that you can see the error in action? I’d rather not do that as the site is live with paying customers :slight_smile:

Could you confirm you’ve had a chance to watch this video of the error in action.

Kind regards,

Matt

Hi Matt,

I am not sure why you need to disable the patch. The way I have added the custom attributes it shows in the front end, will disabling the patch affect that? If not, please don’t disable it. If yes, please copy your live site to a staging server and disable the patch so we can investigate it without breaking the live site.

NOTE: I have seen the video multiple times.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.