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 [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 ...
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?
3
votes
1answer
315 views

How to select predifined 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 ...
1
vote
1answer
895 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 ...