Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author ka2

    (@ka2)

    Yes, it is possible.
    When you view the data list of a table using shortcode, you can specify a comma-delimited list of field names of the column that you do not want to see.
    For example,

    [cdbt-view table = "$ {table_name}" exclude_cols = "created, updated"]

    Hi
    I have tried to use …[cdbt-view table….exclude_cols=”created, updated”], but it only manages to hide the one of the columns and not both “created date”/”updated date”.
    If you are able to help with this issue, I have another question.
    If I want to hide “No.” column, what is the name that needs to added to the shortcode?

    Regards Simon

    Figured out how to “hide” the “No.”-column.
    I have not figured out how to make the “exclude_cols=”” hide more than just one column.
    I guess that […display_list_columnname=”false”] is another option, but I don’t know what the names for “ID” and “Created Date” are.

    So first half of the question still remains.

    Regards Simon

    Plugin Author ka2

    (@ka2)

    Thank you for the question.

    If you want to hide a column of “No.”, you need to specify the “false” to attribute of “display_list_num”.
    In this case, example shortcode as follows:

    [cdbt-view table=”…” display_list_num=”false” exclude_cols=”created,updated”]

    Please try.

    Thanks, that worked. Just missed the lack of space between after the “,”.
    What if I want to hide the “ID” column?
    Tried to add it to the exclude_cols=”created,updated,id” and with “ident”, “iden” but couldnt figure out what to use.

    Thanks for the help so far.

    Regards Simon

    Plugin Author ka2

    (@ka2)

    I’m glad to be the behavior of your hope.

    The column names of the ID column will be upper case alphabet.
    So, the shortcode is either of the following:

    [cdbt-view table=”…” display_list_num=”false” exclude_cols=”created,updated”]

    or

    [cdbt-view table=”…” exclude_cols=”ID,created,updated”]

    Please try also.

    Ahh, thanks alot!
    That helped and now I only have the columns I wanted to be displayed.
    Awesome and great/quick response time.

    *thumbs up*

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘hide column from page’ is closed to new replies.