Use the installer assets
tag to take advantage of the Joomla! Media Manager.
Rendering Output
In Joomla!, there are several ways in which we can render output that make our lives
easier and force a level of consistency across extensions. In this chapter, we
will explore:
The ever useful joomla.html library, which enables us to render output in a
common form
How to build layouts and templates, with particular emphasis
on components
The intricacies of building templates in component backends
How to deal with itemized data
The joomla.html Library
This part of the library is used to aid in the rendering of XHTML. Integral to this is
the static JHTML class. Within this class is a method, _(), which we provide with a
type and a mixture of additional parameters. This example demonstrates how we use
the method to output a tooltip:
echo JHTML::_('tooltip', 'content', 'title');
There are six basic types. Basic types are identified by a single name. This is a list of
the six basic types:
link
image
iframe
date
tooltip
calendar
??? ??? ??? ??? ??? ??? ??? ??? ??? ???
Rendering Output
[ 194 ]
There are seven grouped types.
Pages:
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270