In a view that uses several views php fileds, theming becmes very difficult to understand and maintain because the view php fields are all named "PHP_1", "PHP_2", "PHP_3" etc.

Themeing and maintainability would be enhanced greatly if a custom machine name could be assigned for each of the views php fields.

This feature would involve a change to the field addition form to have a form element that allows a custom machine name.

It would make theming much easier.

My particular use case was a table where I required a multi-row header. In order to do this, I needed a template where the views $header array was parsed based on the field names to put the table headers in the correct place. For the php fields I have "PHP_1" etc - which is not meaningful and difficult to maintain compared to if I could assign a name like "Item Status" to the column.

I'm not familliar enough with the views api to offer up a patch which is why this is coming as a feature request.

Comments

letapjar’s picture

Issue summary: View changes
letapjar’s picture

Issue summary: View changes
Liam Morland’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev