Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
22 views

Show table contents in custom Form

I have a table named "Table1" in my Drupal, where I added fields by getting the inputs via form. The form is created by custom module. My next requirement was to again create another form, but this ...
-1
votes
0answers
21 views

How to retrieve Value fron db [on hold]

Here table & paging values are displaying without foreachloop. i need to display values using foreach loop $select ->fields('c',array('entity_id')) ...
0
votes
0answers
15 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 ...
0
votes
1answer
24 views

How do you render a table within a custom module in drupal?

I have a page on my Drupal module that is responsible for the input of goals to be completed by an admin. What I would like to happen is have all of the goals within the database table render below ...
-1
votes
2answers
50 views

Fields into table [closed]

I have a page having data in my fields. PLease help me in generating a table in the page with the field name as attributes and the field contents as the table contents. Please see me as beginner. Edit ...
2
votes
2answers
105 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
0answers
19 views

Why is my database table not being created with hook_schema?

I have a custom module called inventory. I disable the module, then uninstall, and finally reinstall. But, the database table inventory_defaults never shows up. Do you have any idea why the ...
0
votes
1answer
54 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
32 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
1answer
23 views

javasript invoking custom module to update user response

I have created Multiple choice questions in drupal . One node (page ) has one mcq . The answers are displayed by simple radio buttons and javascript . Now I am planing to give some dynamic behavior ...
0
votes
0answers
8 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
6 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
34 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
34 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
21 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
39 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
143 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
0answers
19 views

Views: Table with secondary rows

I'm trying to use the module Table with secondary rows since I thought that it sounded like a good option. What I wan't to do is something that looks like this: [CO][ROW1] [L1][ROW2] I just don't ...
0
votes
2answers
29 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
65 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
22 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 ...
-3
votes
3answers
100 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
32 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
96 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
24 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
0answers
43 views

Associating fields in a Drupal 7 views table

I'm attempting to make a content type to be displayed in a views table using Drupal 7. Each content of this type should have a title, associated groupings, and a description. Each associated grouping ...
0
votes
1answer
273 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
93 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 ...
0
votes
0answers
24 views

Views relationships causes duplicates

I have a view that shows a list of students and their associated classes (which is an entity reference multi value field). If you look in the image you see it comes out fine in the first view ...
2
votes
2answers
44 views

Is it possible to provide content editor ability to create sortable table?

I know how to create a sortable table using theme('table', $headers, $rows) but is it possible to create a functionality so that a content creator can create a sortable table inside a content. ...
0
votes
1answer
43 views

Add class that surrounds all tables (or any other node,field etc…) using preprocess template?

I have been able to find information on adding classes to tables and other items in my pages, however, I cannot find any information on wrapping the entire table for example in a div through the ...
0
votes
0answers
18 views

Why do I have 0 orphaned tables when I try to adopt tables?

I'm following the instructions here: https://drupal.org/node/1658784 in an attempt to create an event RSVP response listing based on webform submissions. I have the correct modules installed and ...
3
votes
2answers
526 views

How to add css class to a table created using views

I want to add a css class to a table which is created using views. I tried to override "views-view-table.php" in my custom theme but that doesn't seems to work. In "views-view-table.php" I replaced ...
0
votes
1answer
40 views

Submit handler is not called from theme function

I am actualy trying to build up a dragable table, but for some reason after implementing the theme_function, my submit handler is not longer getting called. This is what my Code actualy looks like: ...
0
votes
2answers
160 views

Trying to create a table with an uid field that auto-increments and is the primary key, but keep getting an error

I'm working on an .install file for my module in Drupal 7. I want to create two tables, one called tls_connect_floormap_images and one called tls_connect_floormap_coords. I'm not having any trouble ...
1
vote
1answer
261 views

Generate hyperlink on each row for html table that contains database data

I created Ajax based dependent dropdown list and based on the selected item I selected table from database and displayed html table as output. Now I want to generate hyperlink for each row of html ...
1
vote
1answer
290 views

How to add wrapping elements & classes to a table in a view?

I'm building a custom theme using bootstrap 3, I need responsive tables. Yes, I'm aware of responsive_tables but I didn't like it. I want to use bootstrap's native .table-responsive. for that I need ...
0
votes
1answer
56 views

Appending extra columns to Views table

Can anyone tell me if there's a way to use hook_form_alter, or some other approach, to insert an extra column with to a views generated table. I am trying to insert some buttons which will update ...
0
votes
1answer
20 views

How would I add a class with the same name as the header?

I'd like to add a class with the same name as the header, in order to keep similar header columns the same size. Basically, the code is generating multiple tables, some of which have the same header ...
0
votes
3answers
109 views

Table too wide for view

I created a view (from Views module) where I display my content in a table. The table contains about 22 columns: The table continue to the right of the screen (see screenshot above). How to fix ...
3
votes
4answers
503 views

Unix time stamp to date

I'm displaying a custom table in a view with Data & Schema module. One of my field in that table is created_date, int of unix timestamp. The view's page shown as table, how can I display it in a ...
0
votes
0answers
69 views

Why is the align attribute not working?

This is a custom module where I am building a table from the data read from a file. Here is the code; // Create Header array $header = array( array('data' => t('Col 1')), array('data' ...
0
votes
1answer
136 views

Views & Multi-dimensional table

I have the following configuration with my drupal website: Taxonomy vocabulary: Procedure Users Role: Doctor Node Type: Surgical Operation When I create a "Surgical Operation" node, I can select a ...
0
votes
0answers
52 views

Theme_table not returning all rows/cells on submit

I have created a theme table which creates, basically, a giant editable table, based on a database grab. I have gotten the table to the point now where it will properly display as a "form" and allow ...
0
votes
1answer
112 views

Sort a Table View by Fivestar Rating Fields

I'm currently using Fivestar-7.x-2.0-alpha2 and Views-7.x-3.7. And running Drupal 7. I am trying to create a table view that displays the information from fields on a certain node type. In this case, ...
0
votes
1answer
167 views

theme table from drupal 6 to drupal 7

I try to rewrite the node output and i don`t get it. This script produce only <table></table> without any content. $rows = array(); $cols = array(); $cols[] = '<div ...
0
votes
0answers
29 views

Is it possible sorting a table with non-database driven data?

I am creating tables, using data from services. This data is not stored in a db. But while I have been able to theme it using tableselect, I can't get sorting to work. Adding sort on fields, expects ...
4
votes
2answers
246 views

Views table with two columns

I have 3 fields. I've set them with view table, set their labels and they are displaying in this order: field1 label field2 label field3 label field1 value field2 value field3 value ...
0
votes
2answers
226 views

Disable sticky table headers for field collection?

I'm using a field collection on my node form and sticky table headers comes baked in with no way to disable it (that I can find, anyway). How do I disable sticky table headers? Preferably with ...
0
votes
1answer
114 views

Weekly Gym schedule / irregular recurring Events / D7

I've been searching and trying for weeks now, but could not find a way to properly display a gym's schedule. Here is the setup: atm there are 3 gym branches with their own unique schedule (but ...