<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A K Chauhan's Blog &#187; Joomla</title>
	<atom:link href="http://www.akchauhan.com/tag/joomla/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.akchauhan.com</link>
	<description>PHP, MySql, JavaScript, JQuery, Prototype, Drupal, HTML, CSS and more...</description>
	<lastBuildDate>Sun, 04 Jul 2010 20:19:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Add and show attachments in Joomla Article</title>
		<link>http://www.akchauhan.com/add-and-show-attachments-in-joomla-article/</link>
		<comments>http://www.akchauhan.com/add-and-show-attachments-in-joomla-article/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 19:16:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Article]]></category>

		<guid isPermaLink="false">http://www.akchauhan.com/?p=405</guid>
		<description><![CDATA[Step1: download this extension from the joomla webiste link is: &#60;a href=&#34;http://extensions.joomla.org/extensions/3115/details&#34;&#62; Attachment &#60;/a&#62; &#160; Step2: Unzip this extension and read the &#34;INSTALL.txt&#34; to how to install or upgrade this attachment. &#160; Step3: A&#41;. &#160; To show attachments for all users, change some setting from the admin, go to: 1&#41;. admin-&#38;gt;components-&#38;gt;article attachment then click on [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Step1<span style="color: #339933;">:</span> 
         download this extension from the joomla webiste <span style="color: #990000;">link</span> is<span style="color: #339933;">:</span>
         <span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://extensions.joomla.org/extensions/3115/details&quot;</span><span style="color: #339933;">&gt;</span> Attachment <span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
Step2<span style="color: #339933;">:</span> 
         Unzip this extension and read the <span style="color: #0000ff;">&quot;INSTALL.txt&quot;</span> to how to install or upgrade this attachment<span style="color: #339933;">.</span>
&nbsp;
Step3<span style="color: #339933;">:</span>
        A<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
       To show attachments <span style="color: #b1b100;">for</span> all users<span style="color: #339933;">,</span> change some setting from the admin<span style="color: #339933;">,</span>
        go to<span style="color: #339933;">:</span> 
               <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>  admin<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>components<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>article attachment then click on <span style="color: #0000ff;">&quot;parameters&quot;</span> 
                     look <span style="color: #b1b100;">for</span>  <span style="color: #0000ff;">&quot;Who can see attachments?&quot;</span> select <span style="color: #0000ff;">&quot;Anyone&quot;</span>
&nbsp;
       B<span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
&nbsp;
       To show attachment <span style="color: #b1b100;">while</span> article listing<span style="color: #339933;">.</span>
        <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
           <span style="color: #990000;">file</span> name <span style="color: #339933;">:</span>		
			\components\com_content\views\category\view<span style="color: #339933;">.</span>html<span style="color: #339933;">.</span>php
            Line no<span style="color: #339933;">:</span>
			after <span style="color: #cc66cc;">157</span>
	    add
			<span style="color: #cc66cc;">1</span><span style="color: #339933;">:</span>	<span style="color: #000088;">$dispatcher</span>	<span style="color: #339933;">=&amp;</span>amp<span style="color: #339933;">;</span> JDispatcher<span style="color: #339933;">::</span><span style="color: #004000;">getInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
&nbsp;
	   Line no<span style="color: #339933;">:</span>
			after <span style="color: #cc66cc;">191</span>		
	   add
			<span style="color: #cc66cc;">2</span><span style="color: #339933;">:</span>				
				JPluginHelper<span style="color: #339933;">::</span><span style="color: #004000;">importPlugin</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'content'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				<span style="color: #000088;">$results</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$dispatcher</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>trigger<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'onPrepareContent'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$item</span><span style="color: #339933;">,</span> <span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>params<span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
				<span style="color: #000088;">$item</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>event<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>afterDisplayContent <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">implode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$results</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>
           <span style="color: #990000;">file</span> name <span style="color: #339933;">:</span> \components\com_content\views\category\tmpl\default_items<span style="color: #339933;">.</span>php
        	Line no<span style="color: #339933;">:</span>
			where ever u want to show attachment <span style="color: #990000;">file</span> <span style="color: #990000;">link</span>
&nbsp;
		add
			<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>text<span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.akchauhan.com/add-and-show-attachments-in-joomla-article/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
