• Resolved hixmyrick

    (@hixmyrick)


    I have two questions:

    1) I am using the Custom Fields tab and mapping an existing custom field created by another plugin. The only option for Field Title is the custom field name in the list: isc_image_source_own. Is it possible to give the column a “friendly” name, i.e., Own, in the MLA table list view, bulk edit dialog, etc?

    2) The data for this field is either checked (1) or unchecked (0/null). Is it possible to make this column data show up as a checkbox instead of “1” or blank?

    Apologies if this has been asked/answered previously.

    https://www.ads-software.com/plugins/media-library-assistant/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author David Lingren

    (@dglingren)

    Thank you for your questions, which come at an opportune time. The most recent MLA version (1.95) added a number of hooks to the Media/Assistant submenu table, and you can use a couple of these new hooks to accomplish both of your goals.

    You can read all about the hooks in the “Media/Assistant Submenu Actions and Filters (Hooks)” section of the Settings/Media Library Assistant Documentation tab. Scroll down to the last link in the “jump to:” list and click on the link.

    It will be easy to create a table column along the lines you need. Updating the Bulk Edit and Quick Edit areas is more challenging because these are supported by JavaScript in the browser. However, I can give you code for a small custom plugin that will do the job if that is an acceptable solution.

    If you would like to proceed, give me your contact information so I can send you a test version of the custom plugin. When we’re finished I will post the results here for everyone to see. You can use the Contact Us page at our web site:

    Fair Trade Judaica/Contact Us

    Thanks for an interesting question. I look forward to working with you on a solution that fits your application.

    Thread Starter hixmyrick

    (@hixmyrick)

    Thank you David. The plugin is very good and the documentation you have provided is extensive. I had hoped I could figure this out on my own, but my coding skills are not quite up to the challenge. I have sent a message via the contact page on Fair Trade Judaica and look forward to trying the custom plugin.

    Plugin Author David Lingren

    (@dglingren)

    Thank you for following up offline and working with me on a small custom plugin to MLA’s handling of the custom fields used by:

    Image Source Control

    I have released MLA version 2.00, which includes the custom plugin in the Examples directory:

    /media-library-assistant/examples/mla-image-source-control-example.php.txt

    I am marking this topic resolved, but please update it or contact me if you have any problems with the custom plugin. Thank you for inspiring a great example of using MLA’s Media/Assistant submenu hooks.

    Plugin Author David Lingren

    (@dglingren)

    I have uploaded a new MLA Development Version which contains an update to the /media-library-assistant/examples/mla-image-source-control-example.php.txt example plugin.

    Changes made in MLA v2.01 invalidated the older version of this example plugin, so you will need to use the new version if you still want the custom handling for the ISC custom fields. The new example plugin also requires the MLA Development Version, which has new hooks used by the example.

    I regret any inconvenience the update may have caused you. Thanks for your understanding.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Friendly Column Names’ is closed to new replies.