Needs review
Project:
Isotope
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2011 at 08:18 UTC
Updated:
16 Jan 2013 at 09:56 UTC
Jump to comment: Most recent file
Hi !
Just discovering your really interesting project.
I'm quite new to drupal and was searching to integrate Masonery / Isotope. I've done some experiments some weeks ago, but the way you are starting things is much more interesting.
So i've installed your module, i've created views and content based on what your providing, but I think i've missed something...
Can you help me to understand how to configure the views to filter my content ?
I could not find a readme.txt to understand how to really begin.
Thanks !
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Bildschirmfoto 2011-10-17 um 11.35.08.png | 40.28 KB | Greg Adams |
| #1 | Bildschirmfoto 2011-10-17 um 11.38.15.png | 98.12 KB | Greg Adams |
| #1 | Bildschirmfoto 2011-10-17 um 11.34.15.png | 40.29 KB | Greg Adams |
| #2 | Bildschirmfoto 2011-10-17 um 11.49.16.png | 37.29 KB | Greg Adams |
| #2 | Bildschirmfoto 2011-10-17 um 11.52.04.png | 76.41 KB | Greg Adams |
Comments
Comment #1
Greg Adams commentedThis is a really young project. I completely forgot the readMe.txt.
For the filters you need to create a view with "Isotope FIlters" Views Style.
it needs to be set to taxonomy (not content).
create a block for this view.
then you need to rewrite the output of the term (name)
Now you can put the block in any region you want or in the header of your isotope view.
I added a few screenshots.
in the footer you need a script.. (this needs to be added manually to the views footer in a textarea with php filter enabled)
something like this should do (see my demos or read the documentation on http://isotope.metafizzy.com )
It's not fully dynamic yet but will be soon, I promise... ;)
I tested it on my theme and the Bartik theme. It should be compatible to other themes too though.
Just take a look at my examples http://isotope.pixelass.com
it explains how to use static filters and shows a few footer-script examples
If you need any help feel free to ask.
Comment #2
Greg Adams commentedFor the isotope VIew itself...
create a basic view with "Isotope View" Views Style.
The isotope view itself needs a row class of your terms (see screenshot)
See screenshots
Comment #3
jmix commentedWow ! thanks so much for your reactivity !
I'll try this as soon as possible, this afternoon i guess.
Thanks again !
Comment #4
jmix commentedHum... i guess i'm pretty close to it but i don't understand where do i have to put the custom row class.
I put it in the "format > isotope view > settings", but i guess it's not the right place as i don't see the options you have in the screenshot above (filtering method, variable size etc...)
Am i right ?
Comment #5
Greg Adams commented(the variable sizes etc are not in the version you are using. so don't worry about them)
The screenshot is from a newer version of the module. For you it should say
"Grouping field" and "Row class"
You can put replacement patterns in here
Example:
You want to filter by "tags" AND the custom Taxonomy "Isotope filters"
the replacement patterns are: [field_tags] [isotope_terms]
Let's say you have used two vocabularies
You want to be able to sort by a category which is "isotope Filters".
(like in this example http://isotope.pixelass.com/isotope-view/module-testing-area )
Tags can be multiple but isotope can only be one value (I am assuming you set it up this way).
So you need the terms as classes.
[field_tags] [isotope_terms] would output: (say has the "tags" red, round, small AND "isotope Filer" CAT1)
<div class="red round small CAT1" data category="CAT1" >...</div>the last class is automatically added as a data category (even though this is only needed if you want to sort by category)
So as row class you should just insert [field_tags] [isotope_terms] (make sure to pu a space between)
Comment #6
Greg Adams commentedI just updated the sandbox..
It seems the jquery.isotope.min.js was missing too.
README.txt is included too.
Comment #7
Greg Adams commentedComment #8
jmix commentedOk ! It is now working on my local install (drupal 7.4) !
The ideal would be to mask the unused tags, but i guess that's what you mean when you say it's not fully dynamic.
I did not try to use the variable sizes, filtering method etc... i'll take time to play with this too.
Thanks again !
Comment #9
Greg Adams commentedOK glad to see you got it to work.
About the dynamic Filters:
Currently you can add the desired filters "static"
You can use taxonomy terms (adds all terms in that category)
or you can use TRUE filters
There is an example for "TRUE" filters. Those are filters that only show up if elements of that term are in the view. It's still in a very early testing phase but that will be one of the most important features of this module.
The idea:
You have 80 terms in a vocabulary.
The view page 1 has 30 items that use 18 of the 80 terms.
Only the 18 used terms show as filtering options.
The view page 2 has 30 item that use 10 terms.
Only those 10 terms show up.
If you use infinite scrolling, the filters will add up.
Page 1 has 18 terms
page 2 has 10 terms
5 of the terms are not used on page 1
after the first infinite scroll (page 2 is added) there are 23 filters (18 + 5)
Comment #10
jmix commentedSounds really nice !
I couldn't make Dynamic filters to work yet, perhaps there's something to change in the footer script, or is it in the views' filters parameters ?
I've tried with this in the footer, without success:
Comment #11
Greg Adams commentedI added this to the script for the TRUE Filters2 example: http://isotope.pixelass.com/isotope-view/true-filters-2
This detects whether the body or Image or video is present and will add the filter dynamically. For this to work you need to set the views-field to "hide if empty"
all you need is a
It will only add the frame and the "All" filter. The others are "TRUE-dynamic". You can put the script above in a block or in your views header.
The scriptt below should be added to your init script in the footer of that view.
--------- the fields-name need to be changed to the name of your field:
views-field-field-isotope-image = your IMAGEFIELD
views-field-body = your TEXTFIELD
views-field-field-video = your VIDEOFIELD
This gives you dynamic filters that append only if the elements are actually present.
These filters can be combined with taxonomy or static filters.
I know it's still hardcoding but after all... this is still a sandbox, right?
The goal is to make all filters behave like the TRUE filters
Comment #12
jmix commentedOk !
So i guess i make some confusion between what you call "dynamic filters" and "true filters".
I'm not sure to understand if it's the same concept or not.
From your last post related to "true filters" i understand that, for the moment, one way to choose what filters to display is by checking each class one by one.
This exemple is interesting because it shows that we can apply classes based on fields (if they are printed), and then create and display related filter buttons.
(and here setting the filtering method to "dynamic" has no influence, right ?)
But i thought that setting up the filtering method to "dynamic" was already allowing to display filter buttons based on taxonomy terms available in my contents.
This is what i unerstood here when you say "New tags (filters options) are created dynamically".
In fact the real problem is that my english is quite as bad as my coding knowledge, sorry for that ;-)
Comment #13
Greg Adams commentedThis means that the filters will extend if you add new taxonomy terms.
STATIC: Filters need to be added to the header or block. They will not be affected by any other settings.
DYNAMIC(Taxonomy): These are created with the "Views Filters" Views style. When you add these they will show all terms for the selected vocabularies. They can be filtered since it's a view. When new terms are added the filters extend automatically (depending on the settings of that view)
TRUE (dynamic): These filters are added automatically. No configuration needs to be made. Only filters for objects that are present are added.
These are the three filtering types I am working on. The TRUE Filters do not work yet (only tests).
If you're looking for a more complete module you will have to wait a little until this is at least a dev release.
Comment #14
Greg Adams commentedJust added a new example http://isotope.pixelass.com/isotope-view/true-filters-3
FULLY dynamic filters. (does not work with multiple terms per element)
You can test it if you want
Comment #15
jmix commentedHi Greg !
Sorry, i missed your message !
Thank you for this, i'm gonna try it as soon as possible !
Comment #16
hankinsweb commentedVery happy to see someone is working to implement this in Drupal. I would like to help test and depending on my work load over the next few weeks I would also like to contribute. I plan to play around with it tonight and tomorrow to familiarize myself with the plugin and your progress. Thanks for your time and work, check back soon.
Comment #17
Greg Adams commentedI would be very happy to see more contributers...
My time is limited, and so are my skills....
Comment #18
drupa11y commentedGreat project. Hope to get it working. Thanks Greg.
Comment #19
tmbnh1 commentedHi Greg,
I created a basic view with "Isotope View" Views Style follow guide of you. But I don't know what do I insert into header and footer of View?
Comment #20
jaxxham commentedVery interested in using this - is it still being developed?
Comment #21
Cozmonaut commentedHi Greg,
Your work on this and instructions in this post have been awesome! Thanks so much.
I was wondering if there was an easy way to add to a corner stamp via views? Like this http://fiddle.jshell.net/desandro/qm4Yc/show/ I've tried rather unsuccessfully but I'm also a bit of coding noob.
Thanks!
Comment #22
Cozmonaut commentedHi Greg,
Another question. In your module testing area (http://isotope.pixelass.com/isotope-view/module-testing-area) when you click on an element it enlarges using reLayout, but do you know what code I would use to switch the node's view mode from teaser to full when it enlarges?
If you could help me with this I would be so grateful!
Thanks in advance.