Plugin - editing body and inserting scripts
Posted: Sat Nov 10, 2007 8:44 am
Hi,
I have a client who (despite my protests on intrusive advertising) wants to create a popin on his site. I can do this quite easily if I had to do it manually, however instead of just doing it I would like to create a plugin which does this does and then put the extension in the JED (as I've already done before when I had ideas which I think can be re-used).
My question is, to create the plugin, I need to insert scripts in the head and in the body, and edit the body tag such I nsert onload scripts. Can this be done via a plugin? If yes, can someone provide a small example of how to do this?
I've got a background in web application development, but not much background in php / joomla development, so I'm familiar with the concepts but not with the APIs / methodology of doing this.
I have a client who (despite my protests on intrusive advertising) wants to create a popin on his site. I can do this quite easily if I had to do it manually, however instead of just doing it I would like to create a plugin which does this does and then put the extension in the JED (as I've already done before when I had ideas which I think can be re-used).
My question is, to create the plugin, I need to insert scripts in the head and in the body, and edit the body tag such I nsert onload scripts. Can this be done via a plugin? If yes, can someone provide a small example of how to do this?
I've got a background in web application development, but not much background in php / joomla development, so I'm familiar with the concepts but not with the APIs / methodology of doing this.