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> <a target="_blank" href="[field_buy_url_value]">[title]</a>
Any suggestions are welcome. Thank you.
-Sudipta.
Comments
Comment #1
dawehnerDid you tryed out the global: count results field? I guess this should help here.
Comment #2
sudipta_shaw commentedThanks 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 29Resolution here:
http://drupal.org/node/621532
-Sudipta.
Comment #3
dawehnerUse 2.8, there it is fixed.
Comment #4
merlinofchaos commented