Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [jdocument]

The tag has no usage guidance.

6
votes
2answers
462 views

Control order of loaded scripts

Unfortunatelly I can't register on the joomla forum, so I'll try my best here. Please help, is there any way to control the order of loaded scripts. Example: in my template's index.php I do: $...
0
votes
0answers
102 views

addScript breaking frontend editing

I have a piece of code in a component that I am building that loads maps in a tab in the admin view. The code works perfectly on the admin side, but when I attempt to add frontend editing, it's ...
1
vote
1answer
30 views

How to add <base target=“…”> when using tmpl=component

I am planning to use tmpl=component within the URL for some pages on my site to enable them to be embedded in iframes conveniently and only show the document content. However, I want any links ...
2
votes
2answers
572 views

Problem with JFactory::getDocument() when module is placed in {loadposition}

I got stuck. I'm coding a simple module which will be placed/visible only on com_content article pages. This module fetches keywords from the current article, and to avoid an additional database query ...
2
votes
0answers
439 views

How to access a component variable from a module? [closed]

I want to access a component variable (a simple array) from a module without using session (no persistence across page loads necessary in my case), JRequest/JInput, global, plugin nor model. Is it ...
5
votes
3answers
1k views

Load javascript script before </body> closing tag

I'm using $doc->addScript($path.'/js/script.js'); to load a Javascript file inside the head section. Is there any native way to load it in the bottom of the page, before the closing </body> ...
2
votes
1answer
929 views

Stop Joomla! 3.4.1 from including scripts in custom component pages [duplicate]

I'm trying to prevent Joomla! 3.4.1 from loading certain default scripts in the front-end template when a custom component is displayed. I am excluding the scripts in the template index.php file as ...
2
votes
1answer
424 views

How to set html5 property within template.php

Apologize for my bad php knowledge, how to set html5 flag for the current document? Something like: $document->setHtml5(true); This to be executed in template.php where we do not have $document. ...
2
votes
2answers
856 views

Changing order of javascripts on load

I have written my own template and some part of the content is as the following: <?php // Add JavaScript Frameworks JHtml::_('bootstrap.framework'); // Add Stylesheets JHtmlBootstrap::loadCss(); /...
3
votes
1answer
306 views

Load css file using absolute path for my component?

My site has configured multilanguage, i develop now a small component and need physical path of my component, and if i use JPATH_COMPONENT_ADMINISTRATOR then i get still http://example.com.com/...
9
votes
1answer
7k views

Add JavaScript with $doc->addScript with async=“true”

is it possible to use the addScript with async="true"? I found a hack that uses some clever quoting to trick the embed function, but it seems as if this could be a native feature: $doc->addScript(...