5

Or does Joomla really need the 1.x version? Joomla itself may work mostly fine with newer jQuery versions. The reason it ships with such an old version is compatibility for 3rd party extensions. So if there was some line of php I could use to disable the loading of the jQuery framework? To disable jQuery loading completely you would have to either make ...


4

Have a look at the Module Helper documentation. getModules(): Get modules by position getModules(string $position) : array static since 1.5 Arguments $position string The position of the module Response array An array of module objects and renderModule(): Render the module. renderModule(object $module, array $attribs = array()) : string static since 1.5 ...


3

If you're after a less code heavy way of doing it, you could use a mix of Regular Labs Modules anywhere and Regular Labs Articles Anywhere. Create your modules, and assign them all to a new position called "Random" Create a category called Random Modules Create articles for each of the modules using Module plugin syntax https://www.regularlabs.com/...


2

Depends upon how you change your css files. The JHTML line you have above works, it's just that the version doesn't change unless you force it to. In the beginning of the index.php file in the template you also need to add: $this->setMediaVersion('x.y.z'); where 'x.y.z' is your new version string for your template. Then that string will be used for the ...


2

Adding stylesheets, scripts and declaring php vars is all done inside the main mod_mygallery.php file This is bad. Styles and scripts should be added in layout files to allow overriding with ease. This way unneeded assets can even be removed. Adding JavaScript manually is bad also. You should use Document API instead. You could avoid JS code cluttering ...


2

Yes. It's possible. You have to go to your Joomla administrator panel then: Create a Search page (If you don't have one). Create a Menu item for this search page( If you haven't created it yet). Go to: Extensions > Templates > Styles Select the checkbox of the template you want to be assigned to your search page and then click duplicate. Click on ...


1

Here's a possibile workaround for you to get you going quickly: Include a form field on the template administration tab that points to an existing image file, and include a note that the user should upload the image through Joomla's media manager. That will at least get you started with something that works for the user, even if it's not precisely what you'...


1

Usually i get around these kind of problems with a small custom PHP function. You can include it in you template index.php function thereAreModules ($position) { $modules = JModuleHelper::getModules($position); $ret = false; if (count($modules) > 0) { $ret = true; } return $ret; } Usage: if (thereAreModules('module-position-name-here')) {...


1

Your module is always published. It counts even if it has no content. A feature to exclude empty modules when counting modules in template may get included in 4.0.


1

It's unknown what exactly is your $fields variable, what values it contains (how it has been produced), where you use this code and generally your question lacks context. However, note that when a field is unpublished - then it's not included in the $jcfields array of the article object, for which the field has been assigned as a custom one. Now, given the ...


1

I Feel sheepish All I had to do was go into the Extensions >> Templates menu and assign the Protostar template to those menu items, and bingo. A template that was pretty much designed to be a front end editor.


1

The p element in the module content in the header seems to have a top margin and bottom margin associated with it. You could fix the spacing issue by changing the content of the module from this: <div class="custom"> <p><img style="display: block; border-width: 0px; margin: 0px auto 0px auto;" src="/images/logo.png" width="800" height="...


1

I'm really not sure what you're after, but what I think you're asking for is how to make the category blog that you have designated as your home page show a list of article titles, no intro text. To do that, go to the "Blog Layout" tab of the menu itemand put zeroes in the boxes for Leading Articles and Intro Articles, then put in a number for how many link ...


Only top voted, non community-wiki answers of a minimum length are eligible