The Metadata Plugin
Metadata Management for Manila
 
Site last updated
2/24/2006; 12:33:21 PM
 
Home

Why

Features

FAQ

Updates

Documentation

Download

Developers

Bugs

Feedback

Discuss

Planned
Features

 
 

Managing Meta Types (v4.x)

Author:   John VanDyk  
Posted: 6/19/2002; 8:54:54 PM
Topic: Managing Meta Types (v4.x)
Msg #: 1443 (top msg in thread)
Prev/Next: 1442/1444
Reads: 4530

(This page applies to version 4.x of the Metadata Plugin. For version 5.x documentation, see the Managing Meta Types page.)

OK, you've downloaded the Metadata Plugin. You've installed it. You've enabled it. You've thought long and hard about your data model. Now you're ready to get started!

Log in as an editor of your site. Look for the metaData link in your Editors-only menu:

Editor Bar Screenshot: The Editors-only menu.

When you click it, you'll be taken to the Manage Meta Types page. This is the administration page for the Metadata Plugin.

Manage Meta Types 214:

First, a general principle: you make changes in the form, then you click the Update button. You can make as many changes as you like. When you're ready, click the Update button and your changes will be implemented.

Let's go through the interface. Each meta type you define has one line containing the following elements:

  • Delete. To delete a meta type, check the box next to the meta type you want to delete and click Update. Poof! You've deleted it. (Technical note: this deletes the meta type from the meta types table, but does not delete the corresponding index or the metainformation already stored for this type in the message table.)
  • Meta Type. The name of the meta type. If the meta type is a built-in meta type, it appears in green. A built-in meta type is a meta type that is part of Manila's stock configuration. More information on built-in meta types is available here.
  • Enabled. You can have meta types defined but not enabled. Only enabled meta types are included in the <HEAD> element of pages, and only input fields for enabled meta types appear when you are creating or editing Stories.
  • Applies To. (not shown in screenshot) Some meta types are appropriate for Pictures, others only for Stories/Messages, others for both.
  • Indexed. Choose Yes here if you want the Metadata Plugin to index the contents you enter for this particular meta type. For example, suppose I have a website where I'm reviewing books, chapter by chapter. I have a meta type called ISBN that I fill with the ISBN number of the book I'm reviewing. Now I've got 44 pages referring to that ISBN number. How do I find all of them quickly? Good thing I set Indexed to Yes when I created this meta type...now all I have to do in order to see all the pages for this particular book is use the searchkw() macro like this: {metaDataMacros.searchkw("ISBN","1861002777")}.

    What's the difference between setting Indexed to Yes and setting it to Text? Setting indexing to Yes means that for this meta type, commas will be used to recognize individual items to be indexed. A good example is a Keywords meta type. You might want to enter keywords like couch, Burning Man, gelatin on a given page. Let's look at the resulting index depending on how the Indexed option was set:
    YesNoText
    • couch
    • Burning Man
    • gelatin
    (None)
    • couch
    • Burning
    • Man
    • gelatin
    Text indexing also strips out junk words like and and or.

  • Include in HEAD. If you choose Yes, your metadata will be included as META tags in the HEAD element of your Manila web pages. Yes is the default and will be right for most fields. You might want to choose No if the field is for your own private use...to organize your site, for example.
  • Changes Refresh Input Form. For advanced users only; default is No. A change of metadata value for a meta type will cause the form to refresh rather than post when you hit the Post Changes button when editing a page. David Bayly: With the introduction of the foreach capability in Custom Input Form Templates, it is possible to create message editing forms whose form elements will change depending on metadata value of the message being edited. So for example, the form seen when creating a new story might contain a multibox field whose values "turns on" a number of other fields. To edit the added fields, the form must be refreshed, which is 2 step process - submit the new story form then, click edit this page for the resulting story display. The intermediate step can be avoided by setting the refresh attribute on the multibox field. You are effectively saying "refresh the form when this value changes or is created."
  • Who may Edit?. This applies security to the meta type. Fields may be edited by any member with rights to edit a page (members), contributing and managing editors (editors) or by managing editors only (m-editors).
  • Field Format. Typing in metainformation is a pain. If you have a regular set of values that you use, why not just select them from a dropbox? Set the field format to dropbox and the next time you create or edit a story, you'll get a dropbox to choose from. What if you want to add a value that isn't listed in the dropbox? Easy. Select the "Other" item from the dropbox and you will be prompted to enter the value. You must have JavaScript enabled for this feature to work. If you do not want to include the "Other" item in your dropbox, choose dropbox limited. Boolean (a radio-button choice between Yes and No) and radio field (a radio-button choice between all meta values for a meta type) formats are also available. You can change field formats at any time. Often the best approach is to start with the field format set to textbox, then after you've entered some values, switch to dropbox. Another option is multibox, which is basically like a dropbox but you can select multiple values. Advanced users may wish to check out Custom Field Formats.
  • Default Value. If you choose to put a value here, it will be pre-entered in the metadata field when you create a story. You can even put a macro here.
  • New Meta Type. To create a new meta type, enter the name of the meta type and click Update. Then you can set the rest of the options for your new meta type. Names of meta types may include lower and upper ASCII characters and underscores. No spaces or special characters, please.

Technical note: if you have access to the Frontier server and you wish to change the default size of the text input boxes in the above interface, change the values at metaDataSuite.metaTypes.dsp_inputwidth and metaDataSuite.metaTypes.dsp_defvalwidth.

Options

Under Options at the bottom of the page there are several additional features.

  • Query Builder is basically a graphical front end to the query macro that allows you to quickly get the query you want interactively; a syntactically correct query macro is presented to you along with the results of your query, and you can just copy and paste into your pages. See the query macro documentation.
  • Change Plugin Behavior lets you change various preferences for how the plugin does things. For example, you can specify how default metadata values are used. Click this option on your Manage Meta Types page to get more information.
  • Clear Macro Cache allows you to clear the cache that the Metadata Plugin uses to speed up metadata operations. The Metadata Plugin clears the cache automatically when necessary, so you should never need to do this unless you've made changes behind the scenes (i.e., not through a browser). It also lists the number of currently cached items.
  • Add Dublin Core. Click the question mark to find out more (you'll be taken to this page).

There you have it. You can now create and delete meta types and control various aspects of them. Of course, the most important thing is still your data model.

You might also want to read about a common scenario for using the Metadata Plugin.

If you have questions, post them in the discussion group.


This page last updated Wednesday, June 19, 2002 at 8:54:54 PM. (4530)