+ Reply to Thread
Results 1 to 4 of 4

Thread: Show Field as Column in Listing Manager

  1. #1

    Show Field as Column in Listing Manager

    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

  2. #2
    Flynax developer
    Join Date
    Jun 2010
    Posts
    239
    Hello,

    You can use as an example the field status. (please see admin/js/ext/rlGrid.js -> line 81-119)

  3. #3
    Where do the dataIndex come from? ie what file has the data in it.

    Brandon

  4. #4
    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

    Code:
    Only registered members can view the code.
    change something like



    Code:
    Only registered members can view the code.
    dataIndex comes from here, fields section (mapping), you have to add your field to this section

    Code:
    Only registered members can view the code.
    also you have to add your field to the admin/controllers/listings.inc.php
    find code and add your field to the list
    Code:
    Only registered members can view the code.

+ Reply to Thread