Questions relating to the html tag and/or other general concepts on the creation and management of tables or differing designs

learn more… | top users | synonyms

1
vote
1answer
19 views

How to make table-responsive in drupal views [duplicate]

I have created the views which renders table. I want to make table responsive without any contrib module. Is it possible?
0
votes
0answers
16 views

How to add multiple link in single column

I am new to drupal, and developing module to save car makes. I want to display that make in table format. Up to this i have completed. Now I have column of action where I want to display 2 links edit, ...
0
votes
0answers
5 views

Views data-label attribute for tables

How do I get data-label attributes for my table td? I would like to display a table like this http://codepen.io/anon/pen/QwPVNW so I would need Druapl to apply data label attributes. Is that possible ...
0
votes
1answer
32 views

Add a link into a drupal header and table

I am currently in the process of creating a free sports betting site, and I would be able to manage the matches. For this, I create a table with the data from my table, but I would add a column to ...
0
votes
1answer
19 views

Moving a number of fields into a table on D7 node form

I have a form with three field groups, arranged as horizontal tabs. On one of these tabs, I have twelve fields. For eight of these fields, I would like to arrange them inside of a table. These ...
0
votes
0answers
20 views

How to avoid Onclick event returning old output along with new output

Using db_select got the data(path to csv file) from database, bind it to table(themes) and returned table as output. Each row in the table as hyperlink named "Plot" as shown below. When user clicks ...
0
votes
1answer
46 views

join two tables(users and userpoints_total)

i'm working with drupal commerce , and I am currently developing a new module that displays the best customers that have a maximum points in a single block! I want to do a join between the two tables ...
0
votes
1answer
31 views

How to add a column to a table using hook_form_alter()

My client needed thumbnail images in the nodequeue list. I found a patch that worked beautifully (https://www.drupal.org/node/1806614#comment-6620974). Now the client wants this functionality on ...
0
votes
1answer
19 views

Table creation in install module returns error [closed]

I am trying to create a table using a custom module in the install file: function leave_tracker_schema() { $schema = array(); $schema['leave_balance'] = array( 'description' => t('The base ...
0
votes
0answers
17 views

Building a Views Table to display Commerce order information

I don't know whether this is possible to achieve in Views, or needs coding. I want to be able to display Drupal Commerce Orders in a table, one row per order (as in default list provided by Drupal ...
0
votes
2answers
28 views

Results table with form select for filtering

I have a page set up via a custom module, which contains some data rendered in a table, not using views. I didn't use views because it requires some various calculations that views calc couldn't do. ...
0
votes
0answers
23 views

Filter in $form table not working with pager?

I'm trying to add a filter to my table which has a pager. It does work but only for the 1st page. The pager keeps saying (for example: 4 pages) and it should be only 2 after adding the filter. My ...
0
votes
0answers
25 views

Pager not working when $form['table'] is called with AJAX

For a statistics page I let users select the right file in a select list. After that I generate a table with stats. This table also has a pager (that worked without the ajax part). Now I did ...
2
votes
0answers
55 views

How to get Drupal to stop overiding table tag background color [closed]

I'm still working in the default Bartik theme that came with Drupal core. I've put an HTML table inside the body area of a node to organize some information. It is just a vanilla HTML table: ...
0
votes
1answer
49 views

Delete old columns from table using hook update

I need to delete some old columns of existing table. How to do it using hook_update or Is there some other way to delete old columns in .install file . Thanks
1
vote
1answer
79 views

Update theme table using callback function in Ajax

I have two elements in my form: a select and a table element. Everytime onchange event is triggered on select element, I want to update the values in my table. I want to do query and change the values ...
1
vote
1answer
44 views

HTML table to Drupal table

How can I translate this to drupal table? http://www.bootply.com/sXmuAJQjO4 I know how to do simple tables and the header and first row I can do also with this code: $title = '<div class="panel ...
0
votes
0answers
63 views

How to use table drag between two tables

In the admin I need to enable drag and drop between two tables. I can trying adding jquery plugin to the page and write the script. But I want know how to do using drupal tabledrag. Here is the ...
0
votes
1answer
43 views

Colapse even rows of table

I have a table in my site that I build in my own module with theme table. I want to be able to have a sort of link in each even row (the ones with the color buttons) that allows me to collapse those ...
0
votes
1answer
57 views

How could I do a FULL OUTER JOIN in drupal?

How can I do this code in Drupal? I cannot find how this code is writing in Drupal. SELECT column_name(s) FROM table1 FULL OUTER JOIN table2 ON table1.column_name = table2.column_name;
1
vote
0answers
32 views

How to change (via custom code) the order in which the columns of a view result are rendered?

I have a table created in a Drupal 7 site, using Views (version 3). I need to change the columns' order depending on some custom code I have. I've tried looking into all views' hooks, but I couldn't ...
0
votes
1answer
51 views

Different prices in Shopping cart form and Shopping cart summary views in Commerce price table

I have a problem with price table module that I hope you can support me on this issue. As I have some products with different prices depending on item's quantity according to the commerce price table ...
0
votes
0answers
14 views

Error entries in Watchdog duplicated dozen and hundreds of times in Drupal 7

I have seen that the table watchdog in my MySQL database is growing enormously, and after TRUNCATE, I see that for each visit to a single page, it generates hundreds of inserts, and when seeing them, ...
0
votes
1answer
31 views

How can I fix the pages pager returns?

I have a number of "product nodes" that I'd like to return and display in a paged table. The original query is generated as follows: $productNodeQuery = db_select('node', 'n') ...
1
vote
2answers
109 views

How to update a views row class in real time clicking a Flag (ajax) link

Flag allows flag toggle link to use ajax, but that does not update the row class in real time. Only the field class is changed. Question is how to make the row to have a class when the flag link is ...
3
votes
1answer
40 views

Date math in View table

Sorry for any incorrect terminology; I'm new to Drupal so it's possible that I'll mess up the Drupal-specific vocabulary. I'm putting together a View->Page with a Table Format. I've got a field in ...
0
votes
0answers
50 views

Autocomplete not working with Better Exposed Filters + Views Table Filter

everyone. I'm using Drupal 7 with all modules updated to the last stable version. I have a table view in which each column can be filtered through an exposed filter. If I move the filters to the ...
0
votes
1answer
37 views

Appending multiple tables in drupal 7 module

I am appending three new tables in my custom module using hook_update, but it is throwing below error when I try to run update.php file PDOException: SQLSTATE[22003]: Numeric value out of range: ...
0
votes
0answers
24 views

Table with adding columns and rows

I want to create table with Tasks columns and Users rows. ------------------------------------ | | Task 1 | Task 2 | Task 3 | ------------------------------------ | User1 | 30% | 0 | ...
1
vote
0answers
40 views

Unable to Search Table Containing Webform Submissions Using Exposed Combined Fields Filter

I'm trying to add a Combined Fields Filter that users can come to my site and use to search through a Table View that is populated by user-created Webform submissions. Unfortunately, when I create ...
0
votes
1answer
80 views

Show result summary in theme table

Can we show the result summary like "Displaying X to Y of Z records" while using the "table" or "tableselect" themes? I mean just the thing we do in views header/footer using the "Global: Result ...
3
votes
2answers
3k views

How to rebuild registry table?

I've truncated registry table, because of the other problems, but now I have problem rebuilding the registry table based on the files listed in the database. I'm calling registry_update(), ...
0
votes
1answer
91 views

Design and combine multiple data tables [duplicate]

I want to create tables in drupal in the following manner- Table 1 for all registered user Table 2 for admin user For all registered users, Table 1 structure remains same where as the data in ...
1
vote
1answer
94 views

Format 'Table Of Files' Field Display For Commerce Product Display?

We have a Commerce Product Display for a Product Variation. If you're not familiar with Commerce Kickstart, it's basically just a form to add an item to a shopping cart. Each Product Display includes ...
0
votes
0answers
20 views

comparing old/new table values

I'm building a site which needs the ability to show a daily market values table, that is daily fed by the admins. The idea is to compare the previous value for each cell and depending on the ...
0
votes
0answers
16 views

How can I implement drupal to run through a table of values, preferably through rules?

I am trying to calculate the cost of custom printed t-shirts on my website. I have a drop down that asks how many colors the imprint will be, and then the quantity of shirts. Now I am trying to ...
0
votes
0answers
95 views

Drupal Views Table with Alternating Amount of Columns

I'm trying to make a view with alternating amount of columns. The first row should have only 1 column, while the second row needs 2 colums, third 1 column and fourth again 2 coulumns. The fields ...
0
votes
1answer
50 views

dynamically choose filters/fields in an aggregation table on a View

I need users to customize which kind of aggregation to apply to a table (view). Example: let´s choose counts of species X and Y in an area. This means apply two filters. I also want to ...
0
votes
1answer
29 views

Views images as label on a table [duplicate]

I am trying to create a table in views. My main problem is that I want to have a image in the label "CONTENT" so far I've managed to add a space to the field and a custom ...
0
votes
1answer
143 views

Form table pager

I'm building a module that displays a dynamic list of Content types that has some extension. I'm trying to add a Pager (like in Views). But all examples that I found uses db_select like: $query = ...
0
votes
2answers
1k views

How to display fetched data in the form of html table?

I have created a custom module & used below code to display data from Database. But I want to show that data in the form of html table. Please help. <?php function custom_table_menu(){ $items ...
0
votes
2answers
30 views

How to use tables that are claimed by other modules in drupal?

How to use tables that are claimed by other modules in drupal? I have a table in my database named "dictionary" used by a module for translation . now i want to use that table in views to show all ...
0
votes
1answer
137 views

Hide the image “file-icon”

I have a view in D7 that creates a table of meeting dates, agenda files, minutes, and other attachments which are all pdf's. I like the view so far but I don't want to see the image that is in the ...
0
votes
1answer
52 views

Compile files from URLs in table as zip

I've got a Views table with a column displaying links to files (images, pdf's etc.). I've got a button below the table that exports the entire table. I need another button that should start a .zip ...
-2
votes
3answers
364 views

Inserting data into database through Module? [closed]

I want to create custom table and insert data into it. Then I want to use view module to retrieve that data from that table So Is their any Module or any other methods to do that ?
0
votes
1answer
46 views

How to make a image url active in Views Table

I've got a table with a column for images. The field display is link (see screenshot). For some reason it doesn't display as an active link. Any ideas on how to accomplish that?
0
votes
3answers
259 views

Styling views table - Toogle row class on click [closed]

I have a view which is shown as table. I would like to add a css class to entire row, once the user has clicked somewhere on the row. With views i added '.baza-pregled-strank-row' class to each row. ...
0
votes
1answer
31 views

Cached variable remains after truncating cache table

I updated a row in the variables table to change the value of a variable. Then I truncated the cache table. But a call to variable_get() still returns the original value. I thought that the ...
0
votes
1answer
919 views

How to add class to specific TD in view table?

I have a view created /admin/structure/views and it is a table. How do I add a class (f.ex. "bgred") for a specific TD (f.ex "title") in this table without using JavaScript ? I mean I have some ...
0
votes
1answer
357 views

Finding data using MySQL queries in the Node tables

Outside of the Drupal system I am trying to get user data based off of the user table and export this information into a CSV. I'm not quite understanding how the Node table system works and where to ...