<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.joomla.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;feed=atom&amp;action=history</id>
		<title>Add text to an article using template overrides - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;action=history"/>
		<updated>2013-05-26T03:45:52Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.3</generator>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=68625&amp;oldid=prev</id>
		<title>Hutchy68: edit &lt;code&gt; tags to &lt;pre&gt; tags for better page layout</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=68625&amp;oldid=prev"/>
				<updated>2012-07-23T23:12:37Z</updated>
		
		<summary type="html">&lt;p&gt;edit &amp;lt;code&amp;gt; tags to &amp;lt;pre&amp;gt; tags for better page layout&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:12, 23 July 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Automatically add text to an article in Joomla! If you want to add standard text (&amp;quot;This text has been added automatically by Joomla!&amp;quot;) to the end of each article that is submitted from the front end, follow these steps:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Automatically add text to an article in Joomla! If you want to add standard text (&amp;quot;This text has been added automatically by Joomla!&amp;quot;) to the end of each article that is submitted from the front end, follow these steps:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Create a template override for the file &amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&amp;lt;joomla_root&amp;gt;/components/com_content/views/article/tmpl/form.php&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Create a template override for the file &amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;&amp;lt;joomla_root&amp;gt;/components/com_content/views/article/tmpl/form.php&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#* Create a folder called &amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/&amp;lt;your template&amp;gt;/html/com_content/article&amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. &lt;/del&gt;For example, for the &amp;quot;beez&amp;quot; template this folder is called &amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/beez/html/com_content/article&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#* Create a folder called &amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/&amp;lt;your template&amp;gt;/html/com_content/article&amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/pre&lt;/ins&gt;&amp;gt;For example, for the &amp;quot;beez&amp;quot; template this folder is called &amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/beez/html/com_content/article&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#* Copy the standard &amp;lt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt;form.php&amp;lt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;code&lt;/del&gt;&amp;gt; file from the components folder above to the templates folder. Note: If you already have a form.php file in this folder, don't copy the file. Just edit it as indicated below.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#* Copy the standard &amp;lt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt;form.php&amp;lt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pre&lt;/ins&gt;&amp;gt; file from the components folder above to the templates folder. Note: If you already have a form.php file in this folder, don't copy the file. Just edit it as indicated below.&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit the copy of the file you made in the override folder as follows. Find the line &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Edit the copy of the file you made in the override folder as follows. Find the line &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  var text = &amp;lt;?php echo $this-&amp;gt;editor-&amp;gt;getContent( 'text' ); ?&amp;gt;&amp;lt;/source&amp;gt; This is line 49 in the 1.5.8 version of this file. Change this to the following: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  var text = &amp;lt;?php echo $this-&amp;gt;editor-&amp;gt;getContent( 'text' ); ?&amp;gt;&amp;lt;/source&amp;gt; This is line 49 in the 1.5.8 version of this file. Change this to the following: &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Hutchy68</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=32536&amp;oldid=prev</id>
		<title>LeahGrrl at 13:15, 7 December 2010</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=32536&amp;oldid=prev"/>
				<updated>2010-12-07T13:15:51Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:15, 7 December 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{review}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{review}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This tip tells you how to change Joomla! to automatically &lt;/del&gt;add text to an article&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. Say, for example, that &lt;/del&gt;you want to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;have some &lt;/del&gt;standard text (&amp;quot;This text has been added automatically by Joomla!&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/del&gt;&amp;quot;) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;added &lt;/del&gt;to the end of each article that is submitted from the front end&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;. Here is how you can do this.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Automatically &lt;/ins&gt;add text to an article &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;in Joomla! If &lt;/ins&gt;you want to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;add &lt;/ins&gt;standard text (&amp;quot;This text has been added automatically by Joomla!&amp;quot;) to the end of each article that is submitted from the front end&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, follow these steps:&lt;/ins&gt;&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Create a template override for the file &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/components/com_content/views/article/tmpl/form.php&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# Create a template override for the file &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/components/com_content/views/article/tmpl/form.php&amp;lt;/code&amp;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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#* Create a folder called &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/&amp;lt;your template&amp;gt;/html/com_content/article&amp;lt;code&amp;gt;. For example, for the &amp;quot;beez&amp;quot; template this folder is called &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/beez/html/com_content/article&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;#* Create a folder called &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/&amp;lt;your template&amp;gt;/html/com_content/article&amp;lt;code&amp;gt;. For example, for the &amp;quot;beez&amp;quot; template this folder is called &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/beez/html/com_content/article&amp;lt;/code&amp;gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  $this-&amp;gt;article-&amp;gt;text .= $addToText;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;  $this-&amp;gt;article-&amp;gt;text .= $addToText;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;	}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;	}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  echo $this-&amp;gt;editor-&amp;gt;getContent( 'text' ); ?&amp;gt; &amp;lt;/source&amp;gt; This is checking that the text to be added is not already in the article. If it is not, then it is added to the article. &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Obviously, you would &lt;/del&gt;change the text in the variable &amp;lt;code&amp;gt;$addToText&amp;lt;/code&amp;gt; to whatever you need.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160;  echo $this-&amp;gt;editor-&amp;gt;getContent( 'text' ); ?&amp;gt; &amp;lt;/source&amp;gt; This is checking that the text to be added is not already in the article. If it is not, then it is added to the article. &amp;#160;&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Don't forget to &lt;/ins&gt;change the text in the variable &amp;lt;code&amp;gt;$addToText&amp;lt;/code&amp;gt; to whatever you need.&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;That's it. Now, when you edit an article from the front end, this text will automatically be added. Note that this change does not affect editing from the back end. Also, since this is done as a template override, it only affects pages that use the overridden template.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;That's it. Now, when you edit an article from the front end, this text will automatically be added. Note that this change does not affect editing from the back end. Also, since this is done as a template override, it only affects pages that use the overridden template.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>LeahGrrl</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=30883&amp;oldid=prev</id>
		<title>Batch1211 at 09:47, 20 September 2010</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=30883&amp;oldid=prev"/>
				<updated>2010-09-20T09:47:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:47, 20 September 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Article Management]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Article Management]]&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Templates]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Templates]]&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Template Development]]&lt;/ins&gt;&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Tutorials]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Batch1211</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=30716&amp;oldid=prev</id>
		<title>Batch1211 at 14:42, 17 September 2010</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=30716&amp;oldid=prev"/>
				<updated>2010-09-17T14:42:07Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:42, 17 September 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Tips and tricks 1.5]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Tips and tricks 1.5]]&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Article Management]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Article Management]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Template Development&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Templates&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Batch1211</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=30714&amp;oldid=prev</id>
		<title>Batch1211 at 14:39, 17 September 2010</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=30714&amp;oldid=prev"/>
				<updated>2010-09-17T14:39:28Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&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 valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 14:39, 17 September 2010&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Tips and tricks]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Tips and tricks]]&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Tips and tricks 1.5]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Tips and tricks 1.5]]&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Article Management]]&lt;/ins&gt;&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;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Template Development]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Batch1211</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=13969&amp;oldid=prev</id>
		<title>Dean IconWeb: Automatically add text to an article moved to Add text to an article using template overrides: The article uses template override</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=13969&amp;oldid=prev"/>
				<updated>2009-04-18T05:11:24Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;a href=&quot;/Automatically_add_text_to_an_article&quot; class=&quot;mw-redirect&quot; title=&quot;Automatically add text to an article&quot;&gt;Automatically add text to an article&lt;/a&gt; moved to &lt;a href=&quot;/Add_text_to_an_article_using_template_overrides&quot; title=&quot;Add text to an article using template overrides&quot;&gt;Add text to an article using template overrides&lt;/a&gt;: The article uses template override&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:11, 18 April 2009&lt;/td&gt;
			&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Dean IconWeb</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=12419&amp;oldid=prev</id>
		<title>Dextercowley: new tip on adding text automatically when editing in the front end</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=Add_text_to_an_article_using_template_overrides&amp;diff=12419&amp;oldid=prev"/>
				<updated>2009-01-06T23:25:04Z</updated>
		
		<summary type="html">&lt;p&gt;new tip on adding text automatically when editing in the front end&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{review}}&lt;br /&gt;
This tip tells you how to change Joomla! to automatically add text to an article. Say, for example, that you want to have some standard text (&amp;quot;This text has been added automatically by Joomla!.&amp;quot;) added to the end of each article that is submitted from the front end. Here is how you can do this.&lt;br /&gt;
# Create a template override for the file &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/components/com_content/views/article/tmpl/form.php&amp;lt;/code&amp;gt;&lt;br /&gt;
#* Create a folder called &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/&amp;lt;your template&amp;gt;/html/com_content/article&amp;lt;code&amp;gt;. For example, for the &amp;quot;beez&amp;quot; template this folder is called &amp;lt;code&amp;gt;&amp;lt;joomla_root&amp;gt;/templates/beez/html/com_content/article&amp;lt;/code&amp;gt;.&lt;br /&gt;
#* Copy the standard &amp;lt;code&amp;gt;form.php&amp;lt;/code&amp;gt; file from the components folder above to the templates folder. Note: If you already have a form.php file in this folder, don't copy the file. Just edit it as indicated below.&lt;br /&gt;
# Edit the copy of the file you made in the override folder as follows. Find the line &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
   var text = &amp;lt;?php echo $this-&amp;gt;editor-&amp;gt;getContent( 'text' ); ?&amp;gt;&amp;lt;/source&amp;gt; This is line 49 in the 1.5.8 version of this file. Change this to the following: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;  &lt;br /&gt;
   var text = &amp;lt;?php &lt;br /&gt;
	$addToText = '&amp;lt;p&amp;gt;Joomla! automatically added this text.&amp;lt;/p&amp;gt;'; &lt;br /&gt;
	if (strpos($this-&amp;gt;article-&amp;gt;text, $addToText) == 0) {&lt;br /&gt;
           $this-&amp;gt;article-&amp;gt;text .= $addToText;&lt;br /&gt;
	}&lt;br /&gt;
   echo $this-&amp;gt;editor-&amp;gt;getContent( 'text' ); ?&amp;gt; &amp;lt;/source&amp;gt; This is checking that the text to be added is not already in the article. If it is not, then it is added to the article. Obviously, you would change the text in the variable &amp;lt;code&amp;gt;$addToText&amp;lt;/code&amp;gt; to whatever you need.&lt;br /&gt;
&lt;br /&gt;
That's it. Now, when you edit an article from the front end, this text will automatically be added. Note that this change does not affect editing from the back end. Also, since this is done as a template override, it only affects pages that use the overridden template.&lt;br /&gt;
&lt;br /&gt;
For more information on template overrides, see the tip [[How to override the output from the Joomla! core]].&lt;br /&gt;
&lt;br /&gt;
[[Category:Tips and tricks]]&lt;br /&gt;
[[Category:Tips and tricks 1.5]]&lt;/div&gt;</summary>
		<author><name>Dextercowley</name></author>	</entry>

	</feed>