SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 337 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

URL parameters always
appear above State parameters.
We define URL parameters in much the same way, only this time we place them in
a tag named url. The URL parameters are automatically appended to the URI; this
means that we can access these parameters using JRequest.
These parameters are of particular use when we are creating a layout that is used
to display a single item, which is retrieved using a unique ID. If we use these
parameters to define an ID that is retrieved from a table, we should consider using
the, often overlooked, sql parameter type.
This example builds on the previous example, and adds the URL parameter id,
which is extracted from the #__myextension table:








My Layout
Description of my layout.

description="Item to display" query="SELECT id AS
value, title AS id FROM #__content" />


description="Some description of the parameter"
default="default value"/>
label="Show" description="Show/Hide something">






Chapter 9
[ 255 ]
The query might be slightly confusing if you are not familiar with the sql parameter
type.


Pages:
325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349
druga wojna światowa Free English grammar and study guid hotel jelenia góra Russian bride counter strike 1.6