Skip to main content
MindTouch Success Center

Use a media repository

Applies to:
MindTouch (current)
Role required:
Editor
A media repository is an optional method for image and file management.

The media repository approach allows you to reuse files or images throughout your site and update reused media in one location.

Set up a media repository

There are two ways to set up a media repository:

  • Create a media repository page - works on any MindTouch site.
  • Import a media repository page - works for some older MindTouch sites created before November 2017 that show Options > Import here in the MindTouch toolbar.

Option 1: Create a media repository page

  1. Navigate to the desired Category level location for your media repository.
  2. From the MindTouch toolbar, click New > Category, select the Create live radio button, and click Create.
  3. In the Page Title field, enter Media Repository.
  4. In the top right corner of the first DekiScript container ("Description: Search field"), click the X to remove it from the page.
  5.  On a new empty line, click Style > CSS from the editor toolbar and enter the following code:
    div#pageText .mt-category-container.mt-subpage-listings-container {
     display:none;
    }
    .columbia-article-topic-category .elm-attachments{
        display:block !important;
    }
    
  6. On a new empty line, click Style > DekiScript from the editor toolbar and enter the following code:
    if(#page.subpages > 0){
        "The following is a list of sub-pages within this Media Repository:";
        wiki.tree();
    }


    Media-Repository-Code.png
  7. Click Save.
  8. Set the Page Privacy to Semi-Private
    1. From the MindTouch toolbar on your media repository page, click Options > Restrict access and select Semi-Private.
    2. Add any users or groups that will need access to the media repository to manage files
    3. If using subpages in your media repository Category, select Apply changes to all to subpages and Overwrite all permissions on subpages to the settings on this page, and click Save Settings.

Option 2: Import a media repository page

To confirm you can use the import method, check the MindTouch toolbar for Options > Import here. If you do not see the Import here option, follow the steps above to create a media repository page instead.

  1. Download the media repository MTARC file.
  2. Navigate to the desired Category level location for your media repository.
  3. From the MindTouch toolbar, click Options > Import here.
  4. Find your media repository MTARC and select it to import.
  5. Set the Page Privacy to Semi-Private
    1. From the MindTouch toolbar on your media repository page, click Options > Restrict access and select Semi-Private.
    2. Add any users or groups that will need access to the media repository to manage files
    3. If using subpages in your media repository Category, select Apply changes to all to subpages and Overwrite all permissions on subpages to the settings on this page, and click Save Settings.

Media repository tips

  • Although a media repository approach allows you update reused media in one location, there is no mechanism to automatically see where files or images are resued throughout your site. 
  • Consider adding a media repository page to top-level Category pages to organize media for each Category.
  • MindTouch pages, including media repository pages, can only display up to 1,000 file attachments. Attachment properties can load slowly if there are too many files attached to one page. To avoid attachment limit and slow loading for properties, create sub-pages within a media repository limit the number of attachments on each page.

Add files from media repository to your pages

  1. Open the page into which you want to insert a file or image in Edit mode.
  2. In the editor toolbar, click the Image icon.
  3. Browse to your media repository or search by the file's name.
  4. Click Save image.
  • Was this article helpful?