-
Book Overview & Buying
-
Table Of Contents
Building Websites with Microsoft Content Management Server
We have covered quite a bit of material in this chapter. We saw that the CmsHttpContext object serves as a gateway to all objects in the MCMS content repository. It allows us access to channels, postings, template galleries, templates, resource galleries, and resources. Our first example made use of iteration techniques to get references to channels. We started from the root channel and worked our way down and up the channel hierarchy. We saw how the GetByRelativePath() method could be used to shorten the number of iterations required.
We went on to work on a second example using the Searches class to get references to objects anywhere in the hierarchy without performing any iterations. With the path, URL, or GUID of an object, we can use the GetByPath(), GetByGuid(), and GetByUrl() methods of the Searches class to get a reference to the object.
Our third example accessed the contents of placeholders programmatically. We explored the various properties for each of the three placeholder...
Change the font size
Change margin width
Change background colour