home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 1999 April / APC443.iso / features / grpware / coldfus / coldfusi.exe / data1.cab / Examples / docs / pubdocs / 2-concepts.cfm < prev    next >
Encoding:
Text File  |  1998-10-08  |  2.8 KB  |  45 lines

  1. <CFSET Title = "DCP Concepts">
  2. <CFINCLUDE TEMPLATE="_header.cfm">
  3.  
  4. <h3>DCP Concepts</h3>
  5. <h4>Objects, Classes, and Content</h4>
  6. <P>The content publishing model in this example application is based on the idea 
  7.   of <I>objects</I>. An object is a piece of information or a group of related 
  8.   information. For example, the title of a press release, an executive summary 
  9.   of the press release, the body of the press release, and a Word document of 
  10.   the press release would all be pieces of content contained in the same Press 
  11.   Release object.</P>
  12. <P>Depending on the way the object is called, the content can be displayed in 
  13.   different ways. A News Summary page might only display titles of news objects, 
  14.   but clicking on one of those titles could call a page which shows all of the 
  15.   content of the object.</P>
  16. <P>Each object must be of a certain <I>class</I>, such as News Items and Press 
  17.   Releases. The class of an object allows pages to determine how objects should 
  18.   be formatted when they are displayed.</P>
  19. <P>So far, each <I>object</I> has pieces of <I>content</I>, and every <I>object</I> 
  20.   belongs in a certain <I>class</I>. Each piece of content also has a <I>content 
  21.   type</I>, such as Headline, Teaser (executive summary), Body, File, Image, etc. 
  22.   As with object classes, content types allow pages to determine how content should 
  23.   be formatted when they are displayed.</P>
  24. <P>Not all content types are allowed for all object classes; for example, all 
  25.   News Items are required to contain a Headline, Teaser, and Body; they may optionally 
  26.   contain a File, Image, or Hyperlink to be displayed along with the image; and 
  27.   they may not contain an Address or Phone Number. These relationships are defined 
  28.   in the database table PubClassDefinitions.</P>
  29. <h4>Implicit/Explicit Calls, Instances, and Pages</h4>
  30. <P>There are two ways in which objects can be displayed. The first way is through 
  31.   an <i>explicit call</i>; i.e., a page contains code that says "Display the object 
  32.   with ObjectID 23 here." The second way is through an <i>implicit call</i>; the 
  33.   page says "See if any objects are supposed to be displayed on this page, in 
  34.   this spot, at this time; if so, display them in the proper order."</P>
  35. <P>The way objects respond to implicit calls is through <I>instances</I>. If the 
  36.   user wants object 23 to appear on three different pages in the web site, three 
  37.   separate instances must be created.</P>
  38. <P>In order for instances to be scheduled for a page, that page must be registered 
  39.   with the system, and given its own PageID. Then, when the page is called, it 
  40.   finds the instances that match its PageID (and other criteria) and displays 
  41.   the objects associated with each instance.</P>
  42.  
  43. <CFSET HREF="3-under1.cfm">
  44. <CFSET Link="Under the Hood, Pt. 1">
  45. <CFINCLUDE TEMPLATE="_footer.cfm">