Download Ektron CMS400.NET Developer Reference Manual
Transcript
Custom ASP Functions
</TD>
</TR>
The previous example has the following properties:
• All metadata for content block ID=1 is inserted into the page
• All metadata for the content block ID=2 except for its title is
inserted into the page
• All metadata for the content block ID=14 except for its
keywords is inserted into the page
Using a Dynamic Metadata Tag
You can use a metadata tag in a template to define the metadata
for a specific content block. However, you can also use a dynamic
metadata tag combined with a content block tag to show the
metadata for all content blocks on a Web page.
This allows you to create a template and not have to keep updating
the tag by adding the new ID and exclusion list. Shown below is the
sample code for this.
<!-- #include virtual="/CMS400.NETsample/CMS400.NETscripts/ektronAPI.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<% Dim id
if (request.QueryString("id")<> "") then
id = request.QueryString("id")
else
id = 1
end if
ecmMetadata "[" & id & "]", ""
%>
</head>
<body>
Ektron CMS40 0.NET Deve lope r Re fe re nc e Manua l, Version 5.0, Revisio n 8
365
Related documents
Ektron CMS400.NET Developer Reference Manual
Product Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS400.NET Developer Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS300 Dreamweaver Extension Support Manual
Ektron CMS200 Dreamweaver Extension Support Manual
This document is intended for a quick startup on the DAFv2 System
project management starter site developer`s guide
Ektron CMS100 Dreamweaver Extension Support Manual
Taking a First Look at FusionDebug
Ektron CMS400.NET Administrator Manual
Ektron CMS400.NET Administrator Manual
Ektron CMS400 Setup Manual - Ektron Product Documentation
Ektron CMS400.NET Setup Manual