Hi,

Right now, extra_voting_forms needs to get its widgets from the module's directory.
This is less than optimal: a multisite installation would need to create a subdirectory in the module's directory to create a new set of widgets.

It really ought to be possible to add a configuration setting in extra_voting_forms where users can specify an extra path ('extra_voting_forms_widget_path'). If that path is set, the widget's root will become [drupal_install]/variable_get('extra_voting_forms_widget_path','') . That way, people will be able to create their own widgets and place them in their theme's directory etc.

ALTERNATIVELY, maybe we can simplify things and just add a checkbox and, if set, the widgets will be looked for in the theme directory rather than in the "widgets" directory in the module.

What do you people think?

I mark this as "critical", because a lot of people are using Drigg more and more and this I can see sites unable to design new widgets... it's sort of structural.

Merc.

Merc.

CommentFileSizeAuthor
#2 widgets_dir.patch3.04 KBcedricfontaine

Comments

mercmobily’s picture

Assigned: Unassigned » mercmobily
cedricfontaine’s picture

StatusFileSize
new3.04 KB

Please test with the suggested patch. Everything is ok for me.

mercmobily’s picture

Status: Active » Fixed

Hi,

Tested. It worked for me. EXCELLENT. THANK YOU!
Committed.

Merc.

mercmobily’s picture

Status: Fixed » Closed (fixed)