Sie sind auf Seite 1von 7

LEARNING CUMULUS (EXPLORING SERIES):

Using Cumulus-Direct URLs for "Always Fresh" Web Downloads


Cumulus-Direct URLs serve cataloged assets, previews and thumbnails direct from within Web pages.

Cumulus-Direct URLs enable you to easily link Cumulus to your website for:
• Asset downloads, previews and thumbnails served on demand by Cumulus.
• Always-current website assets you never need to manually upload.
• Control over an unlimited number of website downloads from a single location—your Cumulus Server.

Your website’s new best friend.


Right now, your website probably contain hun- Anatomy of a Cumulus-Direct URL
dreds (if not hundreds of thousands) of assets If you’re familar with basic HTML, you’ll feel right at home with Cumulus-Direct URLs:
available for public viewing and download—
http://CumulusServer/WebApp/Type/CatalogName/RecordID/Encoding/Size
images, presentations, PDFs and more. They’re
stored into website directories, ready for the next • CumulusServer — This is the network location of the Cumulus Server that will resolve the URL.
click of a mouse. An example value would be: /cumulus-direct.canto.com:8080/
• WebApp — This is the name of the folder that contains the Canto Web application that will
But are they all current versions?
resolve the URL. Example values would be: /Sites/ for Cumulus Sites or /CumulusE/ for the
You certainly want your assets distributed as far Cumulus Web Client.
and wide as possible, but keeping your website • Type — This is the type of URL: /T/ for thumbnail, /P/ for preview, /A/ for asset download.
up to date with new file versions can be tough:
• CatalogName — This is the name of the Cumulus catalog that references the asset. An example
• Website updates take too long or never get would be: /WebDownloads/
done because those who update edit files
• RecordID — This is the record ID of the asset, which Cumulus provides automatically.
don’t usually update websites.
• Encoding — Defines encoding for Web browser.
• Website security can be compromised if you
have to give too many people upload access. • Size — This is size of the bounding box the resulting image should be displayed within.
• Providing thumbnails and previews means you Show a preview 600 pixels wide
must create variants of your master assets <img src="http://myCumulus.com/Sites/P/WebCat/1?encoding=UTF-8&b=600"/>
and then keep track of which file is which. Download a file
Cumulus-Direct URLs aim to eliminate these and <a href="http://myCumulus.com/Sites/A/WebCat/1?encoding=UTF-8">Download Me!</a>
other hassles associated with website file man- Use an 80-pixel thumbnail as a download link
agement. Even better, Cumulus-Direct URLs are <a href="http://myCumulus.com/Sites/A/WebCat/1?encoding=UTF-8">
so simple to use, don’t be surprised if you find <img src="http://myCumulus.com/Sites/T/WebCat/1?encoding=UTF-8&b=80"/></a>
them to be one of the most useful and powerful
features Cumulus has ever provided.

How Cumulus-Direct URLs work.


A Cumulus-Direct URL is a standard HTML link CLIENT-FREE
that calls your Cumulus Server with an asset ref- CUMULUS ACCESS
Canto serves all of its
erence and asks for one of three things in return: website documentation,
datasheets and tutorial
• Thumbnail — The current thumbnail stored files via Cumulus-Direct
for the asset. URLs. As files are
updated internally and
• Preview — A Cumulus-generated preview of checked back into
file formats Cumulus can preview. (Larger Cumulus, Canto’s web-
thumbnails are a great alternative for pre- site downloads are
instantly up to date. Plus,
views, because they display much more all downloads are tracked
quickly.) by Cumulus usage statis-
tics, which makes it easy
• Download — A link to the asset that’s deliv- to determine which files
ered to the browser for downloading. are most popular with
users.
Creating Cumulus-Direct URLs
Creating and using Cumulus-Direct URLs is easy:

Canto, the Canto logo and Cumulus are registered trademarks of Canto. Other company and product names might be trademarks of their respective owners.
EDU/mkEX-CD-URLs/2010.03 Copyright ©2010 Canto GmbH. All rights reserved. www.canto.com Page 1 of 7
LEARNING CUMULUS (EXPLORING SERIES): Using Cumulus-Direct URLs for "Always Fresh" Web Downloads

1. Select one or more asset records. 1. Add a few new fields to your catalog(s) that • Thumbnail URL Enabled — When enabled, the
2. Choose a menu option in the Cumulus Native Cumulus requires to manage the URLs. asset record’s thumbnail may be displayed via
Client. 2. Install a Canto Web application. (Cumulus URL.

3. Choose options and restrictions you want for Sites or Cumulus Web Client) You only need to add these fields to the catalog,
the URLs. 3. Use the Cumulus Server Console to set up a meaning there’s no need to enable them for user
base URL for the Web links your Cumulus editing, enable them for indexing, or add them to
4. Copy the URLs Cumulus generates into the
Server will resolve. any view set. Cumulus uses these fields directly;
Web page of your choice. they’re not intended for user interaction.
4. Use a text editor to make some minor tweaks
to the Web application’s configuration file. Once the fields are added, the catalog needs no
further configuration. (Remember to add the
5. Create a user account that will interact with
Cumulus as the Cumulus-Direct URL “user.” fields to each catalog you plan to make available
via URL!)
An explanation of each step follows.
The next step is to make sure your preferred
Add required fields to your catalogs Canto Web application is ready.
Three fields must to be added to any catalog you
plan to use with Cumulus-Direct URLs. (Figure 2) Install your preferred Canto Web application
FIGURE 1: Cumulus-Direct URLs are configured by Cumulus uses these fields to determine which Cumulus-Direct URLs can be resolved (served)
Cumulus inside the Native Client. Each URL includes assets have been enabled for URL access. If a by Cumulus Sites or the Cumulus Web Client.
an explicit permission for thumbnail, preview and Both apps handle Cumulus-Direct URLs exactly
Cumulus-Direct URL tries to access an asset that
download (asset). The kind of URL Cumulus generates
is chosen at the bottom of this window, but it can be has not been enabled for access, the request is the same way, and neither offers performance or
changed outside of Cumulus, as you’ll see later. For denied. This ensures that only the assets you other advantages when serving files via
this reason, thumbnails, previews and/or downloads Cumulus-Direct URLs.
want accessible via URL are accessible.
must be specifically enabled using the options shown.
This prevents, for example, a URL intended to show a Each Web application’s administrator guide cov-
thumbnail from being modified by a savvy website user NOTE: Refer back to “Anatomy of a Cumulus-
to download the original asset. Direct URL” on page 1. The RecordID portion ers the setup information you need, so that won’t
of the URL tells Cumulus the asset being be covered here. (Download the guides you need
requested. If this asset has not been “URL via Cumulus Sites now, if needed.)
Depending on the kind of URL you create, and
enabled,” the request is denied. You can see NOTE: Before configuring your Canto Web
how you use it in your Web page, visitors will see
how manually editing this RecordID number application to work with Cumulus-Direct
images or links. You can even combine Cumulus-
could result in a security breach if a RecordID URLs, test it to make sure it’s working prop-
Direct URLs in a single link so that a thumbnail
not intended for access was used in the URL. erly.
becomes a link to download or preview a file.
Per-asset permissions resolve this issue.
Create your Cumulus-Direct URL user account
Prepping for Cumulus-Direct URLs. As with any new field, you’ll add these new fields and base URL
Any Cumulus 8.1.1 (or later) system that includes from the Catalog Settings > Record Fields section Next, launch the Cumulus Server Console. From
Cumulus Sites or the Cumulus Web Client is of the Cumulus Native Client’s Preferences win-
here, we’ll create a new user account to act as
capable of serving files via Cumulus-Direct URLs. dow.
the Cumulus-Direct URL “user,” and we’ll config-
(In this document, we’ll configure Cumulus Sites, The fields to add are: ure the base URL for your site.
but configuration for the Web Client is virtually
identical.) • Asset URL Enabled — When enabled, the Start out in the User Manager section of the
asset may be downloaded via URL. Server Console. Create a new user account and
There are five required steps to initially getting give it a name that makes sense to you. (The
Cumulus-Direct URLs working: • Preview URL Enabled — When enabled, the
asset may be previewed via URL.

FIGURE 2: Cumulus uses


Convenient tweaking three fields to determine
The default installation folder for Canto which assets have been
products in Windows 7 is C:\Program Files enabled for Cumulus-
Direct URL access. With-
(x86). For safety, Microsoft protects files out these fields added to
under this folder hierarchy. Unless you have a catalog, Cumulus-
a text editor that enables you to override Direct URLs will not
work.
these protections when saving system files,
you might want to consider installing Sites or
the Web Client in a location that enables you
to more easily edit the installation’s configu-
ration files. Alternatively, you can edit and
save the files outside this folder hierarchy
and then manually drag them into place
using an administrator account.

Canto, the Canto logo and Cumulus are registered trademarks of Canto. Other company and product names might be trademarks of their respective owners.
EDU/mkEX-CD-URLs/2010.03 Copyright ©2010 Canto GmbH. All rights reserved. www.canto.com Page 2 of 7
LEARNING CUMULUS (EXPLORING SERIES): Using Cumulus-Direct URLs for "Always Fresh" Web Downloads

FIGURE 3: The permis-


sions shown are those
About the Cumulus-Direct
required for the URL user account
Cumulus-Direct URL user Cumulus processes all Cumulus-Direct URLs
account. Any user
account with these per-
using the user account specified in the con-
missions can be used, figuration file. The permissions of this
but it’s a good idea to account are used to verify access before files
create a separate
account specifically for
are served via URL. It’s a good idea to create
the purpose of resolving a new user account specifically for this pur-
URLs. pose for a number of reasons:
• It enables you to keep things secure,
because you won’t inadvertently enable a
permission for another user that you
intended only your “direct URL” user to
have, or vice versa.
• The permissions of the user account used
as the Cumulus-Direct URL are cached for
performance reasons. This means that
account created for this tutorial will be called • Choose a password for the user account from
permissions changes made to this
“Cumulus-Direct-User.”) the General tab. (You’ll need this password
account will not take effect until your Web
when tweaking the configuration file.)
The permissions required for the Cumulus-Direct application server (presumably Tomcat)
URL are shown in figure 3. They are: • Make sure to remove the catalog access is restarted. Conversely, permissions for
restriction from the Catalog Access tab. This user accounts used by “human” users are
• Open Catalog with any Cumulus Client — will ensure that this user account has access gathered at each login to Cumulus.
Required for general catalog access. to all your catalogs. (Alternatively, you can
• A separate user accounts provides you
• View Record — Required for general URL choose specific catalogs, but keep this restric-
with a way to disable all URL access with-
access, which includes thumbnails, previews tion in mind if you decide to serve URLs from
out affecting normal user operations.
and downloads. other catalogs.)
(Disconnect the user via the Server Con-
• Transfer Asset — Required only for assets are While still inside the Server Console, move to the sole’s Activity Monitor.)
hosted by the Cumulus Vault. Remote Admin > Settings section. This is where
• User accounts are free! It costs you noth-
Make sure to enable these permissions for “all we’ll configure the base portion of URLs associ-
ing to create new user accounts with
allowed catalogs,” which enables you to use this ated with your site. (Figure 4)
Cumulus, because licenses are based on
same “user” account for resolving the Cumulus- Before you can add your base URL, you need to concurrent use.
Direct URLs from all your catalogs. (Figure 3) know what it is. The easiest, most reliable means
Other things to check before closing the proper- for finding out is to load the default page for your About Base URLs
ties window for the new account: Canto Web application. In the address window of A base URL is nothing more than the first
your Web browser you can see the portion of the part of any URL used to access a given Canto
• Make sure the account is “Login Active,” URL we need, as shown in figure 4. Once you Web application. Using a base URL prevents
which you can set from the General tab. have that (copy it, if you like): URLs inside your catalogs from having to be
“hard wired” to a certain locations. This
enables you to make server changes without
FIGURE 4: When configur-
having to redo all URLs.
ing your base URL, it’s
handy to just copy the URL
Base URLs are named to enable users to
from a Web browser identify each when creating URLs, as seen
address area. Just load up below.
the main page of your
Web application (Sites/
Web Client) and you’ll see
the base portion of the
URL that you need.

HINT: Double-click in the


Base URL section of the
Server Console window to
enable the field for past-
Most of the time, you’ll need only a single
ing or editing.
base URL. But if you ever want to serve some
assets from Sites and others from, say, the
Web Client, you’d need one base URL for
each Web application.

Canto, the Canto logo and Cumulus are registered trademarks of Canto. Other company and product names might be trademarks of their respective owners.
EDU/mkEX-CD-URLs/2010.03 Copyright ©2010 Canto GmbH. All rights reserved. www.canto.com Page 3 of 7
LEARNING CUMULUS (EXPLORING SERIES): Using Cumulus-Direct URLs for "Always Fresh" Web Downloads

1. Click the Add button. In the window that


appears, give the base URL a name. We’ll use Configuration file set up
the name “URLs via Sites” to make the base Inside your configuration file, enter the name and password of the user account you’ll be using for
URL’s purpose clear, but you can choose Cumulus-Direct URL access into the section shown below.
another name. (See “About Base URLs” on
<server>
page 3 for overview information on base
<serverAddress>localhost</serverAddress>
URLs.) Click OK to save the new URL.
<requireLogin>false</requireLogin>
2. Still referring to figure 4, double-click in the
<guestUser>guest</guestUser>
“Base URL” area of the window, which acti-
<guestPassword></guestPassword>
vates it for editing. Either paste in the base
<directURLUser>Cumulus-Direct-User</directURLUser>
URL you copied to your computer’s clipboard,
<directURLPassword>cd-url</directURLPassword>
or type it in as it appeared in your Web
<adminUser>adminUser</adminUser>
browser.
<adminPassword>adminUserPassword</adminPassword>
NOTE: Don’t put a trailing / after the base <catalogs>
URL. Cumulus adds this automatically. <catalog>
<catalogName>Sample Catalog</catalogName>
3. When your base URL is configured, scroll all
the way down to the bottom of the Server <rootCategory>$Categories</rootCategory>
Console window and click Save Changes. </catalog>
</catalogs>
At this point, your Cumulus-Direct URL user
</server>
account and base URLs are configured. Next,
we’ll make a minor modification to your Web

mission, or else use your Cumulus admin


application’s configuration file, and then you’ll be
account.
ready for testing.
The most important thing you
can remember! Tweak the configuration file
Your Web application server (Tomcat) must Starting in the installation folder of your Canto
be restarted each time you: Web application, find your configuration file at:

• Make configuration file changes /apache-tomcat-6.0.20/


webapps/Sites/WEB-INF/conf/
• Make permissions changes for the sites-config.xml
Cumulus accounts designated as
NOTE: If you’re using the Cumulus Web Client,
"guestUser," "adminUser" or
your path will include “CumulusE” instead of
"directURLUser"
“Sites,” and the file will be called web.xml.)
• Swap icon or image files
This is the same configuration file you edited in
• Add or edit any content in the "customi-
order to get your Sites or Web Client installation
zations" of "themes" folders
working initially, so it should look familar. FIGURE 5: Any user who will create Cumulus-Direct
• Make changes to your Web application’s URLs needs “view” and “modify” record permissions.
cascading style sheet (CSS) The “Configuration file set up” sidebar shows the
section of the file that needs to be edited. Once
Though many of these items are not relevant you’ve made your edits, save the file. To get started, open a catalog you’ve configured
to this document, keep this all in mind! With- to work with your Web application. For this tuto-
out a Web application restart, your changes NOTE: Now would be a good time to restart rial, we’ll use the Sample Catalog that ships with
will not take effect. your Web application server! Cumulus.
For this exercise, we’ve selected four assets of
Making use of Cumulus-Direct URLs.
Now, with your system properly configured, it’s different types in order to see how the Web
time to test some Cumulus-Direct URLs. browser deals with each. (Figure 6)

Getting the URLs you need It’s important to keep in mind that a Cumulus-
Direct URL just “hands” the Web browser a file.
Cumulus-Direct URLs are created from within
What the Web browser does with that file is up
the Cumulus Native Client. You can test the URLs
to the configuration and plug-ins of the browser.
from within Cumulus before you embed them
For example, a PDF download will display inside a
into Web pages, which is what we’ll do now.
Web browser that includes a PDF plug-in,
RESTARTING IS A GOOD THING! Become familar NOTE: Creating Cumulus-Direct URLs requires whereas it will come through as a file download
with how to restart Canto Web applications on in a browser that doesn’t support PDF display.
your operating system and save yourself lots of
the record permission called “modify item.”
time and frustration! (Figure 5) Make sure to connect with a Additionally, a JPEG will display inside virtually
Cumulus user account that includes this per-

Canto, the Canto logo and Cumulus are registered trademarks of Canto. Other company and product names might be trademarks of their respective owners.
EDU/mkEX-CD-URLs/2010.03 Copyright ©2010 Canto GmbH. All rights reserved. www.canto.com Page 4 of 7
LEARNING CUMULUS (EXPLORING SERIES): Using Cumulus-Direct URLs for "Always Fresh" Web Downloads

Configure Web Link Overview


Cumulus-Direct URLs are configured from a window inside the Cumulus Native Client. When the
window appears, a list of all selected asset records is shown.
For each asset record
listed, you’ll find:
1. The selected asset
record’s name.
FIGURE 6: Any type of asset can be served via 2. A checkbox that per-
Cumulus-Direct URL, but Web browser configuration mits access to the
determines how each type is delivered to the user. asset record’s
thumbnail via URL.
all popular Web browsers, whether its sent by
Cumulus as a preview or download. 3. A checkbox that permits access to the asset’s (Cumulus generated) preview via URL.
4. A checkbox that permits users to download the asset via URL.
With one or more asset records selected:
5. The resulting URL, as generated by Cumulus.
1. Choose Asset > Configure Web Link URL. A
window appears from which you can configure 6. The base URL used for the selected asset records.
the kind of URLs you want. (Figure 7) For an 7. The type of URL Cumulus generates for all asset records listed. In addition to thumbnail, preview
overview of this window, see the “Configure and download (asset) URLs, a record URL type is available. This URL type opens the asset record
Web Link Overview” sidebar. in the Canto Web Client, which is required for use with this URL type. (If you select a Base URL
that calls Sites, for example, you will get an error in the Web browser.) By contrast, the three
Cumulus-Direct URL types deliver their payloads directly to the Web browser and can be
resolved by either Sites or the Web Client.
8. Opens the selected URL in a Web browser. Use this option to see what will be delivered to users
once the URL is embedded into a Web page.
9. Copies the selected URLs to the computer clipboard for use in other applications.
10. Enables or disables the selected URL.
11. Commits the permissions set for newly created URLs so that Open URL can be used. As a rule,
FIGURE 7: Cumulus generates URLs for you, so creat-
click Apply before you want to use Open URL for testing.
ing them is easy.
About URL Permissions
Cumulus requires you to specifically choose what each URL can serve (thumbnail, preview, down-
2. For this tutorial, enable all permissions for all load) because URLs are easily modified outside Cumulus. Consider the following “thumbnail” URL:
asset records. (See “About URL Permissions”
in sidebar for info.) http://localhost:8080/Sites/T/Sample+Catalog/135?encoding=UTF-8&b=128
The /T/ portion of the URL tells Cumulus that a thumbnail is requested. Change that section to /P/
3. Click the Apply button to activate the chosen
and a preview is requested. Likewise, /A/ requests the original asset. So, these explicit permissions
permissions. (Do this each time you make per-
help ensure you don’t make available over the Web what you don’t intend to make available. That
missions changes before you use Open URL.)
said, now you know how easy it is to create the other URL types from the one you choose!
4. Choose a base URL (necessary only if you
have more than one), and then choose
Thumbnail from the URL Kind menu.
6. Do the same for other assets to see how
5. Select an asset from the list and click Open
they’re handled inside the browser. Change
URL. A Web browser appears with a thumb- URL types and permissions and experiment.
nail for the asset. (Figure 8)

FIGURE 8: With your Web browser open, take note of


the two sections of the URL that are easily tweaked out-
side Cumulus. Change the /T/ to /P/ and then to /A/
to see the asset’s preview and download, respectively.
Then change the 128 at the end of the URL to a smaller
value to see the image reduced in size. Larger sizes can
be used too, but you must make sure your configura-
tion file permits larger sizes. (Search for occurrences of
<directURL maximumSize="128" /> in your config file
and edit the “128” values as needed to permit larger
thumbnails and previews.) Note: This portion of the URL
has no effect on download assets. If omitted, the “max-
imumSize” values defined in the config file are used.

Canto, the Canto logo and Cumulus are registered trademarks of Canto. Other company and product names might be trademarks of their respective owners.
EDU/mkEX-CD-URLs/2010.03 Copyright ©2010 Canto GmbH. All rights reserved. www.canto.com Page 5 of 7
LEARNING CUMULUS (EXPLORING SERIES): Using Cumulus-Direct URLs for "Always Fresh" Web Downloads

What do users see? Though it might appear as though nothing has


For the types of assets shown in figure 6, the fol- happened, Cumulus has actually created a new
lowing behaviors were seen in Firefox 3.6 on asset record that contains no asset reference.
Windows 7: (Scroll down to the bottom of your collection to
see it, or use Find > Find Records: Record Name
/T/ /P/ /A/ “Has No Value”)
Catalog Cumulus 2. Select the empty record and choose Asset >
“Save As”
.indd thumbnail preview
displayed displayed
window Change Asset Reference > Select Single. From
the window that appears, choose a file to con-
Catalog Cumulus In-browser nect to the asset record.
.pdf thumbnail preview display via
displayed displayed PDF plug-in 3. Finally, with the same asset record selected,
choose Metadata > Update Record > Update
Catalog Catalog
“Save As” Now. Choose an asset handling set and click
.aif thumbnail thumbnail
window
displayed displayed OK.
Catalog Cumulus At this point, create the URLs you need for the
In-browser
.jpg thumbnail preview
display record, just like you would any others. When the
displayed displayed time comes to update your “featured” asset,
repeat the previous two steps and your Cumulus-
NOTE: This browser had a PDF plug-in, but no Direct URLs will immediately reflect the newly
others. Had QuickTime be installed, the .aif chosen asset.
file would have played in-browser when
You can update asset references any time you
downloaded.
want, so asset record placeholders offer a perfect
What’s important to consider is that when using way to add a “live” aspect to your Cumulus-
Cumulus-Direct URLs, you are handing users Direct URLs.
files via their Web browsers. How those files are
Embedded download links anywhere
presented to the user is entirely a factor of how
Because Cumulus-Direct URLs are standard
the browser is configured, and the HTML code
HTML hyperlinks, they can be used in virtually
that surrounds the URL.
any situation in which you can embed a URL,
In other words, when using Cumulus-Direct including:
URLs, Cumulus provides thumbnails, previews
• PDF, Word documents — Add download links
and downloads on demand, but what happens to
into PDF or Word files, so that when you refer-
them after that is up to you.
ence another document, you can provide read-
ers with a handy download option.
Taking Cumulus-Direct URLs further.
• Twitter/Facebook — Add Cumulus-Direct URL
With some basic HTML skills already mastered,
you should now have all the information you links to your tweets and Facebook updates.
Not only do you make it easy for others to get
need to start building Cumulus into your Web
files, but you can actually track the down-
infrastructure via Cumulus-Direct URLs. The sec-
tions below are intended to offer some ideas of loads! (See “Don’t forget the stats!” on
page 7.)
how you might take advantage of Cumulus-
Direct URLs. • Email campaigns — Whether you need to
offer download links, or you just want to use
Asset record placeholders Cumulus to control the images displayed to
Though Cumulus-Direct URLs are “hard-wired” users, keep Cumulus-Direct URLs in mind
to a given asset record and its asset, there’s no when composing your email campaign tem-
reason why you can’t periodically change the plates. (Don’t forget: asset record placehold-
URL’s asset record to “point” to another asset. ers offer a great way to reuse campaign
This enables you to embed a single link into templates without reusing the same imagery.)
many places and, each time you update the URL’s
asset record, what Web users see and download NOTE: Keep in mind, the payload of a
changes. Think: “featured file of the day!” Cumulus-Direct URLs is always served
through a Web browser. So, when a URL is
To create an asset record placeholder inside the embedded somewhere other than a Web
Cumulus Native Client:
page, a Web browser will open to deliver the
FIGURE 9: A new empty record is created as a 1. Select File > Add Assets to Catalog > New payload to the user.
placeholder for assets to come later (top). Once
created, it’s easy to “attach” an asset to the empty Empty Record. Choose a catalog and asset
record. (Second down) Then, update the asset handling set from the window that appears.
record (third down), and that’s it! You can change (Figure 9)
an asset record’s asset like this any time.

Canto, the Canto logo and Cumulus are registered trademarks of Canto. Other company and product names might be trademarks of their respective owners.
EDU/mkEX-CD-URLs/2010.03 Copyright ©2010 Canto GmbH. All rights reserved. www.canto.com Page 6 of 7
LEARNING CUMULUS (EXPLORING SERIES): Using Cumulus-Direct URLs for "Always Fresh" Web Downloads

Mass-enabling assets for Cumulus-Direct URLs Any time the metadata template is applied,
Another way to enable assets for use with either by a user or by the Cumulus Scheduler, the Don’t forget the stats!
Cumulus-Direct URLs is via metadata templates. URLs are updated. You can also use templates to Cumulus-Direct URLs that serve previews
In fact, add a field formula into the mix, and remove the URL permissions, which enables you and downloads also provide statistics about
you’ve created a virtually automatic means for to use the Scheduler, for example, to disable URL those actions to Cumulus. This means you
generating the URLs you and your users need. access based on status or other field changes. can track how many times each asset is pre-
viewed or downloaded. (Thumbnail views
Here’s an overview of how this approach works: Extra functionality! One you have your
are not trackable.)
Cumulus-Direct URLs saved into catalog fields,
1. A metadata template sets the permissions for
you can perform XML metadata exports and Users familar with statistics tracking through
the asset records and adds the name of the
save URLs for all your files into a text file. Even services like Google Analytics will be happy
base URL to a metadata field.
better, any other per-asset metadata you need, to learn that tracking via Cumulus-Direct
2. Field formulas then use that base URL field such as caption, notes, etc. can be saved inside URL requires absolutely no extra code in
and the record’s ID number to assemble final the file too. your Web pages! So it’s easy to get a total of
URLs into metadata fields, one for each URL all previews or downloads, whether the
type. (Figure 10) requests came from your website, your part-
ners’ sites, or anywhere else.
For information on how to configure statis-
tics in a Cumulus catalog, see the Cumulus
Admin guide.

FIGURE 10: (Left top) A


metadata template sets
permissions and a base
URL. (Left bottom) A
view set provides easy
access to all fields asso-
ciated with Cumulus-
Direct URLs. The fields
below “URL Size
Requests” and “URLs
(Copy to clipboard)”
were added to the cata-
log for this purpose.
(Right) The field for-
mula for the “URL - Preview” field. The formulas for
the other two fields (shown below) are similar, but
take into account the different URL type and size
request fields.

“URL - Preview” Field Formula


Note: fieldValue(“Cat-
fieldValue("Base URL") + "/P/Sample+Catalog/" + fieldValue("ID")
+ "?encoding=UTF-8" + "&b=" + fieldValue("Preview Size") alog Name”) does not
encode spaces, so it’s
“URL - Thumbnail” Field Formula best to “hard wire”
fieldValue("Base URL") + "/T/Sample+Catalog/" + fieldValue("ID") into your formulas any
+ "?encoding=UTF-8" + "&b=" + fieldValue("Thumbnail Size") catalog names that
contain spaces.
“URL - Download” Field Formula
fieldValue("Base URL") + "/A/Sample+Catalog/" + fieldValue("ID") + "?encoding=UTF-8"

About Canto, Cumulus and Canto Professional Services For more information, contact your
Canto has been dedicated to helping customers fully utilize their digital assets since 1990. Canto Cumu- local Canto partner, or Canto:
lus is a cross-platform solution that enables companies to easily organize, find, share and track their
ever-increasing numbers of digital files, in any format. Canto’s worldwide network of certified developers
In the U.S.
offers an impressive assortment of plug-ins that enhance the Cumulus product line further.
+1 (415) 495-6545
In the E.U.
Canto Professional Services offers Cumulus consulting, training, installation, configuration and customi- +49 (0) 30 390 485 0
zation services. Take what you learn in Exploring Documents further with Canto Professional Services.
Everywhere
Learn more: www.canto.com info@canto.com

Canto, the Canto logo and Cumulus are registered trademarks of Canto. Other company and product names might be trademarks of their respective owners. Some product
claims and features are not included in all versions of the software and/or might require additional Cumulus Add-ons or Plug-ins.
EDU/mkEX-CD-URLs/2010.03 Copyright ©2010 Canto GmbH. All rights reserved. www.canto.com Page 7 of 7

Das könnte Ihnen auch gefallen