Stack Exchange Network

Stack Exchange network consists of 175 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 [jhtml]

The tag has no usage guidance.

9
votes
4answers
2k 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 ...
7
votes
3answers
412 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 ...
6
votes
3answers
3k 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?
6
votes
1answer
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 ...
5
votes
1answer
288 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?
5
votes
1answer
543 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 ...
4
votes
3answers
1k 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 "...
4
votes
1answer
403 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 ...
3
votes
1answer
315 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/...
3
votes
1answer
380 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 ...
3
votes
2answers
88 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 ...
3
votes
1answer
249 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 ...
2
votes
1answer
130 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"...
2
votes
1answer
33 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', ...
2
votes
2answers
254 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 ...
1
vote
3answers
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 ...
1
vote
2answers
78 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 ...
1
vote
1answer
334 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 ...
1
vote
1answer
938 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 ...
1
vote
1answer
67 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 ...
1
vote
1answer
299 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....
1
vote
0answers
151 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 = $...
1
vote
0answers
10 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 ...
0
votes
2answers
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 ...
0
votes
2answers
39 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 ...
0
votes
1answer
47 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
0
votes
1answer
362 views

How to have a Joomla module on top of another module

Is it possible to have a module on top of another module? If so how would I go about doing this. Can anyone help me out please?
0
votes
1answer
48 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['...
0
votes
1answer
52 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 ...
0
votes
4answers
42 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 ...
0
votes
2answers
63 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 ...
0
votes
1answer
76 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::...
0
votes
2answers
529 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 ...
0
votes
1answer
356 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 ...
0
votes
1answer
166 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 ...
0
votes
2answers
61 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 ...
0
votes
1answer
43 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 ...
0
votes
2answers
103 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?
0
votes
1answer
104 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?
0
votes
1answer
2k views

Notice: Undefined variable: sj_mar in C:\wamp\www\joomla\templates\xxx\html\com_k2\templates\xxxx\item.php on line 276

I install joomla template on my localhost using wampserver but after that I got a lot of errors on the hol template as you can see on the image. the errors ae from deffernt lines and defferent files ...
-2
votes
1answer
300 views

Joomla Mobile Website Issues (Zooming & Whitespace) [closed]

I have been trying to make my Joomla website look good on mobile as it does on a computer but I am running into a few issues. The first is that when you access my website on a mobile or tablet device ...
-3
votes
1answer
55 views

How to Make the Opacity of my white background 20% [closed]

How do I go about making the Opacity of my white background 20%? You can view the white background i'm talking about here, http://www.webbmaster.com.au/web-programs/questdesign/index.php/folio This ...