The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
14 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
10 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 ...
0
votes
2answers
47 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
14 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
36 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
60 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
70 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
23 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
17 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
44 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 ...
2
votes
4answers
108 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
26 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
62 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
28 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
0answers
51 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
97 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
27 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 ...
3
votes
2answers
169 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
1answer
79 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
84 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 ...
3
votes
2answers
553 views

Show/Hide Column in Views Table

Is there any way I can show/hide entire column in Views Table? Exclude from Display completely excludes the column which is not possible to show again, so, I am using Views Dynamic Fields Module to ...
0
votes
0answers
11 views

How can I include external databases within views in Drupal 7 [duplicate]

I have read several tutorials that request you to make a base for the views hook in a custom module, but I either have to hand code them or create them in Drupal 6 with the TW module and then export ...
1
vote
0answers
55 views

Search a URL list, return JSON values into a dynamically generated table

I am looking for a Drupal Service or a Module (or a link to a working example) of this arrangement: There's a Search form. Placing and submitting the search will make a REST call for certain values ...
3
votes
6answers
830 views

Combining two columns in Views table

I keep on having different requirements and I always get stuck in Views. This time the requirement is to combine the two columns/fields of a views table but display it in different rows. The eg: ...
0
votes
0answers
81 views

Views Table - Show Taxonomy Term with Specific Depth

I currently have a view that show as table with a list of stores and information about the store (address, phone number, etc.). Each store is a node that also has a field containing a taxonomy term ...
0
votes
0answers
177 views

Dynamic query with pager not working with filter values

I have a dynamic table with a form and a pager. Table and form filters work fine. But the pager ALWAYS retrieves ALL the records. It does not consider the "post" value of the form filter. function ...
0
votes
0answers
189 views

D7 FAPI unexpected behaviour when combining AJAX, checkbox and a table theme

I have a table filled with checkboxes in a form made according to: http://passingcuriosity.com/2011/drupal-7-forms-tables/ The form also has a autocomplete textfield with an ajax button, which allows ...
3
votes
1answer
112 views

Views fields as Columns in table

I have a content type called Pets, which only has title and description. In Pets there are only 3 data (set by Admin) Cats, Dogs and Mouse. User can select only from these data and cannot add more ...
3
votes
1answer
47 views

Override and add a link to a themed table

Using a custom module, I'm trying to add "Schedule" links to each of the rows of the table on node/%nid/revisions, but can't seem to figure it out. Do I have to override the entire function ...
1
vote
1answer
43 views

Drupal Module for arranging Nodes of special type into a table||chart

I'm trying to map Nodes of special Types on the basis of their field datas in a table or a chart. The table should look like this:Table Example Explanation: Table Header and first row are the datas ...
1
vote
1answer
49 views

Content Type with Tabular Data to be Input

I'm building a content type that is going to require tabular data to be input. Here's a mockup of what the table should look like: Rows 1 and 2 are fixed headers, 3-6 are data. I am at a total loss ...
0
votes
1answer
36 views

How to use the TableForm module?

How does one use the TableForm module? There doesn't seem to be any documentation and I can't seem to find any reference to it anywhere in my D7 site after I've enabled it (and the included example ...
-1
votes
1answer
45 views

How can I tidy up an auto increment field in a table from within a module?

So that a table like this (the 'id' field being auto incrementing): id title 1 foo 3 bar 7 fee becomes: id title 1 foo 2 bar 3 fee Is there a function, like serial_field_tidy or something? ...
2
votes
2answers
49 views

Table Description Documentation

Is there a document that briefly describes Drupal 7 tables, their general use, common issues, growth patterns, and the effect of truncating? I'm not understand why my database grew from 11MB last ...
1
vote
2answers
484 views

Creating an editable table which can be updated

I have a site with about 150 users. I am going to implement a system whereby things that they do in the real world (it's a fitness company), such as attending sessions, introducing new customers etc ...
1
vote
1answer
65 views

Please tell me what drupal table the block php visibilities settings is stored at

Within a block I have configured under the "Visibility settings" and "Show block on specific pages" I have put in PHP code that determines where this block is displayed within a page or not via a ...
0
votes
0answers
133 views

Ubercart - How to rearrange table columns in Admin Order page?

The current order of the columns in order table admin/store/orders/xx : Qty | Description | SKU | Cost | Price | Total I would like to rearrange the columns in this order: Qty | SKU | Description | ...
1
vote
1answer
42 views

author posts in views

I have a content type and sort theme in a page with views as a table And now, I want when users go to this page, they can see just the posts that the made them. see just post made by their-self. what ...
0
votes
0answers
63 views

How can I add a variable to a table?

I've run into a problem trying to add a link to the header area of a table, and I can't find an answer after an extensive web search. The table I want to alter is generated by the Classifieds module. ...
2
votes
1answer
194 views

When reimplementing Drupal.tableDrag.prototype.dropRow(), how do I access classes of would-be parent?

Using code below, I can access classes of a row that's being dropped: Drupal.tableDrag.prototype._dropRow = Drupal.tableDrag.prototype.dropRow; Drupal.tableDrag.prototype.dropRow = function(event, ...
2
votes
0answers
59 views

In tabledrag form, how to prevent certain elements from having children?

I want to use tabledrag to manage 2 kinds of elements. Let's call them branches and leaves. Branch can be parent to both branches and leaves. Leaf cannot be parent to anything. A support for class ...
0
votes
1answer
157 views

Add field to an entity_view for dispaly in a tapir table in ubercart

In the simplest terms I am trying to add a 'vendor' column to the order view table in Ubercart which will display the author of each line item product. Below is the table of interest. I have hacked ...
0
votes
1answer
84 views

Adding checkbox in admin table display

I'm trying to add a checkbox column in the admin table part of my module. The idea is to add checkboxes at the beginning of each row, like in the normal admin content management form. My table is ...
1
vote
1answer
152 views

Is the database table “field_revision_body” used in a core module or can I just drop it?

I recently installed the revisioning module and now im cleaning it up and uninstalling it, but it seem to have created a bunch of field_revision_field_ tables in my database. Since it creates another ...
0
votes
1answer
263 views

What is the actions table for and can I delete orphaned actions in drupal 7?

i just ran drush cc all -v and it tells me i have orphaned actions. I'm curious to what the actions table is for in drupal 7 and if its safe to just drop all the data in the actions table.
1
vote
2answers
134 views

content type or normal er table, that is the question

I was wondering, when should a drupal developer use normal er table instead a new content type? Is it never? When expected node entries reaches 100 000? i googled it and i didn't find any good answer. ...
2
votes
1answer
171 views

theme_table drupal 7 issue - operator not supported for strings in theme.inc

Although i have found the fix of this problem, but i thought of sharing with others. Problem is if you mention $rows & theme_table like following: $row[] = array('data' => ...
0
votes
0answers
36 views

Customized Table Format In Drupal 7 [duplicate]

Is there is any way to create a customized table in drupal 7, I want a table where user can enter the data and then submit the form and the first column of the table contains the label while rest of ...
0
votes
1answer
508 views

Table format in webforms

I have created a customized form using the Webform module in Drupal 7, but I want to have a table with rows n columns one part of this form. I downloaded the Webform Table Element module, but there ...
0
votes
1answer
332 views

How can I add a class with table theme function to a table header row?

How can I apply a class to the <tr> of some table headers using the table theme function? So, I get this: <tr class='my-class'><th>foo</th><th>bar</th></tr> ...