Hi Sevi (I know... again me...)
I would like to numerote rows.
With Table views, It was simple: just adding to "views-view-table.tpl" this code:
td> print $count+1+($view->pager[view_name]*$view->pager[50]);
But with Draggable views, it's much complicate...so..
It's usefull to numerote rows... with Draggable views... as it's for rankings...
Thanks again and again...
Julien
Comments
Comment #1
sevi commentedIn the draggableviews/ folder there's a .tpl.php that is designated to overwrite output.
Just overwrite output by copying draggableviews-view-draggabletable.tpl.php to your theme.
Comment #2
junro commentedI always did this, and just retry, but it doesn't work. Maybe I need some JS... (I don't know nothing about JS)
Comment #3
eclipsetalk commentedHave you been able to get rows number for Draggable views. I added the file "draggableviews-view-draggabletable--MyView.tpl.php" to my theme directory but it doesn't seem to be invoked?
Does anyone know why?
Thanks in advance
Comment #4
junro commentedHello, use the Views Custom field module
http://drupal.org/project/views_customfield
Comment #5
eclipsetalk commentedThanks Junro for the reply. I'm using Drupal 6.x. I installed the customfield module but I can't figure out how to set a custom field for the view. Any help is appreciated. Sorry for this novice question, I'm still learning....
Comment #6
junro commentedIn "Fields" choose "customfield" and add "rownumber".
It's like a simple field... very easy to use it.
Comment #7
eclipsetalk commentedPerfect thanks! That works great
Comment #8
junro commentedWorks great but there is a bug with blocks.
see http://drupal.org/node/347403
Comment #9
junro commented