hey

this would look even better in D7 :P

CommentFileSizeAuthor
#23 views_fluid_grid-908920-23.patch4.75 KBAnonymous (not verified)
#10 908920-views_fluid_grid-template_preprocess.patch3.55 KBMatthew Davidson
#9 views_fluid_grid-li_classes.jpg48.2 KBAnonymous (not verified)
#8 views_fluid_grid-908920-8.patch1.16 KBAnonymous (not verified)
#4 views_fluid_grid_908920.patch1.31 KBrecidive

Comments

markus_petrux’s picture

Status: Active » Postponed

Sure. Patch?

lpalgarvio’s picture

oh, don't ask me :P

markus_petrux’s picture

ah, noise then. Well, let's keep this as postponed. It will happen, but I do not know when because of lack of time... patches are welcome. Thanks

recidive’s picture

Status: Postponed » Needs review
StatusFileSize
new1.31 KB

I got the module working on Drupal 7 with very little changes.

Rj-dupe-1’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +drupal7

Looks good, 2 lines of trivial changes and works for me. Can we please have at least a 7.x-1.x-dev build?

danysz’s picture

I tried the two small changes to use it in 7 but it's not working.
It succeed to install it but when it doesn't allow me to select this kind of "Style". Any idea ?

3rdLOF’s picture

I too did those changes independently and they worked out great. It is working for me.

Can we roll a dev version so we can track this module via the update report of D7?

Anonymous’s picture

StatusFileSize
new1.16 KB

I made a minor change to the above patch to make it work against the latest 6.x-dev version.

Anonymous’s picture

Status: Reviewed & tested by the community » Needs work
StatusFileSize
new48.2 KB

Actually, there seems to be an issue with the classes getting passed onto the li elements (views-row, odd, even, first, last, etc.). It currently is only printing out 'views-fluid-grid-plugin-style' one letter at a time (see attached screenshot).

I've tried to look into the issue, but can't work out what's going wrong...

Matthew Davidson’s picture

Status: Needs work » Needs review
StatusFileSize
new3.55 KB

Fixed by going back and looking at the Views 3 version of template_preprocess_views_view_unformatted(), which was the model for template_preprocess_views_fluid_grid_plugin_style() initially.

Anonymous’s picture

Status: Needs review » Reviewed & tested by the community

Works for me!

dddbbb’s picture

Sub

Pillhuhn’s picture

Which patch do I apply to make Views Fluid Grid work for Drupal 7? I tried the one from post #11 but it didn't work. At least not when I put the patch file in the module folder and patch it via Terminal on a Mac.
Thanks! :)

3rdLOF’s picture

@Pillhuhn

How did you try to run the path? Which commands and what did it tell you?

Pillhuhn’s picture

Hello kannary100,

I downloaded the module and expanded it. Then I downloaded the patch from #10 and copied it into the View_Fluid_Grid module folder. I opened Terminal and opened the directory of the module folder (CD home/myfolder/downloads/ViewsFluidGrid). And then I ran the patch with: patch < 908920-views_fluid_grid-template_preprocess.patch.

This is what it looks like including the message from Terminal. I don't know enough about patching to decide whether I need the -p or -strip option as suggested in Terminal. Also, I am not sure what to enter for the 'File to patch:' question.

Last login: Sat Apr 30 22:22:49 on ttys000
Andres-MacBook-Pro:~ Andre$ cd /Users/Andre/Downloads/views_fluid_grid
Andres-MacBook-Pro:views_fluid_grid Andre$ patch < 908920-views_fluid_grid-template_preprocess.patch
can't find file to patch at input line 5
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/theme/theme.inc b/theme/theme.inc
|index 894e630..7dec86c 100644
|--- a/theme/theme.inc
|+++ b/theme/theme.inc
--------------------------
File to patch:

Well, and then I don't know...

Any pointers are appreciated. Thanks,
Andre

3rdLOF’s picture

run the path command as on of these these two options

patch -p0 < 908920-views_fluid_grid-template_preprocess.patch

patch -p1 < 908920-views_fluid_grid-template_preprocess.patch

Pillhuhn’s picture

What is the difference between the p1 and p2 option?

Well, I tried both but I don't think it worked.

the -p0 option gave me the following:

can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/theme/theme.inc b/theme/theme.inc
|index 894e630..7dec86c 100644
|--- a/theme/theme.inc
|+++ b/theme/theme.inc
--------------------------
File to patch: exit
exit: No such file or directory
Skip this patch? [y] y
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 52
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/theme/views-fluid-grid-plugin-style.tpl.php b/theme/views-fluid-grid-plugin-style.tpl.php
|index c8cf697..429a176 100644
|--- a/theme/views-fluid-grid-plugin-style.tpl.php
|+++ b/theme/views-fluid-grid-plugin-style.tpl.php
--------------------------
File to patch:
Skip this patch? [y] y
Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 78
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/views_fluid_grid.info b/views_fluid_grid.info
|index 2a89e7e..71207ea 100644
|--- a/views_fluid_grid.info
|+++ b/views_fluid_grid.info
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 92
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/views_fluid_grid.module b/views_fluid_grid.module
|index c8cf69f..33ea23e 100644
|--- a/views_fluid_grid.module
|+++ b/views_fluid_grid.module
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored

 

and the -p1 option this:

Andres-MacBook-Pro:views_fluid_grid Andre$ patch -p1 < 908920-views_fluid_grid-template_preprocess.patch
patching file theme/theme.inc
patching file theme/views-fluid-grid-plugin-style.tpl.php
patching file views_fluid_grid.info
Hunk #1 FAILED at 2.
1 out of 1 hunk FAILED -- saving rejects to file views_fluid_grid.info.rej
patching file views_fluid_grid.module
Reversed (or previously applied) patch detected! Assume -R? [n]

Matthew Davidson’s picture

Git is now the preferred tool for creating and applying patches, although of course it brings with it the Git learning curve. Try the instructions here and let me know if you still have problems.

rnyberg’s picture

Subscribe

Pillhuhn’s picture

Hi Matthew,

I looked at the instructions but there seems to be now Git version for Mac OS X 10.6 Snow Leopard. Any ideas?

Thanks,
Andre

srsbl’s picture

Subscribe

mandreato’s picture

Subscribe

Anonymous’s picture

Title: Drupal 7 port » Drupal 7 port (Views Fluid Grid)
StatusFileSize
new4.75 KB

Here's Matthew's patch from #10 above done without using Git (no additional changes were made to the code itself).

To use it, download the latest 6.x-dev version of Views Fluid Grid from the project page, add this patch to the directory and run the following code from the terminal:
patch -p0 < views_fluid_grid-908920-23.patch

ckng’s picture

#10 looks good to go.
Could we have d7 branch and dev packaged to open to more people for testing?

Matthew Davidson’s picture

Thanks @BWPanda. BTW, I happened to try applying a git-generated patch recently with:

patch -p1 < some.patch

... and it worked as it should.

-p1 patches are now the standard on d.o., so we've all got to learn to use `git apply`, get into the habit of using `patch -p1`, or if you only apply patches from d.o. maybe set a bash alias.

Pillhuhn’s picture

Thanks BWPanda, it works for me. Now it would be great to have an official Drupal 7 dev release.

Juan C’s picture

subscribe

kirilius’s picture

Subscribe!

franzkewd’s picture

+1 for official D7 dev release please.

bryancasler’s picture

subscribe

brycesenz’s picture

subscribe

scottrigby’s picture

#10 …lovely :)

basicmagic.net’s picture

subscribe

markus_petrux’s picture

Status: Reviewed & tested by the community » Fixed

Hi all, thanks a lot for the patch and reviews. I have just created the branch, and soon will be adding a new dev release so it can be tested/used easily. Thanks!

Status: Fixed » Closed (fixed)
Issue tags: -drupal7

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