Is there a function where I can edit the views? I'd like to be able to display the auction so that it's sortable by expiry, price, etc.

CommentFileSizeAuthor
#2 1.txt261 bytespndur
#2 2.txt1.09 KBpndur

Comments

Garrett Albright’s picture

UC might already provide something that will let you create a view that sorts by price, but as for expiry, no, that's something I would have to add. Unfortunately, I know zilch about programming for Views, and the times I've tried to figure it out by looking at others' code, I've been quickly scared off. If anyone knows of any "Programming for Views for Dummies" resources out there to help me get started, I'll definitely look in to better Views integration for uc_auction.

pndur’s picture

StatusFileSize
new1.09 KB
new261 bytes

Quick hack, code borrowed from the views 2.x dev module, but works for me.
This code will give a field and a simple filter on the expiry field.
Put the code from 1.txt at the end of uc_auction.module and the 2.txt file into ./views/uc_auction.views.inc, run update and you'll get an extra field expiry you can put into the field section and a filter for filtering on expiry date.

It would be nice if someone can write a better filter to support date popups.

Garrett Albright’s picture

Hmm… I'm going to (finally) start working on the project I developed UC Auction for again in the near future, so I'll look in to integrating that. Thanks.

Garrett Albright’s picture

Status: Active » Fixed

Views have been implemented in newer versions of the code and will continue to be developed, so marking this as fixed.

Garrett Albright’s picture

Status: Fixed » Active

Ever since the big database schema update two dev releases ago, most of the Views-related code was made obsolete and will no longer work. Unfortunately, the changes I made, while otherwise improving flexibility, have made things more difficult to work with Views. I'm currently seeking help on some things that have stumped me, and I personally will need Views support for our client's site, so getting this working again is definitely on my list.

coloryan’s picture

I had someone add a view/sort function on my site. It's not controlled through the auction, I think views but I'm not sure. I'll try and find out the next time that I speak with him.

Garrett Albright’s picture

Actually, all the Views stuff should be working just fine now…

coloryan’s picture

Status: Active » Closed (fixed)