I would like to be able to display a field (yes or no value) in the listing manager as a column, similar to the active inactive column. How would I get this to show?
Thank You
Printable View
I would like to be able to display a field (yes or no value) in the listing manager as a column, similar to the active inactive column. How would I get this to show?
Thank You
Hello,
You can use as an example the field status. (please see admin/js/ext/rlGrid.js -> line 81-119)
Where do the dataIndex come from? ie what file has the data in it.
Brandon
Hello,
Take a look into the admin/tpl/controllers/listings.tpl
there is peace of code to create extJs grid object starting with
Code:Only registered members can view the code.
As Vladimir said you can easily do it through copying existing Status column and make appropriate changes
change something likeCode:Only registered members can view the code.
dataIndex comes from here, fields section (mapping), you have to add your field to this sectionCode:Only registered members can view the code.
also you have to add your field to the admin/controllers/listings.inc.phpCode:Only registered members can view the code.
find code and add your field to the list
Code:Only registered members can view the code.