[geeklog-devel] Javascript Functions

Marc mvonahn at techtracker.com
Fri Jun 27 00:53:32 EDT 2003


I use the custom layout site header for VersionTracker 
(http://www.versiontracker.com).  I did need to fix the variable call, 
but other than that it works like a charm.  Go to the versiontracker 
site, select a product, all the feedback is served by GL.


On Thursday, June 26, 2003, at 07:16 PM, Blaine Lang wrote:

> What would be the recommended way to include Javascript functions in
> plugins?
>
> 1) Have users add the function to the template header.thtml file ?
> 2) Output it before calling COM_siteHeader - messes up the Tags and 
> HTML
> 3) Echo out a <head> then the JS script and </head> - Messes up the 
> HTML as
> well
>
> Whats the easiest and best way to support this ?
> - I suggest we come up with a way to extend COM_siteHeader so that it 
> can be
> passed the name of a JS script to include as it's building the header 
> page
>
> BTW:
> While looking at COM_siteHeader, I saw that there is the feature to 
> replace
> the complete header with your own function. Neat - has anyone seen this
> implemented - maybe not because I believe it's broken.
>
> There is a problem is with this code - it's checking for a non-existing
> $_CONF variable
>     $function = $_CONF['layout'] . '_siteHeader';
>
>
> _______________________________________________
> geeklog-devel mailing list
> geeklog-devel at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-devel




More information about the geeklog-devel mailing list