Black Friday 30% off your first year on any annual plan DOCSDEAL See Plans →

Add your document library to Wild Apricot

Wild Apricot’s file storage gives your members a list of file links. You can keep your Wild Apricot site and add a searchable document library to any page with the Custom HTML gadget. Members can then search, filter, preview and download your documents without leaving the page.

Avant de commencer : You need a paid Wild Apricot plan. The free trial switches off custom code, so the Edit code button on the Custom HTML gadget stays greyed out until you upgrade. You also need to add our domain to your Wild Apricot JavaScript whitelist, which is covered in Step 2. Without it, Wild Apricot blocks the library.

A document library with search, tag and file type filters on a Member Resources page of a Wild Apricot website

Étape 1 : copier votre code d’intégration

Log in to Document Library Pro et cliquez sur Publier la bibliothèque, puis cliquez sur Copier le code. If you’ve built more than one library, go to the Bibliothèques screen and copy the embed code for your Wild Apricot library from there.

Your code has two lines, like the example below, with your own library address in place of your-library:

<iframe src="https://your-library.documentlibrary.app/?dlp_embed=1" title="Document library" style="display:block;width:100%;border:0;height:600px;" loading="lazy"></iframe>
<script src="https://your-library.documentlibrary.app/?dlp_embed_resize=1" async></script>

Step 2: Add our domain to your JavaScript whitelist

Wild Apricot only loads code and embedded pages from domains on its whitelist. Our domain isn’t on its default list, so you need to add it once for the whole site.

  1. In your Wild Apricot admin, go to Website → Settings.
  2. sous Website security, cliquez sur JavaScript whitelist.
  3. Dans le Custom whitelisted domains section, type *.documentlibrary.app dans la Domain name box.
  4. Cliquez sur Add domain, then save the page.

If your library uses a custom domain, such as docs.yourassociation.org, add that domain as well.

Step 3: Create a page for your library

  1. Aller à Website → Site pages et cliquez sur Add page.
  2. Dans Page settings, give the page a name, such as Member Resources.
  3. sous Position in menu, choose where the page appears in your menu.
  4. sous Access level, choisissez Public for an open library. For a members-only library, choose Restricted and tick the membership levels that can see it.
Wild Apricot page settings for a Member Resources page with the access level set to Restricted and all membership levels ticked

Step 4: Add a Custom HTML gadget

  1. Cliquez sur Gadgets at the top of the left panel.
  2. Faites glisser l'élément Custom HTML gadget from the Custom content section onto the page, where it says Drop gadget or layout here.
  3. Click the gadget to open its settings, then click Edit code.
  4. Delete the placeholder text and paste the embed code you copied in Step 1. Paste both lines.
  5. Save the code, then click Enregistrer at the top left of the page editor.
The Wild Apricot page editor with the Custom HTML gadget in the Gadgets panel and a new Custom HTML gadget on the page

Step 5: Check the library on your Wild Apricot site

Cliquez sur Public view and open your new page. The search box, filters and documents should all appear, and the page grows to fit the library. When you add or change documents in Document Library Pro, the page updates straight away, so you don’t need to edit the gadget again.

Qui peut voir la bibliothèque

If you set the page to Restricted, Wild Apricot only shows it to members who are logged in at the levels you ticked. The library address inside your embed code only works inside an embed like this one. If someone opens that address in a browser tab, they won’t see the library.

The address on its own doesn’t fully protect your documents. If your association shares confidential papers, such as board minutes or salary surveys, add a password to your library as well. You can also stop people opening files from a copied link with the Bloquer les liens directs vers les fichiers setting. You’ll find both options under Contrôle d'accès avec l'offre Advanced.

If the library doesn’t appear

Grey box with a broken page icon

Wild Apricot is blocking the library. Check that *.documentlibrary.app is in your Custom whitelisted domains, as in Step 2.

Edit code is greyed out

Your Wild Apricot account is still on the free trial. Upgrade to a paid plan to add custom code.

The page shows Insert your HTML code here

The gadget is still empty. Open it again, click Edit code and paste the embed code.

Free setup for your Wild Apricot library

Our team can build your library for you at no cost. To ask for this, fill in the form on our service de configuration gratuit .

Plus d’articles dans Publishing and embedding

Prêt à réunir vos documents dans une bibliothèque avec recherche ?

Configurez votre première bibliothèque en quelques minutes - en tant que plugin WordPress, intégrée sur n'importe quel site, ou une bibliothèque hébergée par vos soins.

Commencer gratuitement

Essai gratuit 14 jours Résiliation possible