I haven't find such an issue in the queue, so created this one. Are you going to port Inline to Drupal 7?

CommentFileSizeAuthor
#24 inline-1036992.patch2.2 KBAnonymous (not verified)
#21 inline.d7.21.patch11.93 KBsun
#17 inline.patch492 bytesAnonymous (not verified)
#8 6.x-to-7.x.patch32.87 KBAnonymous (not verified)
#6 inline-7.x-1.0.tgz18.75 KBAnonymous (not verified)

Comments

thomas1977’s picture

Subscribing

Samat Jain’s picture

Issue tags: +#D7

Subscribing… added the Drupal 7 (D7) tag as well.

MentalFS’s picture

From what I can see, there is no upload module in Drupal 7 anymore. They are supposed to be replaced by file fields, which confuses me - since you can only put one file into it. Does anyone know what happens to attachments when you upgrade from D6 to D7? Will all attachments be thrown away?

Not sure how this will affect inline. If there are no attachments, would it have to work with field references or something?

fax8’s picture

Priority: Normal » Critical

If you dig into the file field option you'll find a way to add more than one file.. I guess this is how multiple uploads will be converted when updating from D6 to D7.

Btw, inline needs porting to D7 or a script for migrating into something else (eg. media module).

Anonymous’s picture

I would like to port it, and get some help from mantainers? May be we can have a D7 port soon.

Anonymous’s picture

Component: Documentation » Code
Category: task » support
StatusFileSize
new18.75 KB

Hi!: this is my port to D7. I've simplified the code a little. I'm posting this for inline devs review and corrections. Hope you can launch an alpha or beta release with this, so we can get it in full shape to start using and getting code maintained by the community.

As it is my first use of inline, i took the freedom to modify various terms on the code for adapting to D7 terminology (eg. instead of 'preset', i use the word 'style')

Please, somebody respond me on this. Last time i tried to help on the community with other module i was dissapointed by my code work not getting attention (a full week migrating a module from D6 to D7). Hope inline devs have a little time to pay me a little attention... i just want to USE inline on my production site and HELP others D7 users to use it!

Best regards!

Samat Jain’s picture

Javier, from what version of Inline did you start from? Also, consider posting a patch—it's much easier for developers to apply and use.

Anonymous’s picture

StatusFileSize
new32.87 KB

Hi!: I've used inline-6.x-1.0 version. I'm now posting the patch. Hope it is useful.
I'm waiting now for your responses. Thanks!

Anonymous’s picture

Status: Active » Patch (to be ported)

Anybody could look at it? Thanks!

Anonymous’s picture

No news yet after 10 days? Please, anybody?

Richard Archer’s picture

I won't have time to properly review this patch for another 2 weeks.

Javier, how confident are you that the patch is 100% correct?
Are you willing to investigate bug reports for the patch?

I'm happy to clean up this patch and commit it if someone else reviews/supports it.

Anonymous’s picture

Richard. Of source!! I WANT THAT!
Please commit it to head! I will look at reviews/bugs as they appear

Richard Archer’s picture

I have cleaned up this patch a little, reverting whitespace changes, fixing some Drupal style issues etc.
I also back-ported the changes from the 6.x-1.x-dev branch into this patch which was based on the 6.x-1.0 release.

I don't have a Drupal-7 installation running, so this code has been committed untested. Apologies if I've broken anything!

This new code has been pushed to a new branch, 7.x-1.x and a new 7.x-1.x-dev release created.

HEAD still contains the 6.x-2.x branch which I guess I should push into a branch of its own.

Thanks Javier, this is a really good start for inline's Drupal 7 compatibility!

yugongtian’s picture

+1

Trunkhorn’s picture

sub

basicmagic.net’s picture

subscribe

Anonymous’s picture

StatusFileSize
new492 bytes

A little change to fix warnings when there is no $build['body']

Richard Archer’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
Assigned: Unassigned » Richard Archer
Category: support » feature
Status: Patch (to be ported) » Needs review

I have committed that patch, thank you!!

byrond’s picture

There was an issue that came up regarding dependency on the Upload module in D6. I changed the dependency to D7's core File module, and it seems to be working fine.

http://drupal.org/node/1173396#comment-4600550

fax8’s picture

I'm upgrading a 6.x website where I was using inline to 7.x. The inline version published here (and on 7.x-dev) didn't work for my setup (just after running update.php ). Basically this 7.x version seems to look for image fields only while all the file upload fields converted from my 6.x install have been installed as general files.

Inline 6.x was working not only on image files but also on general files (by placing an "a" tag instead of "img") so I think that this version still needs work.

What I've done so far is http://sprunge.us/VjRZ .. I removed the checks for "image" fields so that now it should work for general file fields. Right now it somehow work in my setup, the only problem is that the file has to be set as "display" in order to be loaded from inline.

sun’s picture

Issue tags: -#D7
StatusFileSize
new11.93 KB

Thanks for working on this. Not really sure whether the committed patches are an actual improvement, but quite possibly, a step forward.

Committed attached patch as a follow-up.

drzraf’s picture

I agree that some one-liners are a step forward, but
ea7ee598885a4030105eb6c9272a35c8179ae03e mostly changes whitespaces (generated without diff -w) and move functions around without a strong reason for this ! (does anyone really think that code-indentation is the main problem/priority of D7 Inline)
There are others issues (some of them with patches) waiting in the queue which will have to be rerolled... (like mines in #1309542: D7 core File field is not handled by Inline & #1328260: $file->title not correctly tested, inexistant $file->filepath and missing file_create_url() for images :) )

nb: some people are not using nor doing business with Drupal and only contribute to make this CMS better/easier for associations/ngo, ... please don't make our lifes harder : consider commenting issues (and/or pending patches) about functional changes before trivial ones.
thx

sun’s picture

@drzraf: Exactly. However, to clarify, the commit you mentioned (same as patch in #21) reverted the needless/bogus white-space changes and movement of functions to their original locations. This is important for maintenance across major versions of this module (e.g., backporting of bug fixes, etc).

Will try to look at the other patches ASAP, if no one beats me to it. Thanks!

Anonymous’s picture

StatusFileSize
new2.2 KB

Couple of fixes for integration with Lightbox2, and some other bugs
Please push to HEAD?

sun’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

Anonymous’s picture

I've commited this (patch in #24) already. @sun please point me any error on my push?

sun’s picture

Status: Reviewed & tested by the community » Fixed

Looks fine to me! :)

Status: Fixed » Closed (fixed)

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

OnkelTem’s picture

Title: Port to Drupal 7 » Inline: Drupal 7 port