Closed (fixed)
Project:
Drigg
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Dec 2007 at 23:03 UTC
Updated:
4 Jun 2009 at 11:52 UTC
I was wondering if this module is compatible with Views and CCK. For instance, if someone needed to add a date field to their content type, can they add a CCK Date field to Drigg?
Which brings me to my next question, if not ...there is currently no way to sort content? e.g : by newest date, alphabetically, etc..
If I'm missing something, I apologize! Thanks and great work Tony.
Comments
Comment #1
chadchandler commentedI now see the FSdaily has the ability to sort by date added and least popular and most popular, so I assume that comes with the module?
But.. what if you needed to add 1 or 2 more fields to your listings. I understand you are not using CCK because it's query intensive, but surely something could be done?
A main worry with using this module is that it "strays away from the pack" , meaning there is a lot of support and new modules being created weekly for CCK and Views.
However, I can't imagine the hours you put into this for the Drupal community and it's definitely appreciated!
I'll leave with this one question. If just now you realized you needed to add 2-3 more fields to your listings, and also have the ability to sort them by date or alphabetically, What would you suggest?
Comment #2
mercmobily commentedHi,
I would be totally happy - and I mean it - to make the module compatible with views.
I am not a fun of views or CCK because of the query issue. Right now, fsdaily.com's homepage has a footprint of FIVE HUNDRED QUERIES. I just cannot imagine anybody deploying a site like fsdaily with views and CCK, but... well, who knows?
The main problem is that I don't _know_ views nor CCK. I realise that it's very possible to make the module views-aware - in fact, both simple_karma AND drigg should be views-aware. I don't think it's really possible to make the module CCK-aware, because there is just so much that is specific to a "drigg-like" news when you submit for example, in terms of Ajax, URL checking, etc. But views? Yes.
But I don't know where to start. I looked at views, I tried to write the right hooks, but I didn't manage. I asked for help to other developers, and was told "I don't have time, sorry".
I don't like the fact that Drigg goes stray from the pack. But, I have my limitations...
So, if somebody out there knows how to view-ify a module, I am here: I will give you all the support you need, and will apply any patches instantaneously.
I can also give views more of a try, but... I can't guarantee I will manage!
Sorry about this (I mean it)...
Merc.
P.S.
Simple karma + Drigg were about 1200 hours. There is a LOT there. So there, you don't have to "imagine" anymore :-D I am not a fast programmer, but I do write tidy and robust code. Have a look at it!
Comment #3
chadchandler commentedThanks Tony.
I'm pretty sure someone skilled with Views could help you out, but it seems everyone is busy. Hopefully time will change that.
The one feature I love about Drigg is the drop-down jump menu for the sorts. How hard/easy was that to do?? Currently using views, we just set up new tabs.
Comment #4
mercmobily commentedHi,
> I'm pretty sure someone skilled with Views could help you out
> but it seems everyone is busy. Hopefully time will change that.
Hopefully, I'll find somebody!
> The one feature I love about Drigg is the drop-down jump menu for the sorts.
> How hard/easy was that to do?? Currently using views, we just set up new tabs.
That's not "drigg" - that's purely a css trick. Alan did it - it should be quite straightforward for you to find the CSS bits that deal with it, and use them!
That menu works with every browser (it was very tricky)
Merc.
Comment #5
mercmobily commentedHi,
Actually, this is now fixed.
The new version of Drigg, going online later today, is based on the powerful VotingAPI - which, guess what, come with full Views support.
Yay!
Merc.
Comment #6
chadchandler commentedQuick question ... I don't expect a 100% fully detailed answer, just maybe some guidance.
If I wanted to add an extra field to my Drigg content type, for example purposes lets say I wanted to add a Date field.
This module is not compatible with CCK, correct? How would you best go about adding extra fields?
Comment #7
mercmobily commentedHi,
I have never seen CCK in my life. I honestly wouldn't know.
If you point me to the right direction of what needs to be done so that the module is compatible with CCK, I will do my best to implement it!
Bye,
Merc.
Comment #8
mercmobily commentedHi,
OK, I am closing this issue.
Now... I do not see a reason why this module would be incompatible with CCK. However, I haven't tried.
Please keep this issue closed. Then, please try and add custom fields to this module through CCK and report any _specific_ problems.
I think it would be better for you to do so once I've released drigg (there is no official release for now).
Bye,
Merc.
Comment #9
philbar commentedFor the record, CCK works for me. The only problem is ordering the fields: #364100: Cck and Drigg conflict - field ordering
CCK integration is crucial, since it is going to be part of d7 core.
Comment #10
mercmobily commentedHi,
OK cool -- thank you philbar!
Merc.