Skip to main content

Questions tagged [jhtml]

For questions regarding JHTML and its replacement HTMLHelper.

Filter by
Sorted by
Tagged with
9 votes
5 answers
3k views

Why use addStyleSheet or JHtml::stylesheet over just linking a CSS file?

According to the wiki page Adding Javascript and CSS to the Page, you can add a stylesheet with addStyleSheet like this: $document = JFactory::getDocument(); $document->addStyleSheet($url); Or ...
Flimm's user avatar
  • 481
7 votes
3 answers
549 views

JHtml Tabs have no IDs - how can I specify them?

Using the below code, I can successfully create the tabs that I need, however, the Tabs do not contain any IDs for specific styling or jQuery work. There are a variable number of tabs, depending on ...
GDP's user avatar
  • 7,715
6 votes
3 answers
5k views

What does JHtml::_ do?

I've seen code like this: JHtml::_("script", "path/to/script.js"); JHtml::_("stylesheet", "path/to/stylesheet.css"); JHtml::_("jquery.framework"); What does the underscore function do here?
Flimm's user avatar
  • 481
6 votes
1 answer
1k views

How can I use JHtml to create Vertical Tabs

Using this standard JHtml code, I can generate Horizontal tabs (across the top) without problem. I've been tinkering with the $options array to set it up, but JHtml seems to have changed a bunch, and ...
GDP's user avatar
  • 7,715
5 votes
1 answer
644 views

How to use JHtml::booleanlist with btn-group

In the front-end I have a code as below jimport( 'joomla.html.html.select' ); echo JHtmlSelect::booleanlist('published',null,$this->book->published,'Yes','No') What I see is as below What I ...
Malaiselvan's user avatar
  • 2,731
4 votes
1 answer
3k views

Is it possible to load a newer jQuery version?

Is it possible to override the native JHtml::_('jquery.framework') loaded by Joomla, using some line of php? I understand I could replace this line in my template. But since I am using a template ...
TVBZ's user avatar
  • 213
4 votes
1 answer
476 views

How do I use Joomla's built-in cache busting technique for scripts and stylesheets?

JHtml::script and JHtml::stylesheet have a cache busting technique that doesn't seem to be documented clearly. How do I go about using it?
Flimm's user avatar
  • 481
4 votes
3 answers
2k views

How do I set options for JHtmlTabs with Bootstrap

According to Using the JHtmlTabs class in a component, several options may be specified for the tabs being rendered. However, using the example, none of the events fire, and the neither the initial "...
GDP's user avatar
  • 7,715
3 votes
1 answer
429 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/...
jExchange's user avatar
  • 125
3 votes
1 answer
2k views

How to select predefined options in an custom form list-field?

I'm trying to pre-select several options in a custom form field. I created a new JFormField which extends JFormFieldList and gets its values from my database. This is my current code: protected ...
Johannes K.'s user avatar
3 votes
2 answers
657 views

How can I change the Class of SELECT fields that Joomla generates'

I've disable chosen.js so that all my <select> tags are plain HTML, but am so far unable to change the default class of inputbox to one of my choosing, (specificially from the Search Tools ...
GDP's user avatar
  • 7,715
3 votes
1 answer
837 views

Chosen on AJAX content

I am working on a site (custom component and template) where I want some links to have their content shown in a popup. The popup itself seems to work fine, but I noticed the select boxes aren't ...
Tom's user avatar
  • 43
3 votes
1 answer
340 views

Language changing only after page refresh

I have multilingual (fa/en) Joomla 3.6.2 site using Protostar template. The problem is when I click on the fa - (persian flag) or UK flag, the lang and dir tag does not change, but when I hit the ...
David Bereihi's user avatar
2 votes
1 answer
269 views

Override JHtml (HTMLHelper) class methods

I'm developing a custom Joomla template and have unset a lot of the core dependencies, such as jQuery and Bootstrap in the template's index.php. The problem now is that the core extensions call some ...
Lodder's user avatar
  • 26.9k
2 votes
1 answer
145 views

Components > Paypal Button not saving properly, neither iframe

I've tried to insert a paypal form + button on a component's type description and once I save a part of the code is gone. Before <form action="https://www.paypal.com/cgi-bin/webscr" method="post"...
aerish's user avatar
  • 229
2 votes
1 answer
310 views

How can I add height and width attributes to an image in a menu?

Google is complaining that there is no height and width set on the HTML properties of some images in a menu. It's worrying about cumulative layout shift. The sizing is all done in CSS, but I want to ...
Eoin's user avatar
  • 1,909
2 votes
1 answer
61 views

If I want to globally include a framework aside from jQuery?

I know I can use many of the items found in this documentation such as jQuery https://docs.joomla.org/J3.x:Javascript_Frameworks by doing something simple like this JHtml::_('jquery.framework', ...
Eoin's user avatar
  • 1,909
2 votes
1 answer
96 views

How to add un/archive or un/trash buttons in a manager button-group that isn't in a dropdown?

What I'm trying to do is this: But failing at it. The codes I've tried using are: <td class="nowrap center"> <div class="btn-group"> <?php echo JHtml::_('jgrid.published', ...
Glitch's user avatar
  • 287
2 votes
2 answers
466 views

Ads code show blank space or not showing at all

I try to add a module containing adsense code but it only shows blank space. First i thought it is a google adsense issue so i tried using other ad networks and they all give me the same result or ...
dantosso's user avatar
1 vote
3 answers
2k views

Make the opacity in module the background not text or images

How do I go about making the text in a module not affected by the opacity for the white background. For example on this page. http://www.webbmaster.com.au/web-programs/questdesign/index.php/services ...
Kyle's user avatar
  • 31
1 vote
2 answers
125 views

Where to edit the responsive html codes for the main page for my website

I own a website called http://elitemaths.com.au/. Currently, the main page modules seem to be working fine on a desktop browser with "maths is hard..." div as well as the "Fulfill your...". I have ...
Will Kim's user avatar
  • 203
1 vote
2 answers
192 views

Override JHtml core function select.radiolist

I want to override the output of the select radiolist. I can hack the core, but I'm not really fond of doing that in relation to updates. So i checked out a system plugin to override the JHTMLselect ...
Kuubs's user avatar
  • 345
1 vote
1 answer
1k views

How Templates work and load css/js files? Website building process with Purity III

Unfortunately I can't find any info on how the purity iii template really works. I have to present my website tomorrow and I may get asked "where does the content come from?" and I can not answer ...
Matthias94's user avatar
1 vote
1 answer
370 views

Navigation Buttons Centered with main logo

Hello I have done my best to center my navigation buttons but it still doesn't center it perfectly underneath the main logo. Can anyone help me? Might be missing a line of code or have the wrong ...
Kyle's user avatar
  • 31
1 vote
1 answer
32 views

Mod_Feed removing the strip image function what do the True & False do?

I want to remove the strip image function from mod_feed in the administrator area. mod_feed/tmpl/default.php at line 118 // Strip the images. $text = JFilterOutput::stripImages($text); $text = ...
purple11111's user avatar
1 vote
1 answer
36 views

Need help in removing a bg image

I have a WARP6 Joomlaplates' JP-X2 template and I'm on a latest version of Joomla. I used to have a big bg image of a lady on every site page. So one has to scroll down to see the actual pages' ...
papakota's user avatar
1 vote
1 answer
981 views

Is there a method to sort the FormBehavior.chosen output in Joomla 3?

The chosen multiple select result outputs always in ascending order of the array, regardless of the selected order. I couldn't find information related to ordering in the JHtml attribute array. I ...
Nadal's user avatar
  • 188
1 vote
1 answer
387 views

Table isn't centered properly in Module

My table in my portfolio module isn't centering properly. In chrome it is a bit too much to the left when in firefox it's a bit too much to the right. Any ideas? Here is my html code for the portfolio....
Kyle's user avatar
  • 31
1 vote
0 answers
19 views

Has anyone used img srcset from html5 for assigning smaller images for smaller screens?

Has anyone used img srcset from html5 for assigning smaller images for smaller screens? I believe I saw it referred in one of the JoomlaDay Chicago presentations and took a note to look into it. But ...
Robin Clapp's user avatar
1 vote
0 answers
371 views

How to upload an image using Ajax?

I need to upload an image to the server via AJAX, but the server comes back to the page with request, although server doesn't send anything. ajax: function uploadServer($el) { var fileUpload = $...
Илья Балабуев's user avatar
1 vote
0 answers
16 views

Com_Contact strange behavior showing labels for empty contact fields, how to resolve?

So, thanks to FFrewin's help I was able to resolve and issue with the default com_contact template not showing entered address information Problems with Contact showing . The issue is that the contact ...
nizz0k's user avatar
  • 537
0 votes
2 answers
2k views

Enable html in email output in Joomla

I am trying to set html on the output of the email send by Joomla. Here is the code: class MailtoController extends JControllerLegacy { /** * Show the form so that the user can send the link to ...
giorgionasis's user avatar
0 votes
4 answers
761 views

Edit HTML-Code of specific Joomla Page

I am a Joomla Beginner and would like to know, how I can edit the HTML-Code of a specific webpage in Joomla. I am not talking about editing an article, but the whole URL. And just a single one! Is ...
Mio K.'s user avatar
  • 1
0 votes
1 answer
83 views

Display disabled radio button

I need to display a disabled radio button using JHTML but I can't find anything useful or any example I could use to learn. Can someone help me ? Thanks
bee's user avatar
  • 1
0 votes
2 answers
651 views

How to change logo's link URL?

I recently bought a new domain and transfered my old site's files to it. It's all nice, but the logo still points to the old site. How can I adjust it? Here's my new site home page and the logo is in ...
papakota's user avatar
0 votes
2 answers
256 views

Custom JHtml method

I'm developing a custom library which will be used for custom JHtml methods: use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Uri\Uri; abstract class JHtmlKipengee { protected static $loaded = []; ...
Lodder's user avatar
  • 26.9k
0 votes
1 answer
552 views

Background music on a homepage

I want to have a background music played on my site's homepage. Preferably without the controls. So that the music would start playing on its own (ie, without user's interaction). I tried different ...
papakota's user avatar
0 votes
2 answers
71 views

Is there any one to use the mod_menu as we please? *Modifying the backend*

so I've been asked to make a special menu for a website.I'm using the default module that is mod_menu. The issue is I want to modify the HTML Structure to that module. But I heard modify the default ...
user avatar
0 votes
1 answer
68 views

How can I add an ID to a JHTML call

I'm trying to add an ID to a link created by JHTML. Is that possible? Here's my call, is there some way I can do a , #myId as part of the below? <?php echo JHtml::_('icon.edit', $displayData['...
Eoin's user avatar
  • 1,909
0 votes
1 answer
123 views

joomla 3 - how to add/insert html pages in my site without iframe?

I have on my pc a complete html site. It has an index page and 2 folders that have many pages. The index page has just links that link to pages in folder 1. Folder 1 has pages that have text, the text ...
sofian's user avatar
  • 1
0 votes
2 answers
94 views

Add html to transactional email

I use Mandrill to send my transactional emails, so JMailer sends the data to Mandrill, Mandrill wraps it with a nice template and voila! This works fine, but several of my customers have asked if I ...
Hans Wassink's user avatar
0 votes
1 answer
112 views

How to add two calenders in a page?

I am new to joomla, want to implement two calenders in a page ... From : <?php echo JHTML::calendar('sch_from', 'sch_from', '%Y-%m-%d'); ?> To : <?php echo JHTML::...
vignesh.D's user avatar
  • 155
0 votes
2 answers
597 views

JHTML::calendar() not working when apending through ajax

I'm appending joomla default calender in my form through ajax. But after appending the calender, i'm unable in getting the calendar pop up on clicking the icon. Also there is no conflict in name and ...
Karun's user avatar
  • 1
0 votes
1 answer
575 views

My footer won't go to the bottom of the page

Hello can anyone help me and let me know as to why my footer won't stay at the bottom of the page. I have my logo at the top followed by navigation and then a custom HTML module full of text. Instead ...
Kyle's user avatar
  • 31
0 votes
0 answers
71 views

Cannot add Amazon Banner Links in Joomla Site

I am brand new to Joomla and it appears that it does not allow JavaScript codes to run by default. I am running my website on the latest version (3.10). I have looked all around the internet, disabled ...
Manish K Yadav's user avatar
0 votes
1 answer
250 views

How to change html order in News Flash Advanced layouts?

So, I'm trying to make a testimonials page and I'm using Joomla 3.64 with the News Flash Advanced Module. The site is using Theme1498 by Template Monster. I believe that there was some custom work ...
nizz0k's user avatar
  • 537
0 votes
2 answers
89 views

Module class suffix not applied after joomla update

I just updated my site to version 3.6.4 and I'm having a strange issue where module class suffixes aren't being applied. I'm editing a single article module as well as a custom html advanced module ...
nizz0k's user avatar
  • 537
0 votes
1 answer
56 views

Change css of a global used class in one specific menu? [duplicate]

So i want to change the css layout on the page but only in one specific menu. @media screen and (min-width: 768px) .t3-sl { padding-bottom: 60px; padding-top: 60px; } -div class="wrap t3-sl ...
Matthias94's user avatar
0 votes
2 answers
192 views

Can I put link from custom html to wrapper module?

Here it is. I have a custom html with some mouse hover js function. So, when I click on that fade in 'view' button, I want to display embedded video in wrapper module? How do I do that?
adadion's user avatar
  • 214
0 votes
1 answer
110 views

PgwSlider equivalent for Joomla 3 [closed]

Is there a module for Joomla 3 that does the same that this module does https://github.com/Pagawa/PgwSlider or any similar alternatives?
TheAdnan's user avatar