Search found 6 matches

by saltoricco
Thu Nov 29, 2007 9:43 pm
Forum: Joomla! Coding 101
Topic: Code above document header
Replies: 13
Views: 1305

Re: Code above document header

Maybe a helpful question for me to ask would be what would the PHP file at the top of the Joomla! template output? Hi Ian, The PHP above the header doesn't output anything. It loads data and fills data structures that are used in the header (actually in the JavaScript linked in by the header). Yes ...
by saltoricco
Thu Nov 29, 2007 8:40 pm
Forum: Joomla! Coding 101
Topic: Code above document header
Replies: 13
Views: 1305

Re: Code above document header

Hi Ian, I try to keep everything in a component called "glidewx". One of its views "components/com_glidewx/views/sites/view.html.php" loads the Google Maps Java Script generating code:   function display($tpl = null) { ...     $document    =& JFactory::getDocument(); ... &nb...
by saltoricco
Thu Nov 29, 2007 4:56 pm
Forum: Joomla! Coding 101
Topic: Code above document header
Replies: 13
Views: 1305

Re: Code above document header

Hi, you're aware that the templates *are* PHP code, right? ... Thanks, CirTap. I'm a Joomla n00b, so that probably explains most of it. Ian is right, I wanted the PHP code block above the HTML document. Maybe we're talking about two different templates, the Joomla one and the one from the component...
by saltoricco
Thu Nov 29, 2007 5:31 am
Forum: Joomla! Coding 101
Topic: Code above document header
Replies: 13
Views: 1305

Re: Code above document header

ianmac wrote:Take a look at this thread...http://forum.joomla.org/index.php/topic,217394.0.html

Uh, yes Ian, that raw view mode is very handy. Thanks again!!

Holger
by saltoricco
Thu Nov 29, 2007 2:51 am
Forum: Joomla! Coding 101
Topic: Code above document header
Replies: 13
Views: 1305

Re: Code above document header

Can you clarify exactly what you are trying to do?  It isn't exactly clear... Is the PHP Script supposed to output something that should appear above the HTML document header?  If that is the case, then I would simply add a module position in the template and create a module that would pr...
by saltoricco
Thu Nov 29, 2007 1:38 am
Forum: Joomla! Coding 101
Topic: Code above document header
Replies: 13
Views: 1305

Code above document header

Hi, I'm looking for a way to add a PHP script block above the HTML document header. JDocument doesn't seem to allow for that. I'd like to do something like that in the view class:   $doc =& JFactory::getDocument();     $doc->addPhpInclude('path/to/script.php'); The reason is I'm integ...