Product Support

Custom Template Folder

Provides an update-safe location for all your Participants Database custom templates. Version 2 adds Multisite support.

Product Setup

This plugin creates a location for your Participants Database custom templates in the content directory of your WordPress site. Typically, the location will be:

wp-content/participants-database-templates/

In some cases, the content directory looks different than that, this add-on will place the participants-database-templates folder in whatever the designated content directory is for your WordPress install. Ask your developer or hosting tech support if you don’t know where that is.

For multisite installs, each blog will have it’s own folder within that folder for custom templates.
This plugin is not compatible with the original Custom Templates Folder plugin. See below for instructions if you were using the version 0.3 plugin.

Multisite Support

When using this plugin with multisite, each site will have it’s own directory for templates. Each multisite directory is named using the ID of the blog…for instance:

wp-content/participants-database-templates/blog-1/
wp-content/participants-database-templates/blog-2/

and so forth…

Use with Other Participants Database Add-Ons

Some add-ons offered here use their own templates, for example Field Group Tabs or Member Payments. The Custom Templates Folder add-on works with all these add-ons as well. The main difference is where you get the default template to start with when creating your own custom templates: each add-on that uses special templates will have it’s default templates in a folder named “templates” in the plugin folder. See the add-on’s instructions for the details.

Migrating from version 0.3 to version 2

If you were using the original (version 0.3) of the Custom Template Folder add-on for Participants Database, you must make some changes before using this one. Nothing bad will happen if you don’t, it just won’t work as expected.

  1. This will temporarily interrupt proper display of your Participants Database custom templates.
  2. Install (do not activate) the new Custom Template Folder 2 plugin
  3. Deactivate (but do not delete) the original Custom Template Folder (version 0.3) plugin
  4. Now activate the new Custom Template Folder 2 plugin
  5. Using FTP (or your hosting files manager), locate the template directory in the original Custom Template Folder plugin. The path will in most cases be:
    wp-content/plugins/pdb-custom-templates/templates/
  6. That path is where all your custom templates will be
  7. The 2.0 plugin creates a new directory in the content directory of your site. Typically the path will be:
    wp-content/participants-database-templates/
  8. Move your templates from the old plugin templates directory into the new location
  9. Check your displays, your custom templates should be active again
  10. Once you know the custom templates are working, you can remove or delete the original plugin.

Support Discussions for Custom Template Folder 2.0

  • I’m using the Custom Template Folder-PlugIn to build various FrontEnd-Outputs on different pages with different fields to display. One Template should display online the “photo/logo”-field.
    The output (the img-TAG) is wrapped in a SPAN-TAG. So i tried the second parameter ($html = false) of the function … but nothing changes in the output.

    First question: What am i doing wrong.?

    Second question: Is it possible to get only the RAW-URL-String for the image-file (without IMG-Tag-Syntax)?

    Thanks in advance
    Ben

    • Hi Ben,

      Can you be clear about what it is you want? Is the span tag a problem? If so, that will be most easily addressed with some CSS, rather than attempt to change the HTML produced by the field.

      Also, tell me which shortcode you are using where you see the problem, and also the function your are referring too.

      An easy way to get the full URL to an image is to use the “Link Image to Fullsize” preference (plugin settings under the General tab) and then you can get that value with $this->field->link (as long as you do this in the correct place in the template.)

  • Under the Multisearch Field tab, several of the fields are not available (or missing) from the drop-down selection to Add Field to a combo search. Oddly the field group tab shows 9 total fields, but only one is appearing in the drop-down. We did delete the email field. Would that be a critical ID field, even though we do not need it for our database?

    • First, make sure none of those fields are configured to show in the Combo search. A field can’t be in both.

      Deleting the email field can have some detrimental effects, depending on what you’re trying to do, but the plugin does not use the email field to index or identify records, so there’s nothing wrong with deleting it.

Got a Support Question?

You have to agree to the comment policy.

Would you like to be notified of followup comments via e-mail? You can also subscribe without commenting.