Appendix A. XOOPS Cheatsheets

XOOPS Resources

This appendix features handy tables and examples with XOOPS commands you will frequently use. A more detailed PDF, ideal for portability, is available on the book’s website (http://oreilly.com/catalog/9781449308964/), as well as at http://insraq.me/book/. Please report any bugs to me at ruoysun@gmail.com.

Table A-1. Header meta tags
TagExample outputPurpose
<{$xoops_charset}>UTF-8Output the character set
<{$xoops_langcode}>enOutput content language
<{$xoops_meta_keywords}>N/AOutput the meta keyword list
<{$xoops_meta_description}>N/AOutput the meta description
<{$meta_copyright}>N/AOutput the meta tag copyright
<{$meta_robots}>index, followOutput the W3C robot meta tag
<{$meta_rating}>generalOutput the meta tag rating
Table A-2. General XOOPS commands
TagComment
<{$xoops_sitename}>Site name
<{$xoops_slogan}>Site slogan
<{$xoops_pagetitle}>Current page title
<{$xoops_theme}>Theme folder name
<{$xoops_url}>[a]Site URL without the “/”
<{$xoops_banner}>Site banner
<{$xoops_contents}>Module contents
<{$xoops_footer}>XOOPS footer

[a] This tag can be replaced by <{xoAppUrl}>, which basically achieves the same result.

Table A-3. User-related XOOPS commands
TagComment
<{$xoops_isadmin}>If the user is an admin?
<{$xoops_isuser}>If the visitor is a user?
<{$xoops_userid}>User ID (integer)
<{$xoops_uname}>Username
Table A-4. XOOPS resource locators and links
Tag/codeLink
<{xoAppUrl backend.php}>XOOPS/backend.php
<{xoImgUrl style.css}>XOOPS/theme/yourtheme/style.css
<{xoImgUrl ...

Get Designing for XOOPS now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.