Issue: I want to add two accordion components to one page. The IDs are the same so both of the components will not work.
My Proposed Solution: Using MVC, add code to the component that will check if there is already an existing component of the same (accordion) type on the page. If so, start the incrementing of IDs at a different number. I would think that should solve the issue.
Is there an MVC way to check if a component has already been added to a page in Experience Editor?
Any help would be greatly appreciated!