APYDataGridBundle
APYDataGridBundle copied to clipboard
Link on a Column
Hi, I work with a Vector Source, and I want to create a link on a specified column. How can I make that? I'm sure must be very easy. Have you any example?
A link to launch a search with the value of this column? Or just a simple link with the value of the column?
Sorry, You have already answered. I must only override the template. It's like this:
{% block grid_column_subject_cell %}<a href="{{ url("ticket_edit", {"ticketId": row.field('id')}) }}">{{ value }}{% endblock grid_column_subject_cell %}
Tks.
hi, i want a link in a specified column(id) to show the entity
Some news ?
Override your column:
{% block grid_%grid_id%_column_id_%column_id%_cell %}
{% set entity = row.entity %}
<a href="{{ path('my_route', {'id': entity.id }) }}">Show my entity</a>
{% endblock %}
Source: Cell rendering
Can we close this?