Hi

Here's the scenario:

I have created a Top 10 list of book. Currently the numbering (#1, #2, #3...) are stored in CCK field and retrieved in a view, and concatenated with the title using replacement patterns. The view is sorted by the CCK field so the numbering is ordered.

http://www.pleasurephotography.com/books

But when filtering is done (using Taxonomy Terms) from the right block "Browse Books by Category", the numbering is obviously off.

Hence I want to dynamically generate the numbering so that no matter what sort order/filtering I choose from behind the scenes, the list always says

#1. Book A
#2. Book W
#3. Book E
...

Is there a way to even do this? Perhaps include something in the "Rewrite the output of this field" text box which currently has the following

<b>#[field_rank_order_value]</b>&nbsp;&nbsp;<a target="_blank" href="[field_buy_url_value]">[title]</a>

Any suggestions are welcome. Thank you.

-Sudipta.

Comments

dawehner’s picture

Did you tryed out the global: count results field? I guess this should help here.

sudipta_shaw’s picture

Version: 6.x-2.8 » 6.x-2.7

Thanks a lot, dereine.

Yep. That worked like a charm!

Well, not really like a charm. Because I am using views 2.7 that has a bug due to which I got the error message as soon as I added the Global: Views Result Counter -

PHP Fatal error: Call to undefined function dsm() in /home/klat/web/sites/all/modules/contrib/views/handlers/views_handler_field_counter.inc on line 29

Resolution here:
http://drupal.org/node/621532

-Sudipta.

dawehner’s picture

Version: 6.x-2.7 » 6.x-2.8

Use 2.8, there it is fixed.

merlinofchaos’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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