Conflict with Private_upload

Laurent_ - October 2, 2009 - 12:35
Project:iTweak Upload
Version:6.x-2.2
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

Hi,

For my specific purpose, I need to use private_upload which affect also file attachement display.
Unfortunately, this module overrides itweak display on both node edit form and node view. Whatever the itweak display settings, I get the standard Drupal attachment display.

Any idea how could we fix this ?

Thanks

Laurent

#1

iva2k - October 3, 2009 - 02:22
Status:active» postponed (maintainer needs more info)

Without reviewing the code of private_upload, I would try changing the weight of iTweak Upload module (by the way, 6.x-2.x-dev has a patch that sets ITU weight to 10). That should run ITU module after all regular weight modules (assuming that private_upload weight is 0). I don't have high hopes for that, but its simple and worth a try.

#2

Laurent_ - October 3, 2009 - 17:36

Thanks iva2k

I've tested with the dev version and results is unfortunately the same (private_upload's weight is 1 and itweak_upload's weight is 10).
I think the issue is in the way private_upload modify the upload form. I'll investigate this.

Laurent

#3

morthylla - November 4, 2009 - 13:54

Hi Laurent_

I used this page in order to manually modify the appareance of the upload form.

I found the same conflict with the Private Upload module and the solution was quite simple (but I don't know if it will be easily portable to the iTweak module): instead of mytheme_theme_upload_attachments, I created mytheme_theme_private_upload_attachments. It is the same thing for mytheme_upload_form_current, mytheme_theme_private_upload_form should be used instead. Then my changes are used after the ones of Private upload.

Morthylla

 
 

Drupal is a registered trademark of Dries Buytaert.