Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more control over widget folders structure #679

Open
NazarkinRoman opened this issue Mar 25, 2018 · 2 comments
Open

Add more control over widget folders structure #679

NazarkinRoman opened this issue Mar 25, 2018 · 2 comments

Comments

@NazarkinRoman
Copy link

NazarkinRoman commented Mar 25, 2018

Would be great to have some control over widget file loading process. For now it just looks for */*.php pattern which is not flexible. For example, I'd like to have next directory structure:

my-first-widget
-- widget.php
-- template.php

my-second-widget
-- widget.php
-- template.php

Current widgets loading process does not allow be to implement this. There is no any filters inside SiteOrigin_Widgets_Bundle->get_widget_objects() and SiteOrigin_Widgets_Bundle->get_widgets_list() functions to control glob pattern.

Different approach without using glob: load only registered widget files from internal storage of SiteOrigin_Widgets_Widget_Manager class.

@AlexGStapleton
Copy link
Member

Unfortunately, this isn't something we're currently interested in doing but I can definitely understand why you would want this. I'm going to put this on our backlog internally and close this one to remove it from the priority list.

@AlexGStapleton
Copy link
Member

AlexGStapleton commented May 30, 2018

Actually, we've decided to keep this open purely for public future reference as this may have come up one or twice in the past.

Internal Note: Slack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants