Custom page auto list

Is it possible to use 2 custom page auto list widgets (made with html using the dts api) on the same page?

I have 1 that works fine, but I put a second copy of it on the same page and only 1 works, the other fails.


Good morning, and thank you for your business as a Percussion CMS client.

You brought up a good question, that I quickly went and internally added 2 custom page auto-list widgets to a page, and it didn’t present any issues. I would suggest trying them each individually and seeing if there is any errors appear in the console.log and/or inspect the element to see if any errors are present.

Traditionally when I am trying to debug javascript, I add in some error catching statements and/or alert messaging, just to see if the functions are being fully executed.

If you still don’t see any root cause to the issue, send over url to the page you have the code implemented on, so we can take a look and see if anything jumps out. Having the url would be more helpful then just the code, since it will allow us to also see if there is any conflicting javascript running in the background.

Let me know if we can help with anything else, and have a great day :slight_smile:

Hi Chris,

Individually they work fine. As a test, the second copy of custom auto-list widget I added is exactly the same - no changes at all, that’s what confuses me, it can’t be a typo in the code, because its exactly the same.

When there are 2 copies on the page, an error comes up in the console that says “Uncaught TypeError: Cannot read property ‘folder’ of undefined”. When there is 1 copy on the page - no errors.

Unfortunately I can’t send you a link to the page as it is in-network only at the moment.

I could build a test page if needed, let me know, thanks.

P.S. It’s also random which one fails, on refresh, sometimes it’s number 1, sometimes it’s number 2.


Hmm… Lets take this one offline, and see what we can do. I will email you shortly.