<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://community.paperthin.com/adf-docs/index.php?action=history&amp;feed=atom&amp;title=Customize_Application_Components_at_Site_Level</id>
		<title>Customize Application Components at Site Level - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://community.paperthin.com/adf-docs/index.php?action=history&amp;feed=atom&amp;title=Customize_Application_Components_at_Site_Level"/>
		<link rel="alternate" type="text/html" href="https://community.paperthin.com/adf-docs/index.php?title=Customize_Application_Components_at_Site_Level&amp;action=history"/>
		<updated>2026-11-01T22:50:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://community.paperthin.com/adf-docs/index.php?title=Customize_Application_Components_at_Site_Level&amp;diff=608&amp;oldid=prev</id>
		<title>Rwest at 02:10, 8 March 2010</title>
		<link rel="alternate" type="text/html" href="https://community.paperthin.com/adf-docs/index.php?title=Customize_Application_Components_at_Site_Level&amp;diff=608&amp;oldid=prev"/>
				<updated>2010-03-08T02:10:36Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 02:10, 8 March 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l12&quot; &gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Steps to override ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Steps to override ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. Create a directory named &amp;quot;ohsu_nav&amp;quot; in your sites /_cs_apps/ directory&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;1. Create a directory named &amp;quot;ohsu_nav&amp;quot; in your sites /_cs_apps/ directory&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. Create a directory named &amp;quot;components&amp;quot; in the site level &amp;quot;ohsu_nav&amp;quot; directory&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2. Create a directory named &amp;quot;components&amp;quot; in the site level &amp;quot;ohsu_nav&amp;quot; directory&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; E.g. /mySite/_cs_apps/ohsu_nav/components/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; E.g. /mySite/_cs_apps/ohsu_nav/components/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rwest</name></author>	</entry>

	<entry>
		<id>https://community.paperthin.com/adf-docs/index.php?title=Customize_Application_Components_at_Site_Level&amp;diff=607&amp;oldid=prev</id>
		<title>Rwest: Created page with '== Overview == Most ADF Applications have various components that handle different behaviors for the application like storing and retrieving data and controlling actions within t…'</title>
		<link rel="alternate" type="text/html" href="https://community.paperthin.com/adf-docs/index.php?title=Customize_Application_Components_at_Site_Level&amp;diff=607&amp;oldid=prev"/>
				<updated>2010-03-08T02:09:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;== Overview == Most ADF Applications have various components that handle different behaviors for the application like storing and retrieving data and controlling actions within t…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
Most ADF Applications have various components that handle different behaviors for the application like storing and retrieving data and controlling actions within the application.  However, ADF Applications are built to be highly extensible so that you can customize the application to meet your sites specific needs.&lt;br /&gt;
&lt;br /&gt;
It is not a best practice to modify application components directly in the ADF.  It is better to make a copy of that component and extend the original then make changes to that copy - leaving the original intact.&lt;br /&gt;
&lt;br /&gt;
== Why would you override a component from an Application ==&lt;br /&gt;
One reason why you may need to override a component is to change the output.  Some components (like the &amp;quot;getNavHTML()&amp;quot; component in the OHSU Navigation application) returns a block of HTML that may need to be different for each site that uses the application.&lt;br /&gt;
&lt;br /&gt;
== Example of overriding a component ==&lt;br /&gt;
The below example uses the OHSU Navigation element as an example.  In this application there is a component called navService.cfc (/ADF/apps/ohsu_nav/components/navService.cfc).  In that component, there is a method called &amp;quot;getNavHTML()&amp;quot; which returns the &amp;amp;lt;ul&amp;amp;gt;&amp;amp;lt;li&amp;amp;gt; for the navigation.  You can override this method to change that content.&lt;br /&gt;
&lt;br /&gt;
=== Steps to override ===&lt;br /&gt;
1. Create a directory named &amp;quot;ohsu_nav&amp;quot; in your sites /_cs_apps/ directory&lt;br /&gt;
2. Create a directory named &amp;quot;components&amp;quot; in the site level &amp;quot;ohsu_nav&amp;quot; directory&lt;br /&gt;
 E.g. /mySite/_cs_apps/ohsu_nav/components/&lt;br /&gt;
3. Copy the /ADF/apps/ohsu_nav/components/navElementService.cfc into your site level /ohsu_nav/components/ directory&lt;br /&gt;
 E.g /mySite/_cs_apps/ohsu_nav/components/navElementService.cfc&lt;br /&gt;
4. Change the &amp;quot;extends&amp;quot; attribute to point to the original navElementService.cfc&lt;br /&gt;
 E.g &amp;lt;component extends=&amp;quot;ADF.apps.ohsu_nav.components.navElementService&amp;quot;&amp;gt;&lt;br /&gt;
5. Remove &amp;lt;em&amp;gt;all&amp;lt;/em&amp;gt; of the methods in the navElementService (the one you just copied - not the original) &amp;lt;em&amp;gt;except&amp;lt;/em&amp;gt; the getNavHTML() method.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;cfcomponent extends=&amp;quot;ADF.apps.ohsu_nav.components.navElementService&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;cffunction name=&amp;quot;getNavHTML&amp;quot; access=&amp;quot;public&amp;quot; returnType=&amp;quot;String&amp;quot;&amp;gt;&lt;br /&gt;
{your code changes}&lt;br /&gt;
&amp;lt;/cffunction&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/cfcomponent&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. [[Reset_ADF|Reset the ADF]]&lt;br /&gt;
&lt;br /&gt;
Now, your component will be loaded and when the render handler calls &amp;quot;application.ohsuNav.navElementService.getNavHTML()&amp;quot; it will use the site level component and any changes you made will be seen in that site.  You can now complete the same steps for any other sites on your server.&lt;br /&gt;
&lt;br /&gt;
[[Category:Customization]]&lt;/div&gt;</summary>
		<author><name>Rwest</name></author>	</entry>

	</feed>