Flippy is restricted to paging only through the contents of a single content type. However, a content type is not the most granular "set" of content -- it can further be defined by taxonomy.
Flippy can page through content type a, but if content type a is further differentiated by taxonomies x, y, and z, it will not recognize that differentiation.
The request, then is to allow flippy to be configured to page through a subset of a content type, as further defined by taxonomy, i.e.
"Only page through nodes containing content type a and taxonomy x."
"Only page through nodes containing content type a and taxonomy y."
"Only page through nodes containing content type a and taxonomy z."
So, for example, you could page through articles in content type "food" with taxonomy "fish", or content type "food" with taxonomy "low fat". Of course if a node contained both "fish" and "low fat" as taxonomies, they would show up in both configurations.
Comment | File | Size | Author |
---|---|---|---|
#22 | interdiff_15_21.patch | 668 bytes | yonas.legesse |
#21 | flippy-filter-taxonomy-1497070-21.patch | 5.07 KB | yonas.legesse |
#15 | flippy-filter-taxonomy-1497070-15.patch | 5.04 KB | ssantaeugenia |
#11 | flippy-filter-taxonomy.patch | 5.2 KB | ipitbiz |
Comments
Comment #1
nravens CreditAttribution: nravens commentedI also think the above feature request would be great. Flippy is a nice simple basic pager and works well but it would be nicer to be able to be able to page through content of specific taxonomy terms.
Comment #2
skizzo CreditAttribution: skizzo commentedisn't this issue a duplicate of /node/1464374 ?
Comment #3
ubersoft CreditAttribution: ubersoft commentedThat was a question ("can this be done?") The answer to the question was "no."
So this is a feature request. I created it to formally petition for new functionality.
So while it's the same topic, I don't consider it a duplicate.
Comment #4
Lux Delux CreditAttribution: Lux Delux commented+1
I am begging for this functionality :)
Comment #5
eaton CreditAttribution: eaton commentedI'm looking into it. One of the big problems at the moment is that the previous alternative to this module (Custom Pager module) uses views as its backend to handle a bunch of crazy argument-driven stuff. I'm tackling the feature list for the upcoming 2.0 release and I'm going to put this in the queue to see how well it can be integrated.
Comment #6
Lux Delux CreditAttribution: Lux Delux commentedThank you very much for your effort, I'll be happy to provide additional feedback once it needs testing if the integration goes as planned
Comment #7
stevieb CreditAttribution: stevieb commentedfor sorting through taxonomy or any kind of filter try this module http://drupal.org/project/freepager
Comment #8
joseph11 CreditAttribution: joseph11 commentedYou can also try Flippy Improved (http://drupal.org/sandbox/joseph11/1938026) which was made for this purpose.
It's devel version, but grouping by taxonomy should work.
Comment #9
thalemn CreditAttribution: thalemn commented#8 works perfectly. I would recommend that Flippy Improved be committed to Drupal as a regular module. I really needed the grouping by Taxonomy term feature that FI provides.
Thank you.
Comment #10
xadag CreditAttribution: xadag commentedHi,
Great sandbox on #8 but flippy module is different now i think, i've founded a way to group by terms based on this sandbox.
Just use the form_node_type_form_alter from the sandbox with only the add of flippy_use_taxonomy and flippy_use_taxonomy_field (be carefull of the weight of your module doing the alteration, it must be greater than the flippy module)
and use the query alter for ->addTag('alter_flippy_query'); from flippy to add the filter for taxonomy field
And you must patch flippy.module to add metadata node
$query->addMetaData('node', $node);
In flippy_build_list
Comment #11
ipitbiz CreditAttribution: ipitbiz commentedHi,
I have prepared a small modification in the module that allows filtering by taxonomy. I would appreciate any comments.
Comment #12
ipitbiz CreditAttribution: ipitbiz commentedComment #13
OlafskiHi @ipitbiz, thanks for your patch to filter by taxonomy! I could need such a filter setting and have tested the patch. Here are my results:
When I enable a taxonomy in the Flippy settings of a content type, a node with this taxonomy has no pager, which is good!
However, the pager links of the nodes 'before' and 'after' the filtered taxonomy node are still pointing to the taxonomy node. In my opinion, these links should skip the taxonomy node and point to the next non-taxonomy node instead.
Here's an example: In the schema below, the pager link of Node A shouldn't point to the Taxonomy node but to Node B. The pager links of Node B should point to Node A on the left side and Node C on the right side.
Node A | Taxonomy node | Node B | Node C | ...
Additional information: The pager on my test site is sorted by "Title". Don't know if this setting affects the issue.
Comment #14
rliComment #15
ssantaeugenia CreditAttribution: ssantaeugenia commentedThe patch suggested in comment #11 cannot be applied to 8.x-1.0-beta3 version.
I attached a patch that worked for me.
Comment #16
ssantaeugenia CreditAttribution: ssantaeugenia commentedComment #17
apadernoComment #18
chegor CreditAttribution: chegor as a volunteer commentedPatch #16 works for me. (last dev)
Comment #19
Juc1 CreditAttribution: Juc1 commentedHi all, did filter content by taxonomy get into 8.x-1.0-beta4 released 14 July 2020 ?
Comment #20
gngn CreditAttribution: gngn at Computer Manufaktur GmbH commentedJust a quick glance: #15 changes the file modes (i.e. sets the files to writable by the webserver).
Comment #21
yonas.legesse CreditAttribution: yonas.legesse as a volunteer commentedAfter applying patch,all works well. However, a notice is introduced in admin due to an invalid array key. I've added a check to avoid it:
Comment #22
yonas.legesse CreditAttribution: yonas.legesse as a volunteer commentedInterdiff
Comment #23
apadernoComment #24
AnybodyThis should be solvable most flexible using a view as basis for flippy. Please help to develop a flippy submodule for that. We should stop other custom development here, I think.
Comment #25
AnybodyI hope we'll be able to solve this with #3308293: [3.x] Add a submodule to use a view as basis for flippy links please help over there! :)