The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Plugin for Component
PostPosted: Tue Apr 14, 2015 1:36 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 06, 2013 9:34 pm
Posts: 10
There is a component. I want to append JavaScipt file from my plugin on its views. How to do it? onContentAfterDisplay does not work :(


Top
 Profile  
 
 Post subject: Re: Plugin for Component
PostPosted: Tue Apr 14, 2015 2:28 pm 
User avatar
Joomla! Intern
Joomla! Intern

Joined: Mon Apr 13, 2015 11:41 am
Posts: 53
Location: behind your eyes
Check this out https://docs.joomla.org/J3.x:Adding_JavaScript_and_CSS_to_the_page

Why use a plugin and not editing the view?


Top
 Profile  
 
 Post subject: Re: Plugin for Component
PostPosted: Tue Apr 14, 2015 3:03 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Mar 06, 2013 9:34 pm
Posts: 10
Thanks)
I don't want to edit the view because I want to leave a possibility for updating the component.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group