Hi,

I have installed Drupalit and I was wondering, I know I can rank my conter per vote, but I dont know how to create a list as follows.

1 - Shoes - 30 Votes
2 - Chairs - 28 Votes
3 - Tables - 26 Votes

I want to be able to actually have a rank number instead of the default icon which is usually a bullet or something of the sort. So how can I create this sort of lis in Views?

Thanks.

Kahenya

Comments

catch’s picture

Status: Active » Fixed

If you have a voting module installed, then it might provide a 'number of votes' field - in which case you can add this to a list or table view and it'll show up.

If there's no "number of votes" field, then you'll have to file a feature request against that module (not views - the fields are provided by modules). I'm marking this as fixed, but reopen if it doesn't help.

Anonymous’s picture

Status: Fixed » Active

What I meant was the position in the list.

Like
1. Shoes
2. Chairs
3. Tables.

How do I make it show the actual position on the list so that it can say number 1 is shoes and have (1) before shoes?

catch’s picture

Oh I see...

I haven't done it, but you ought to be able to use the views theme wizard on a list view, then change the output to ol instead of ul.

Anonymous’s picture

Hi,

Will try it and let you know.

Thanks

Anonymous’s picture

Hi,

I am using a very simple data list. When I go through the wizard, I don't even have the output section that would read ol. I get the code but no option to do that.

Any other ideas?

Thanks.

Kahenya

merlinofchaos’s picture

Status: Active » Fixed

There should be a line in the template like theme('item_list', $rows);

If you look up theme_item_list on http://api.drupal.org you'll see that one of the parameters can be 'ol'. I think it's the 3rd there, but I'm not 100% sure. That'll get you an ordered list.

(Views 2 will be able to do this via setting)

Anonymous’s picture

Sorry, was in Ethiopia, so haven't had much time to work. Anyway, I fixed the ul ol thing and it works a bit too well. Question, how do I limit it only to certain lists? Evey list in my install including a menu is now numbered. Is there a way to limit this or do we have to wait for a new release of views?

Anonymous’s picture

Status: Fixed » Closed (fixed)

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