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

sevi’s picture

In 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.

junro’s picture

I always did this, and just retry, but it doesn't work. Maybe I need some JS... (I don't know nothing about JS)

eclipsetalk’s picture

Have 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

junro’s picture

Hello, use the Views Custom field module

http://drupal.org/project/views_customfield

eclipsetalk’s picture

Thanks 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....

junro’s picture

In "Fields" choose "customfield" and add "rownumber".

It's like a simple field... very easy to use it.

eclipsetalk’s picture

Perfect thanks! That works great

junro’s picture

Works great but there is a bug with blocks.

see http://drupal.org/node/347403

junro’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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