This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Widget Id = Filename => id-overlap

9 years ago · Last reply by Andrew Misplon 9 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 9 years, 9 months ago

    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.

Have a different question or issue?

Start New Thread