Template reference material

Jump to: navigation, search

Contents

Available jdoc:include types

The following is a complete list of the available jdoc:include types:-

  • component
  • head
  • installation
  • message
  • module
  • modules

Module chrome

The following standard module chromes are available:

  • none. Output the raw Module content with no wrapping.
  • table. Output the module in a table.
  • horz. Output the module as a table inside an outer table.
  • xhtml. Output the module wrapped in div tags.
  • rounded. Output the module wrapped in nested div tags to support rounded corners.
  • outline. Output the module wrapped with a preview border.

CSS classes

This might help: Templates FAQ: What are the base Joomla! CSS styles?

Core CSS Class Used With
activexhtml type menu modules
article_separatorarticles
authorarticle author
bannerfooterbanner module
bannergroupbanner module
bannerheaderbanner module
banneritembanner module
blogblog content
blog_moreblog content
blogsectionblog content
breadcrumbsbreadcrumb module; also see pathway
buttonmiscellaneous
buttonheadingmiscellaneous
clrmiscellaneous
componentheadingcomponent
content_emailcontent
content_ratingcontent
content_votecontent
contentdescriptioncontent
contentheadingcontent
contentpagetitlecontent
contentpanecontent
contentpaneopencontent
contenttoccontent
createdatecontent
created-datecontent
currenthorizontal and vertical type menu modules (legacy)
form-loginlogin module
modlgn_passwdlogin module
form-login-usernamelogin module
form-login-passwordlogin module
modlgn_rememberlogin module
hasTip
inputforms
inputboxforms
intro
latestnewslatest news module
loclink
mainlevellegacy - horizontal, vertical, flat list menu module types; also see sublevel
menumenu modules with xhtml framing
message
metadata
modifydatearticles - last modified date/time
moduletablemodule
mosimageimages
mostreadmost read module
newsfeednews feeds
outline
pagenav page navigation
pagenav_next page navigation
pagenav_prev page navigation
pagenavbarpage navigation
pagenavcounterpage navigation
paginationpage numbering
pathwaybreadcrumb module; also see breadcrumb
pollstableborderpoll module
readonread more link
searchboxsearch module
searchsearch module
searchintrosearch module
sectionscontent
sectiontable_footercontent
sectiontableentry1content
sectiontableentry2content
sectiontablefootercontent
sectiontableheadercontent
smalldefault small font
sublevellegacy - horizontal, vertical, flat list module types; also see mainlevel
titletitle in xhtml type modules
wrapper wrapper module

Configuration variables

Learning resources for HTML and CSS

Using PHP in your template

Operators for use with the countModules function

The following logical, comparison and arithmetic operators are available:

Operator Example Description
 + user1 + user2 Total number of Modules in user1 and user2 positions.
 - user1 - user2 The number of Modules in the user1 position minus the number in the user2 position.
 * user1 * user2 The number of Modules in the user1 position multiplied by the number in the user2 position.
 / user1 / user2 The number of Modules in the user1 position divided by the number in the user2 position.
 == user1 == user2 Returns true if user1 and user2 have the same number of Modules enabled; otherwise returns false.
 != user1 != user2 Returns true if user1 and user2 do not have the same number of Modules enabled; otherwise returns false.
 <> user1 <> user2 Same as !=.
 < user1 < user2 Returns true if user1 has strictly less Modules enabled than user2; otherwise returns false.
 > user1 > user2 Returns true if user2 has strictly more Modules enabled than user1; otherwise returns false.
 < user1 <= user2 Returns true if user1 has the same or less Modules enabled than user2; otherwise returns false.
 >= user1 >= user2 Returns true if user2 has the same or more Modules enabled than user1; otherwise returns false.
 and user1 and user2 Returns true if user1 and user2 both have at least 1 enabled Module; otherwise returns false.
 or user1 or user2 Returns true if user1 or user2 or both have at least 1 enabled Module; otherwise returns false.
 xor user1 xor user2 Returns true if user1 or user2 but not both have at least 1 enabled Module; otherwise returns false.

Note that if countModules() returns any non-zero number it is equivalent to true; whereas zero is equivalent to false.

More than two module positions can be included in an expression. Evaluation of the expression is performed from left to right subject to operator precedence.

The following table lists the precedence of operators with the highest-precedence operators listed at the top of the table. Operators on the same line have equal precedence, in which case they are evaluated from left to right. The use of brackets to override precedence is not supported.

Operators Operator type
* / Arithmetic operators
+ - Arithmetic operators
< <= > >= Comparison operators
== != Comparison operators
and Logical operator
xor Logical operator
or Logical operator

Objects, methods and properties available from your template

Security

Security do's and don't's

AJAX and JavaScript

Asynchronous JavaScript and XML or AJAX, is a term for a group of interrelated web development techniques used for creating interactive web applications or commonly known as web 2.0. Ajax allows web applications to retrieve data from the server asynchronously in the background without interfering with the display and behavior of the existing website page. Data is retrieved using the XMLHttpRequest object or through the use of Remote Scripting in browsers that do not support it.

Ajax Resources:

  1. Packt Publishing Book Free Online Edition
  2. MooTools
  3. Prototype
  4. Script.aculo.us
  5. Jquery
  6. Help I Don't JavaScript Blog

The following diagnostic tools may prove useful when developing templates.

Mozilla Firefox web browser

Internet Explorer web browser

Safari web browser

See also

Personal tools