This should work for Durpal 7 shouldn't it.? Can anyone explain how I could get something like this working in drupal 7

Comments

arski’s picture

Title: Drupal 7 » Drupal 7 port
Assigned: Unassigned » arski

Well, as you can see there is no D7 version of the module yet, so no, it should not work with Drupal 7 right now.

It's on my list though to port the module, so hopefully soon enough it will work with D7.

arski’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Status: Active » Fixed

Hey again,

A beta release of the 7.x File Force Download is available for download now! Please give it a try and feel free to open up new tickets if you encounter any issues.

Note that the upgrade routines have not been tested extensively, so please keep that in mind and let me know if there are any issues. I'm quite sure that running the upgrade will not result in anything breaking, but maybe, just maybe, not everything will be upgraded properly.

The upgrade process supports the following transformations for both D6 CCK formatters:
D6 FileField -> D7 File field
D6 ImageCache -> D7 Image field
D6 ImageField -> D7 Image field

Views formatters Note that the upgrade only works for content type definitions and NOT for Views. The reason is simply that there is no general tool to upgrade D6 Views to D7 Views yet, so they have to be recreated manually. Follow #687564: Build a generic d6 -> d7 update api / converter for a general upgrade routine - once it is available, I can also create one for File Force.

D6 Image module. If you had File Force Download enabled for the Image module then things are slightly complicated. First of all, there isn't even a properly tested technique for migrating the Image data to the D7's Image field. Accordingly, it is nigh impossible for me to create a migration procedure for the formatters of the Image module, as this should be building on the D6 Image module -> D7 Image field migration. I will be willing to look into this again later, but my assumption is that the D7 fields imported from the D6 Image module will not be uniquely identifyable, so your best bet is to update these manually in D7. Apologies for any inconvenience caused.

D6 Upload module. If you had File Force Download enabled for the Upload module's default display in the admin interface of the 6.x module, you will need to re-enable the File Force display on a per-field basis in your D7 site. The reason for this is that unfortunately it is not possible to uniquely identify which File fields in the new D7 site used to be Upload-generated files previously. My apologies for this, hopefully it won't be too much of an inconvenience.

Enjoy!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.