24-Jun-06 (Created: 24-Jun-06) | More in 'Howto'

How to use DisplayNoteBodyURL to retrive just the body of a document

Imagine that you have a document in Knowledge folders that has an id of 229. This document will have three things

name
description
body

Using this url you can tell knowledge folders to spit out only the "body" portion of the document to the browser. This is useful for storing and viewing such things as javascript, style sheets, and master pages.

Structure of the url and parameters

Relative structure


/akc/display?url=DisplayNoteBodyURL&reportId=292

Absolute structure


http://www.knowledgefolders.com/akc/display?url=DisplayNoteBodyURL&reportId=229

Examples

See a document in its usual master page background

See the same document using DisplayNoteBodyURL

You can use this idea to see or retrieve master pages. Here is a sample master page.. You can then use the view source to copy master pages and create your own.

References

1. Customizing the views of displaying a document in AKC