Sonataadminbundle: Links of associated entities in List view should point to show action, right ?

Created on 23 Jan 2014  路  3Comments  路  Source: sonata-project/SonataAdminBundle

In the list view, in each record/row, the values of fields which are associated with other entities are promptly displayed as links. But the links are pointing to 'edit' action by default. Aren't they supposed to point to 'show' action by default ?

Anyway, how can I change them to point to 'show' action by default in the entire project ?

Most helpful comment

Why is this issue closed while it is not solved ?
Your link pointed on the addIndentifier for the current admin but when an entity embed like a child in listmapper, the only link is edit.

$listMapper->add('contact', null, array('route'=>array('name'=>'show')));

do not work and disable the link.

Could you explain me a way to make a working show link ?

Thanks !

All 3 comments

Why is this issue closed while it is not solved ?
Your link pointed on the addIndentifier for the current admin but when an entity embed like a child in listmapper, the only link is edit.

$listMapper->add('contact', null, array('route'=>array('name'=>'show')));

do not work and disable the link.

Could you explain me a way to make a working show link ?

Thanks !

Thanks, the solution worked fine!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jenyak picture jenyak  路  3Comments

tiagojsag picture tiagojsag  路  4Comments

SlimenTN picture SlimenTN  路  3Comments

thomas2411 picture thomas2411  路  4Comments

peter-gribanov picture peter-gribanov  路  3Comments