15.08.2013 Views

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

Ektron CMS400.NET Developer Reference Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<br />

The previous example has the following properties:<br />

Custom ASP Functions<br />

• All metadata for content block ID=1 is inserted into the page<br />

• All metadata for the content block ID=2 except for its title is<br />

inserted into the page<br />

• All metadata for the content block ID=14 except for its<br />

keywords is inserted into the page<br />

Using a Dynamic Metadata Tag<br />

You can use a metadata tag in a template to define the metadata<br />

for a specific content block. However, you can also use a dynamic<br />

metadata tag combined with a content block tag to show the<br />

metadata for all content blocks on a Web page.<br />

This allows you to create a template and not have to keep updating<br />

the tag by adding the new ID and exclusion list. Shown below is the<br />

sample code for this.<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

if (request.QueryString("id") "") then<br />

else<br />

end if<br />

id = request.QueryString("id")<br />

id = 1<br />

ecmMetadata "[" & id & "]", ""<br />

<strong>Ektron</strong> <strong>CMS400.NET</strong> <strong>Developer</strong> <strong>Reference</strong> <strong>Manual</strong>, Version 5.1, Revision 5 449

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!