Thank you Massimo. But that did not work.
I'm new to web2py so there could be something i don't understand.

Some suggestions for improvement (I use the bootstrap 3 version)
If <h2>Pluraltablename</h2> is part of the grid, then it should be within 
the grid div / grid classes so I can css it away easily.
Pluraltablename does not show up in translation file. So I can't translate 
it?
This "feature" is probably to good for itself? :-)
Can't find where this happens in the web2py source, somewhere in sqlhtml.py 
I think. (I'm also a bit new to Python)


My code is nothing special.
controller:
def plants():
    response.view = 'grid.html'
    response.title = 'Anlegg'
    db.plant._plural = 'My Plants'
    grid = SQLFORM.grid(db.plant)
    return locals()


view: grid.html
{{
top_content_enabled=False
left_sidebar_enabled=False
right_sidebar_enabled=False


}}
{{extend 'layout.html'}}


{{block head}}
¨{{end head}}




{{block top_content}}
{{end top_content}}


{{=grid}}




{{block left_sidebar}}
{{end}}


{{block right_sidebar}}
{{end}}




{{block page_js}}
{{end}}







kl. 15:18:55 UTC+2 søndag 31. august 2014 skrev Tom Øyvind Hogstad følgende:
>
> The default SQLFORM.grid shows the tablename as a title above the output 
> grid. I want to change or remove it.
>
>
> <https://lh4.googleusercontent.com/--J3J8QJg6_8/VAMgfwCx6dI/AAAAAAAAEFo/tO_q2khkdWg/s1600/Skjermbilde%2B2014-08-31%2Bkl.%2B15.16.08.png>
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to