PetkoparaCrudGeneratorBundle icon indicating copy to clipboard operation
PetkoparaCrudGeneratorBundle copied to clipboard

Add the possibility of defining aliases for columns

Open mchojrin opened this issue 7 years ago • 2 comments

I'm seeing a column name in my index.html that I'd like to change for something more readable (view wise).

I believe it could be achieved by changing the parameters in vendor/petkopara/crud-generator-bundle/Resources/views/macros/th_sortable.html.twig:

If colName whas actually (perhaps optionally) an array it should be easy to do.

mchojrin avatar Mar 07 '17 23:03 mchojrin

@mchojrin did you find a way to change the name of a column?

RodolVelasco avatar Apr 29 '17 03:04 RodolVelasco

@RodolVelasco not really. I have to say though I haven't tried that hard either... I've been busy with other things. I guess the way to go would be to try that on a sandbox project and, if it works, create a pull request to submit the improvement...

mchojrin avatar Apr 30 '17 16:04 mchojrin