I was wondering if its possible to page flippy by weight or alphabetical order?
currently it seems to follow the nid id

Comments

rli’s picture

Status: Active » Fixed

Flippy is now can sort by node elements, which I believe can provide this feature.

Status: Fixed » Closed (fixed)

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

brentrobbins’s picture

Title: Flippy by weight or alphabetical order » Flippy by weight
Issue summary: View changes
Status: Closed (fixed) » Active

I would like to reopen this issue up since Flippy will work with ordering the page by fields, but as far as I can see doesn't work with the weight module value.

rli’s picture

Yep, didn't realized that weight module is not using field.

Would it be helpful if I add '->addTag' to the SelectQuery so that anyone wanted to alter the query can use hook_query_TAG_alter to alter the query. This will allow any other modules to customize the result.

rli’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Active » Fixed

Have added '->addTag' to the SelectQuery in dev. Other module should be able to alter the query now.

marameodesign’s picture

Hi,

I am trying to archive sorting "by weight", and I have upgraded to the dev version.
Could you please help and explain how to make code changes to sort by weight?

Thanks

rli’s picture

Hi marameodesign,

Since the module now has ->addTag('alter_flippy_query'); in the query, any modules can implement hook_query_TAG_alter() to be able to alter the flippy SelectQuery. In your case, you will need something like below:

/**
 * Implements hook_query_TAG_alter()
 */
function yourmodulename_query_alter_flippy_query_alter(QueryAlterableInterface $query) {
   // join the weight table with node table: $query->join(...)
   // add orderby weight: $query->orderBy('weight', 'ASC')  
}

Status: Fixed » Closed (fixed)

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