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

0
votes
0answers
12 views

How to create custom table list in drupal 8?

I am new to drupal 8. I am creating one custom module, where the requirement is like i need to display some couponlist in table format with table sorting by coupon created date.
0
votes
1answer
8 views

Is it possible to use theme_table on each key of array?

I know theme_table only accepts rows when $row=array(); I have an array like: Array( [0] => 'one', 1 => 'two', ) Is it possible to have table rows as 'one', 'two', etc... I mean, first row will be ...
0
votes
3answers
33 views

How to manage a field collection in a table?

I have a field collection called My links. My links contains these fields: Organization Name (Text Field) Description (Long text with summary) Link Url (Link Field) This is a pain to manage ...
1
vote
1answer
62 views

What are my options to visualise a views table with many fields grouped in columns?

I have a view with 30 fields. Displaying its results would look best using a table, but with fields grouped in columns. Default table in Views can't do this because there are to many fields. So ...
0
votes
1answer
19 views

Table Pager Rendered in an Ajax Callback Shows White Page

I have the callback function below that renders a table with a pager. Every page of the table is 20 rows. Below is the code: function myid_print_all_submitted_id_callback($form, &$form_state){ ...
1
vote
1answer
36 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
20 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
7 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
37 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
23 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
23 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
49 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
48 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
23 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
18 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
33 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
27 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
36 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
61 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
55 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
104 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
45 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
72 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
50 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
70 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
37 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
59 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
15 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
34 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') ...
3
votes
1answer
42 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
62 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
39 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
1answer
33 views

How can I create a table in which columns and rows get added dynamically?

I want to create table with Tasks as columns and Users as rows. Here is a sample of how such a table should look like: ------------------------------------ | | Task 1 | Task 2 | Task 3 | ...
1
vote
0answers
41 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
83 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
100 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
100 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
23 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
105 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
51 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
31 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
160 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
2k 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
153 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
55 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
397 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
49 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
279 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. ...