Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7167 Lượt xem

I'm trying to add rows to an existing website table, but I can seem to figure out how to do that?  I'm sorry if this is super basic, but I haven't been able to find out how to do this


Ảnh đại diện
Huỷ bỏ

Do you want to add a row in an existing template (server-side / qweb) when the page is displayed, or do you want to add a row client-side after the page is loaded (javascript/jQuery) ?

Tác giả Câu trả lời hay nhất

Actually, I was trying to add a row to an HTML table through the WYSIWYG editor; but I figured it out.  You have to move your cursor to the bottom, right cell and hit the enter key. Not terribly intuitive, but it works.

Ảnh đại diện
Huỷ bỏ

If you want to add a row somewhere in between and not just at the end, you can edit the view of the webpage. Go to "Website > Configuration > Pages" and click on the page you want to change. Then click on the view. Here you can edit the source code of the page, including adding table rows. Be cautious, though, as this is not just HTML. Odoo uses QWeb as template engine and you might want to learn about this first.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 15
4268
2
thg 12 23
4788
2
thg 12 21
5116
4
thg 5 25
2134
2
thg 1 25
2070