Have checkbox results display as a list

Discussion in 'v4.2.X Feature Requests' started by freeze2, Oct 3, 2012.

  1. freeze2 Super Moderator

    I would like very much to see the results of an Extra Field checkbox display in <li>list format</li> in both the user admin as well as the final site output. This way it can be styled with ease without the need for plugins or modifying the core files.

    The Extra Fields plugin in stock form outputs the results as below:

    result1|result2|result3|result4|

    Not very appealing to to the eye.

    With the help of Mike and a plugin, I have been able to get the results to show as follows:

    <ul>
    <li>result1</li>
    <li>result2</li>
    <li>result3</li>
    <li>result4</li>
    </ul>

    For the user admin to show in list format, I was able to achieve the results by making some changes in the following file:

    includes/classes/kernel/Listings.php

    *************************

    I think this would be a great core update and allow easy styling of the Extra Field checkbox feature
  2. Mike-N-Tosh Owner

    Actually, my custom mnt_extra_fields plugin would be a much better feature. It is a very "Smart" Smarty plugin that offers several additional items other than just allowing a checkbox field to be output as a list. It also gets the field name as well as the value. It doesn't display anything if the value doesn't exist. It will output in several different forms, like a list for checkbox fields, in a table row, in a paragraph too. In addition, it overcomes the bug when the seller is in checkout and "previews" the listing where the default plugin breaks on a checkout preview, because the listing id is different than in the standard viewlisting page.
  3. freeze2 Super Moderator

    Hmmm...that looks interesting...I may be interested to check that out in the not-too-distant future

Share This Page