Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By cjobes on
I am using ctools modal. This is the first time ever using this.
I need a table cell to act as the link instead of a textual link. In addition, this cell is hard coded, not created by the render array. Because of the way this table is being created it cannot use the render array.
The table and cells are created dynamically, and each cell would link to the same location, just passing different variables.
Can anyone tell me how I can set these cells to act as links for my modal? If you have examples to point me to that would help as well.
Thanks,
CJ
Comments
How are you generating the
How are you generating the current content of the cell? If it is not text, what is it?
Like this
What is not working?
What is not working?
Are you including the appropriate files from ctools?
I want the cell to be a link,
I want the cell to be a link, not the text. As it is I am placing a textual link into a cell.
Two points
Two points
a) I don't think you can make the td element a link.
b) Even if you could, since the cell (td) contains a link, it would mean you have a link inside a link (which I suspect would work oddly.
If you already have a textual link in the cell, why are you trying to make the cell a link?
Just expand the size of the
Just expand the size of the link to be the full size of the cell.
The only reason there is a
The only reason there is a textual link in the cell is because that is all I know how to do at this time. Hence the question on how to make the cell the link.
There would not be a textual link in the cell if the cell itself were a link. Only text. Doing so would be redundant and completely unnecessary. The cell acting as a link is to allow the user to have a better interface experience and not have to click on the text.
So make the link the full
So make the link the full size of the cell.
Trying to do so.
Trying to do so.
Problem is that it only fills left to right, not top and bottom.
What about adding height: 100
What about adding height: 100%;