Home>Support>Widget Id = Filename => id-overlap

Widget Id = Filename => id-overlap

Hi,

first of all, I really like working with the site-origin page-builder and having a good time creating custom widgets. But I have one problem.

Adding custom widgets works well, but if the file-names are equal every widget with the same file-name gets disables when I disable a widget via Plugins -> SiteOrigins Widgets.

Example:
My custom slider widgets collides with the one already being there with the widgets bundle plugin because the files the two widgets are located in are named “slider.php”.
If I now deactivate the siteorigin slider element, it deactivates my widget as well.
In the HTML, there is a data-id attribute containing the filename as the id. I was wondering why that is and if it wouldn’t be be better to take the widget-id defined in the __construct method.

Even though this isn’t a major problem I’d like to name my folders and files without too many prefixes and stuff.

Best regards,
Michael

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 4 months ago Andrew Misplon
    Hi, I Work Here

    Hi Michael

    Thanks for raising this. If you have a moment, please, can you consider posting this as a bug report on GitHub: https://github.com/siteorigin/so-widgets-bundle/issues. That’ll allow our developers to chat you directly about the issue when they work on the problem.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More