Doing check-ins without files in UCM
By Kyle Hatlestad on Oct 07, 2010
One question I often hear is if you can perform a check-in into UCM without having a file. Sometimes you just need a metadata records, a placeholder for a future file, or perhaps you want a 'URL' item that points to somewhere else.
There is a configuration flag you can enter which will allow users to check in without requiring a file. Either go to Administration -> Admin Server -> [instance] -> General Configuration and enter the configuration variable there or you can go directly to [ucm dir]/config/config.cfg and add it there.
This will allow for metadata only on the Primary File.
This will allow for metadata only on the Alternate file. Just as a side note, you can also disable the Alternate File field altogether.
Now you can just check the box and the Primary File field can be left blank. When the item is submitted, an HTML file is created for the item which contains an output of the metadata.
Since a common use case for this is to submit URL items, there is a couple ways of handling those. First, you want to create a metadata field for those URLs such as 'ExternalURL' as a Memo type field. Then to display the links on search results, you can modify the Classic results to display it for everyone. Go to Administration -> Admin Applets -> Web Layout Editor and in the menu, select Options -> Query Result Pages. For 'StandardResults' you can edit the 'Text2' field and add the code:
<span class=xsmall><span class=infoLabel>External URL</span>
Users can add this same code for their own custom search results by using the Advanced Description Form.
In the case of Site Studio, you might want to display a Dynamic List of these external links as well as regular content results. This is an example of what that Dynamic List code might look like: