First of all, thanks for all of your work with this module. The possibilities are pretty incredible; so is (was) your beard :)
I'm looking to specifically enable resizing. I see from the css that there has been some though put into this, and you mentioned it in your Beardcast #1.
For different layouts, do you have a plan of how to enable them? Perhaps in the Page: Style options? With the additional js required, this would probably stay in the existing views_isotope.js file? I'd like to contribute to this, but don't want to senselessly go down the wrong path in regards to your roadmap. I'm pretty good at Drupal/PHP/jQuery.
As I'm sure you know already, this link has resizing working, though using the footer for JS: http://isotope.pixelass.com/isotope-view/with-resize
Thanks again!
Comments
Comment #1
stevenmhouse commentedWell... it was easier than expected. The JS was almost identical, with only a few lines added. See the link from above for the js (all in red) and compare to the views_isotope.js file. It came from the same source, as obvious from the comments and almost identical nature. Check http://isotope.pixelass.com/isotope-view/with-resizefor the code.
The only initial issue I have is when clicking on an element to enlarge, everything is made bigger including text. I haven't had time to check it out yet. What I'd like is for the initially viewable text to stay the same size and for more information that was hidden by the smaller div to show up. Also, it would be good to incorporate this into views settings somehow, perhaps in the isotope grid settings have a checkbox for layouts.
After this, make views_infinite_scroll work with it and it would be money :)
Comment #2
stevenmhouse commentedNote: when I added the bit for masonry (not what I wanted) it 'broke' the layout to 1 column. I commented it out and isotope + resize worked
In summary, the only thing necessary was to add:
at the end of views_isotope.js
Comment #3
kreynen commentedThe desire for more option that can be configured within Views far exceeds the time I have to contribute to this module. Client work funded the initial development and while I continue to use views_isotope in projects, I don't need a UI to add these options and I'm overwhelmed with other projects.
Anyone interested in stepping up to co-maintain this project? I'd rather put the limited time I have into helping get another developer familiar with git, Drupal.org packaging, and testing updates.
Comment #4
stevenmhouse commentedSure, I'd be interested. I'm also pretty busy, but I could contribute some. I'll get a git account, and look into packaging and testing.
Comment #5
InTheLyonsDen commentedHere's how I got it to work... but I don't have time to write patches for it. ;) But I hope it helps.
I added a new taxonomy vocabulary with "Small, Default, Medium, Large" as terms and added the vocabular to the content types that I wanted to have in the Isotope view. I added classes to the css file that matched the terms i.e., .isotope-element.large, etc. Then add the new term to the view and specify the class as isotope-class. Then I duplicated the filter variable in the following two steps and bingo, I can have unlimited sizes of tiles.
Step 1
I added the following code to views_isotope.theme.inc at line 55
Step 2
I added the $var with the class to views-isotope.tpl.php
Comment #6
Chris Gillis commentedThis is a valid feature request against the latest version.
Comment #7
Chris Gillis commentedAfter further thought, this is not something that will ever be practical to put into the module. It is really a site-specific use case. If you want it to expand, first you need a css class that defines the larger "expanded" size. Then you just add a little bit of your own JS (e.g. in your theme) that does something like this:
For help with sizing, take a look through http://isotope.metafizzy.co/layout.html.
Comment #8
maxplus commentedHi @Chris Gillis,
I like this module a lot because it combines all possibility's of Isotope, Masonry, Packery, Imagesloaded,... together.
Just to make it more complete, it would be very handy to just have a setting where you can enter an extra row class on top of the isotope-element class.
If that setting would also accept tokens from fields that are used in the view, is becomes very dynamic!
Then you could add a field to your content type that defines the width for example width1, width2, width3, etc...
=> in ccs you can define all those width values (for example width1 = 10%, width2=20%,...etc)
Over at the masonry_views module, the do it like that and also in the packery docs (http://packery.metafizzy.co/#css) there is an example like this:
HTML
CSS
Maybe something to think about?
Comment #9
Chris Gillis commentedHi Maxplus,
That's a nice idea. Could you please open a new feature request over at https://www.drupal.org/project/issues/isotope
Thanks,
Chris
Comment #10
Chris Gillis commentedSuggestion from #8 being handled at #2709103: Adding arbitrary css classes to elements