Step1:
download this extension from the joomla webiste link is:
<a href="http://extensions.joomla.org/extensions/3115/details"> Attachment </a>
Step2:
Unzip this extension and read the "INSTALL.txt" to how to install or upgrade this attachment.
Step3:
A).
To show attachments for all users, change some setting from the admin,
go to:
1). admin->components->article attachment then click on "parameters"
look for "Who can see attachments?" select "Anyone"
B).
To show attachment while article listing.
1).
file name :
\components\com_content\views\category\view.html.php
Line no:
after 157
add
1: $dispatcher =& JDispatcher::getInstance();
Line no:
after 191
add
2:
JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onPrepareContent', array (& $item, & $item->params, 0));
$item->event->afterDisplayContent = trim(implode("\n", $results));
2).
file name : \components\com_content\views\category\tmpl\default_items.php
Line no:
where ever u want to show attachment file link
add
echo $item->text;
#1 by chandresh - July 2nd, 2009 at 17:13
hi i have problem and i want to urgent solution
see top menu event reservation in this menu i attached one component like event,but i want to attach in artical
see topmenu about joomla in this you can see one artical
in this artical i want to attach event component
but i cannot do this so please help me
#2 by jitendra - July 6th, 2009 at 12:15
hello dear,
i don’t get your question.
u create event. what it’s ? it’s a component or plugin.
if u want add something as in article component like attachment for your component then please make plugin.
or
plesae let me know what u want exaclty…?
@ chandresh