• Resolved jeynon

    (@jeynon)


    Hi all.
    So I am using the Network Shared Library plugin which allows you to view other media libraries across the multisites. We are a large public institution and want to use the plugin to allow people to pull commonly used docs from one common library so we don’t have duplication.
    Once I have added all the docs to the common library they can be imported in any page or post across the sites. What I would like to do is find a way to still utilize the MLA shortcodes when I look to output these docs across the sites.
    Example: We are going to load 50 common docs. One group of those docs might be about Promotion and Tenure on campus. I could easily make this grouping appear as a bulleted list on the site that they come from, but NOT when they are across sites. Is there any way that you can define WHICH SITE ID I want to pull the media from? That would be outstanding!

Viewing 14 replies - 16 through 29 (of 29 total)
  • Plugin Author David Lingren

    (@dglingren)

    I have uploaded a new MLA Development Version dated 20170905 that adds sorting and pagination to the “MLA Multisite Extensions” example plugin. It would be a great help if you can install the Development Version and example plugin and do some testing of your own.

    The new version extends most of the sorting and pagination features to the “multiple site” [mla_gallery] shortcode. This version also changes the parameter name from blog_id to site_id. I decided on this change after reading the multisite roadmap document posted by the WordPress core team. I regret any inconvenience caused by this change.

    Any help you can give me with testing this new plugin would be much appreciated. I do not plan any further development until I hear back from you. Thanks again for your help.

    Thread Starter jeynon

    (@jeynon)

    Thanks! The website moved servers so we are rebuilding the multisite on a new server. I will get to testing when the new build is stable. Thanks David! This is great!

    Plugin Author David Lingren

    (@dglingren)

    I have released MLA version 2.61, which contains the “MLA Multisite Extensions” example plugin. I hope you have found it useful in your application.

    I am marking this topic resolved, but please update it if you have any problems or further questions regarding the example plugin. Thanks for your interest in MLA and for inspiring a useful example plugin.

    Thread Starter jeynon

    (@jeynon)

    Hey David… I just got back from a month long leave from the computer so I am just now getting back to this! Where do I install the Dev copy for testing?
    Thanks!

    Plugin Author David Lingren

    (@dglingren)

    Welcome back! Hope you enjoyed your break.

    The current MLA v2.62 contains the latest version of the example plugin. You can go to the Settings/Media Library Assistant Documentation tab, click the “Example Plugins” button and install or update the “MLA Multisite Extensions” example plugin from there.

    I am also on the road, but I will be back on 10/26 and I can give you more help after that if you have problems or further questions regarding the updates.

    Thread Starter jeynon

    (@jeynon)

    https://in-peds-devwp01.pediatrics.iupui.edu/faculty/test-page/
    Ok so we have our multisite up and moving. I have this page showing 13 docs of all types that have an att cat=”mentoring”. I have one more file (A picture of will smith) also marked with att cat=”mentoring” in Site_ID=1 (https://in-peds-devwp01.pediatrics.iupui.edu/wp-content/uploads/2017/08/WillSmith.jpg)
    I have tried the shortcode:
    [mla_gallery post_mime_type=all attachment_category=mentoring link=file itemtag=”ul” icontag=”li” parent=”all” site_id=”all”]
    This will indeed show me all 13 that I have on the parent site but I do not see Will Smith! Thoughts?

    Plugin Author David Lingren

    (@dglingren)

    I am home and ready to investigate this issue. I do not have access to the links you gave in your post but I constructed some tests on my system and I have reproduced the problem.

    On my system, site_id=1 is the “parent” site, and the child sites start with 2. Is your system different? Also, are you running the shortcode from the parent site, the child site or somewhere else?

    Thanks for your patience and any additional information you can give me.

    Plugin Author David Lingren

    (@dglingren)

    I have found and fixed a defect in the example plugin that affected taxonomy parameters such as your attachment_category=mentoring example. You can get the fix in the MLA Development Version dated 20171026 by following my earlier instructions:

    Get the Development Version

    Be sure to update your copy of the example plugin by finding the “MLA Multisite Extensions” example plugin and clicking the “Update” rollover action. Let me know if the update improves your results.

    Thread Starter jeynon

    (@jeynon)

    Thanks David. Will look at getting it installed this afternoon. Security scan happening on the site this morning. Question: will the Example plugin install even if we have no FTP access via WP? I don’t know if that is reaching back to your server or installing something from the original install of the main plugin…

    Plugin Author David Lingren

    (@dglingren)

    Good question. The example plugins are included in the /examples subdirectory of the core MLA files. Once you have installed the MLA Development Version (or any production version) all of the examples are on your server and require no further network activity.

    Good luck with the security scan and your continued MLA testing.

    Thread Starter jeynon

    (@jeynon)

    David. When I go to install the example an FTP login needed. I am not allowed to do that. I see the php file I need in your example folder. What do I need to do to activate it? Make it an include in the functions.php? On install does it move it somewhere? It just looks like an extension to me so putting it as an include in the functions seems to make sense. Just trying to find a way around this FTP thing

    Plugin Author David Lingren

    (@dglingren)

    Thanks for the update. You can install or update example plugins from within the MLA admin screens; no FTP access required.

    To install the example plugin, navigate to the Settings/Media library Assistant Documentation tab and click the “Example Plugins” button. You will see a table that lists all the example plugins and gives you a “one-click” action for installing them. Type “multisite” in the text box and click “Search Plugins” to filter the table.
    You are looking for “MLA Multisite Extensions” example plugin. Find that plugin and hover over the title in the left-most column. Click the “Install” or “update” rollover action, then go to the WordPress Plugins/Installed Plugins submenu and activate it, if required, as you would any other plugin.

    Let me know if you have any trouble with the process.

    Thread Starter jeynon

    (@jeynon)

    We follow yoru directions and still got the old FTP block error.
    We simply make an include once to the php file in our include and it worked!
    We need to follow up with support here at the university about the no FTP thing.

    Plugin Author David Lingren

    (@dglingren)

    Thanks for your report; I regret the trouble you’re having with the MLA install/update process.

    1. Were you installing or updating?
    2. If updating, did you try deactivating and deleting the old version, then installing it from scratch?

    Obviously, I am interested in anything I can do to avoid this problem for you and other MLA users. Any further information you can provide will be very helpful; thanks.

    I am not sure the “include once” approach is reliable. Did you make sure there is no earlier version of the plugin installed?

    The best alternative to the MLA process is to make a ZIP archive of the example plugin and then use the WordPress admin Plugins/Add New (Upload Plugin) process to install it.

    If I get your contact information I can give you a ZIP archive of the example plugin. If you’d like to try that you can use the Contact Us page at our web site:

    Fair Trade Judaica/Contact Us

    Thanks for your patience and your help. I look forward to hearing your testing progress.

Viewing 14 replies - 16 through 29 (of 29 total)
  • The topic ‘Using Shortcodes to retrieve media from another sites media library’ is closed to new replies.