At the moment I'm using this snippet:

<?php
include_once  drupal_get_path('module','biblio') . '/biblio.pages.inc';

print biblio_db_search("inline", "custom2", "thepoitiershist"); 
?>

It is possible to had a filter to this snippet to list the result filter by years? I would appreciate an exemple.

Thank you,

Denis

Comments

rjerome’s picture

If you want a specific year (i.e. 2006), then this should work...

include_once  drupal_get_path('module','biblio') . '/biblio.pages.inc';

print biblio_db_search("inline", "custom2", "thepoitiershist", "year", 2006);
p0732658’s picture

Actualy, what I mean is to display the snippet results filters by years: either from the oldest publication date to the newest publication, or the newest publication date to the oldest.

rjerome’s picture

That should happen by default, how does it appear to be sorted?

p0732658’s picture

I probably had something not set properly. I've set the filter to Year / Descendant in the biblio properties and It work fine. It would still be nice to be able to set different filters display (by year, by author,etc.) for different biblio_db_search snippet. At the moment, the setting in biblio properties affect the hole site. So, if I want a page display by years accendant in one section and by authors in another, I cant. Should I create a feature request?

rjerome’s picture

Consider the feature request made :-)

liam morland’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

This version is no longer maintained. If this issue is still relevant to the Drupal 7 version, please re-open and provide details.