• Resolved vthierry

    (@vthierry)


    Dear George,
    Add Meta Tags is the best meta-data plugin we have evaluated, however to ease the input of https://en.wikipedia.org/wiki/Learning_object_metadata LOM tags (or additionnal Dublin Core tags) we need our colleagues to use a smart interface
    with predefined li>name:<input/>/li>
    fields rater than a raw <meta name=”name” content=”value” /> HTML structure in the Full meta tags: window. The idea is to
    – add in settings a list of tag name and one-line-description
    – generating a menu in the metadata post/article input window
    – allowing to create the related XHTML elements
    We can make such development.
    – Would this be an helpful extension ofyour plugin (= would you wish to integrate it when validated) ?
    – Do you have any advice / counter-proposal ?
    – Shall we simply fork your github repository ?
    Sincerely

    https://www.ads-software.com/plugins/add-meta-tags/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author George Notaras

    (@gnotaras)

    Hello vthierry,

    It is possible to create an add-on plugin for Add-Meta-Tags that implements the functionality you need without modifying the Add-Meta-Tags source.

    The plugin should do the following:

    1. Add the required metaboxes in the post editing screen so that the author can enter the value of each LOM tag (example or by using a plugin like ‘Advanced Custom Fields’ or other similar).
    2. Generate the LOM metatags.
    3. Add a filtering function that uses the Add-Meta-Tags amt_dublin_core_metadata_head filter to append the LOM meta tags to the Dublin Core metatags generated by Add-Meta-Tags. Example function:

    function append_lom_tags_to_dc( $metatags ) {
        // $metatags: array containing the dublin Core metatags generated by Add-Meta-Tags
        // Append LOM tags here...
        return $metatags;
    }
    add_filter( 'amt_dublin_core_metadata_head', 'append_lom_tags_to_dc', 10, 1 );

    I hope this helps. If you need any clarification, please feel free to post your questions.

    George

    Thread Starter vthierry

    (@vthierry)

    YES !
    This is exactly what was needed and the 1st tests seem ok : huge thanks.
    Sinerely

    Thread Starter vthierry

    (@vthierry)

    More precisely, here is the construct that works

    function append_lom_tags_to_dc( $metatags ) {
    // $metatags: array containing the dublin Core metatags generated by Add-Meta-Tags
    // Adds additional fields, e.g.
    $metatags[‘lom:blabla’] = ‘<meta name=”lom:blabla” content=”‘.get_field(‘lom:blabla’, false, false).'”/>’;
    return $metatags;
    }
    add_filter( ‘amt_dublin_core_metadata_head’, ‘append_lom_tags_to_dc’, 10, 1 );

    Plugin Author George Notaras

    (@gnotaras)

    Thanks for the code snippet. Much appreciated.

    I am marking this topic as resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘smart support of LOM:* tags’ is closed to new replies.