<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Clogan</id>
	<title>Joomla! Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.sandbox.joomla.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Clogan"/>
	<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/Special:Contributions/Clogan"/>
	<updated>2026-07-03T15:35:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Developing_a_MVC_Component/Introduction&amp;diff=13727</id>
		<title>J1.5 talk:Developing a MVC Component/Introduction</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J1.5_talk:Developing_a_MVC_Component/Introduction&amp;diff=13727"/>
		<updated>2009-03-22T21:43:40Z</updated>

		<summary type="html">&lt;p&gt;Clogan: /* Use lowercase file and folder names in your components! */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;is there anyway to make the font for &amp;quot;.source-php .kw1&amp;quot; a more printer friendly color yet still be distinguishable as important text?  At the very least lets make the font &amp;quot;bold&amp;quot; so it is stronger in contrast.  Even in the highest quality setting on printer it appears very washed out to these old eyes.&lt;br /&gt;
&lt;br /&gt;
You can add your own stylesheet to override any of the system-generated styles by adding a special subpage under your user page.  In your case, create the page [[User:N6REJ/monobook.css]] and add your CSS rules into it. [[User:Chris Davenport|Chris Davenport]] 08:55, 19 January 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
== Use lowercase file and folder names in your components! ==&lt;br /&gt;
&lt;br /&gt;
When creating custom components try to use file names and folder names with all lowercase letters.  I had created some complex MVC components, naming my folders and files after my classes in the component.  This meant that I had upper and lowercase letters in the folder and file names.  During testing on my Windows machine everything worked fine, but when I transfered to a remote host running unix, nothing worked properly.  The errors provided by the framework were only slightly helpful in identifying the root cause which was that the JPath:: class implicitly calls strtolower() on all paths.  Therefore my files were not being found by the framework.  I hope this helps save someone some time.&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=Talk:Component&amp;diff=13726</id>
		<title>Talk:Component</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=Talk:Component&amp;diff=13726"/>
		<updated>2009-03-22T21:37:28Z</updated>

		<summary type="html">&lt;p&gt;Clogan: Use lowercase folder and file names.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When creating custom components try to use file names and folder names with all lowercase letters.  I had created some complex MVC components, naming my folders and files after my classes in the component.  This meant that I had upper and lowercase letters in the folder and file names.  During testing on my Windows machine everything worked fine, but when I transfered to a remote host running unix, nothing worked properly.  The errors provided by the framework were only slightly helpful in identifying the root cause which was that the JPath:: class implicitly calls strtolower() on all paths.  Therefore my files were not being found by the framework.  I hope this helps save someone some time.&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13184</id>
		<title>User:Clogan</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13184"/>
		<updated>2009-02-12T09:14:53Z</updated>

		<summary type="html">&lt;p&gt;Clogan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am an electrical engineer from Austin, TX, USA, and have been a professional programmer since 2000 A.D.  My expertise is in embedded firmware for MP3 players and other portable electronics.  I have been a PHP programmer for longer than I&#039;ve been a professional programmer. I was turned on to Joomla about a month ago, and to show my gratitude for this development platform I will try to add as much useful documentation as I can.  I am also a singer/songwriter and a recovering drug addict.  If you have questions about Joomla, programming, music, or you think you may have a problem with drugs and alcohol, please let me know and we can talk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.cullenlogan.com&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.cullenlogan.com/music&lt;br /&gt;
&lt;br /&gt;
You can find me on facebook by my email address: cullenlogan at cullenlogan dot com&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Cullen1.jpg]]&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13183</id>
		<title>User:Clogan</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13183"/>
		<updated>2009-02-12T09:12:53Z</updated>

		<summary type="html">&lt;p&gt;Clogan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am an electrical engineer from Austin, TX, USA, and has been a professional programmer for since 2000 A.D.  My expertise is in embedded firmware for MP3 players and other portable electronics.  I have been a PHP programmer for longer than I&#039;ve been a professional programmer. I was turned on to Joomla about a month ago, and to show my gratitude for this development platform I will try to add as much useful documentation as I can.  I am also a singer/songwriter and a recovering drug addict.  If you have questions about Joomla, programming, music, or you think you may have a problem with drugs and alcohol, please let me know and we can talk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.cullenlogan.com&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.cullenlogan.com/music&lt;br /&gt;
&lt;br /&gt;
You can find me on facebook by my email address: cullenlogan at cullenlogan dot com&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
[[Image:Cullen1.jpg]]&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=File:Cullen1.jpg&amp;diff=13182</id>
		<title>File:Cullen1.jpg</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=File:Cullen1.jpg&amp;diff=13182"/>
		<updated>2009-02-12T09:11:39Z</updated>

		<summary type="html">&lt;p&gt;Clogan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Licensing: ==&lt;br /&gt;
{{PD}}&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13181</id>
		<title>User:Clogan</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13181"/>
		<updated>2009-02-12T09:01:57Z</updated>

		<summary type="html">&lt;p&gt;Clogan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am an electrical engineer from Austin, TX, USA, and has been a professional programmer for since 2000 A.D.  My expertise is in embedded firmware for MP3 players and other portable electronics.  I have been a PHP programmer for longer than I&#039;ve been a professional programmer. I was turned on to Joomla about a month ago, and to show my gratitude for this development platform I will try to add as much useful documentation as I can.  I am also a singer/songwriter and a recovering drug addict.  If you have questions about Joomla, programming, music, or you think you may have a problem with drugs and alcohol, please let me know and we can talk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.cullenlogan.com&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.cullenlogan.com/music&lt;br /&gt;
&lt;br /&gt;
You can find me on facebook by my email address: cullenlogan at cullenlogan dot com&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13180</id>
		<title>User:Clogan</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13180"/>
		<updated>2009-02-12T08:57:38Z</updated>

		<summary type="html">&lt;p&gt;Clogan: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am an electrical engineer from Austin, TX, USA, and has been a professional programmer for since 2000 A.D.  My expertise is in embedded firmware for MP3 players and other portable electronics.  I have been a PHP programmer for longer than I&#039;ve been a professional programmer. I was turned on to Joomla about a month ago, and to show my gratitude for this development platform I will try to add as much useful documentation as I can.  I am also a singer/songwriter and a recovering drug addict.  If you have questions about Joomla, programming, music, or you think you may have a problem with drugs and alcohol, please let me know and we can talk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.cullenlogan.com&amp;lt;br&amp;gt;&lt;br /&gt;
http://www.cullenlogan.com/music&lt;br /&gt;
&lt;br /&gt;
You can find me on facebook by my email address: cullenlogan@cullenlogan.com&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13179</id>
		<title>User:Clogan</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=User:Clogan&amp;diff=13179"/>
		<updated>2009-02-12T08:57:13Z</updated>

		<summary type="html">&lt;p&gt;Clogan: New page: I am an electrical engineer from Austin, TX, USA, and has been a professional programmer for since 2000 A.D.  My expertise is in embedded firmware for MP3 players and other portable electr...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am an electrical engineer from Austin, TX, USA, and has been a professional programmer for since 2000 A.D.  My expertise is in embedded firmware for MP3 players and other portable electronics.  I have been a PHP programmer for longer than I&#039;ve been a professional programmer. I was turned on to Joomla about a month ago, and to show my gratitude for this development platform I will try to add as much useful documentation as I can.  I am also a singer/songwriter and a recovering drug addict.  If you have questions about Joomla, programming, music, or you think you may have a problem with drugs and alcohol, please let me know and we can talk.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.cullenlogan.com&lt;br /&gt;
http://www.cullenlogan.com/music&lt;br /&gt;
&lt;br /&gt;
You can find me on facebook by my email address: cullenlogan@cullenlogan.com&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
	<entry>
		<id>https://docs.sandbox.joomla.org/index.php?title=J3.x:Adding_JavaScript_and_CSS_to_the_page&amp;diff=13178</id>
		<title>J3.x:Adding JavaScript and CSS to the page</title>
		<link rel="alternate" type="text/html" href="https://docs.sandbox.joomla.org/index.php?title=J3.x:Adding_JavaScript_and_CSS_to_the_page&amp;diff=13178"/>
		<updated>2009-02-12T08:28:03Z</updated>

		<summary type="html">&lt;p&gt;Clogan: Added code example for adding dynamically generated javascript functions to the HEAD of a page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{stub}}&lt;br /&gt;
&lt;br /&gt;
To have a well-formed XHTML document, you must put all references to Javascript and CSS files within the &amp;lt;head&amp;gt; portion. Since Joomla! generates all of the HTML that makes up a page before output, it is possible to add these references to the &amp;lt;head&amp;gt; tag from your extension. To accomplish this, you first need to get a reference to the current document object:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$document =&amp;amp; JFactory::getDocument();&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add a Javascript file, use this code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$document-&amp;gt;addScript($url);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For a stylesheet, use this code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$document-&amp;gt;addStyleSheet($url);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you want to add custom HTML to the head tag, use this code:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$document-&amp;gt;addCustomTag($html);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Using the $document-&amp;gt;addCustomTag() API may be used to insert any type of HTML into the HEAD tag.  For instance you may have some javascript code that must be generated dynamically using PHP code (and therefor is not in a .js file), and then placed into the HEAD.  The below shows some sample code to accomplish just that.  The code is used to define a custom tool tip that takes advantage of mootools.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    function getToolTipJS($toolTipVarName, $toolTipClassName){&lt;br /&gt;
        $javascript = &amp;quot;&amp;lt;script type=\&amp;quot;text/javascript\&amp;quot;&amp;gt;\n\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;window.addEvent(\&amp;quot;domready\&amp;quot;, function(){\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;    var $toolTipVarName = new Tips(\$\$(&#039;.&amp;quot; . $toolTipVarName . &amp;quot;&#039;), {\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;        className: &#039;&amp;quot; . $toolTipClassName . &amp;quot;&#039;,\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;        initialize:function(){\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;            this.fx = new Fx.Style(this.toolTip, &#039;opacity&#039;, {duration: 500, wait: false}).set(0);\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;        },\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;        onShow: function(toolTip) {\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;            this.fx.start(1);\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;        },\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;        onHide: function(toolTip) {\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;            this.fx.start(0);\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;        }\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;    });\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;});\n\n&amp;quot;;&lt;br /&gt;
        $javascript .= &amp;quot;&amp;lt;/script&amp;gt;\n\n&amp;quot;;&lt;br /&gt;
        return $javascript;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    $document-&amp;gt;addStyleSheet(&amp;quot;/joomla/components/com_mycustomcomponent/css/mytooltip.css&amp;quot;,&#039;text/css&#039;,&amp;quot;screen&amp;quot;);&lt;br /&gt;
    $document-&amp;gt;addCustomTag(getToolTipJS(&amp;quot;mytool&amp;quot;,&amp;quot;MyToolTip&amp;quot;));&lt;br /&gt;
    &lt;br /&gt;
    &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
To make the above code usable on any page, you would need a corresponding style sheet added to the HEAD that contains information for the new Tool Tip class.  The contents of mytooltip.css are beyond the scope of this document.  This example is not even entirely useful however the methods used here can be used to insert any type of javascript into the HEAD of a document.  I use it most when I have forms with &amp;lt;SELECT&amp;gt; elements that need to be filled in with information from a database.  Then when the user selects an &amp;lt;OPTION&amp;gt; in the &amp;lt;SELECT&amp;gt; element some dynamically generated javascript function will be called to perform different actions based on what was selected.  I am sure you will find many other applications for this technique.  One last thing to note is the use of the window.addEvent() function in the javascript created.  For cross-browser compatibility it would be wiser to use event listeners.  Information on event listeners can be found in almost any javascript/DOM documentation.&lt;br /&gt;
&lt;br /&gt;
[[Category:Development]]&lt;/div&gt;</summary>
		<author><name>Clogan</name></author>
	</entry>
</feed>