====== Supported Tags ====== ===== Core Tags ===== [[tag:core:block|Core Block Tag]]:\\ Show or hide a portion of a template [[tag:core:datasource|Core Data Source Tag]]:\\ Provides a scope for template variables [[tag:core:default|Core Default Tag]]:\\ Default display if a given variable is not defined at runtime (partner of [[tag:core:optional|Core Optional Tag]]) [[tag:core:import|Core Import Tag]]:\\ Import variable definitions into the current template scope [[tag:core:include|Core Include Tag]]:\\ Include the contents of a file into the current template [[tag:core:literal|Core Literal Tag]]:\\ Prevent contents of tag from being parsed [[tag:core:optional|Core Optional Tag]]:\\ Optional display if named variable exists at runtime. [[tag:core:placeholder|Core Placeholder Tag]]:\\ Present a named location where content can be inserted [[tag:core:set|Core Set Tag]]:\\ Set the value of a variable in the current scope [[tag:core:script|Core Script Tag]]:\\ Placeholder for inserting [[ref:javascript|JavaScript]] into template at [[Compile Time]] or [[Run Time]] [[tag:core:wrap|Core Wrap Tag]]:\\ Wrap a named tag with the contents of a file [[tag:core:outputcache|Core Output Cache Tag]]:\\ Mark a section of the template for file caching, using [[http://pear.php.net/Cache_Lite|PEAR::Cache_Lite]] ===== Generic Tags ===== Any tag in a template that is part of the native vocabulary of the XML language being used (e.g. a normal HTML tag) can be made a component of either [[Generic Tag]] of [[Generic Container Tag]]. At runtime these will be available as instances of [[Tag Component]]. See [[wact:template_syntax|Template Syntax]] for more details on [[Generic Tags]]. Note the exception to the rule is the form tags (see below) which have their own [[Compile Time]] and [[Run Time]] components. ===== List Tags ===== [[tag:list:default|List Default Tag]]:\\ Define alternative output to be shown when enclosing list is empty [[tag:list:list|List List Tag]]:\\ Define a list [[tag:list:item|List Item Tag]]:\\ Define a list item [[tag:list:separator|List Separator Tag]]:\\ Define output between list items ===== Form Tags ===== [[tag:form:button|Button Tag]]:\\ Enhanced html button tag [[tag:form:errorsummary|Error Summary Tag]]:\\ Show a list of form errors [[tag:form|Form Tag]]:\\ Enhanced html form tag [[tag:form:input|Input Tag]]:\\ Enhanced html input tag [[tag:form:select|Select Tag]]:\\ Enhanced html select tag [[tag:form:textarea|Textarea Tag]]:\\ Enhanced html textarea tag [[tag:form:select_date|Select Date Tag]]:\\ Enhanced select tag for selecting dates from a calendar [[tag:form:select_time|Select Time Tag]]:\\ Enhanced select tag for selecting times from a 24 hour clock [[tag:form:input_autocomplete|Input Auto Complete Tag]]:\\ Enhanced box with autocompletion using [[ref:javascript|JavaScript]] ===== Pager ===== [[tag:page:elipsis|Page Elipses Tag]]:\\ In a pager e.g. ...6 7 8... (the ... are the elipses) [[tag:page:first|Page First Tag]]:\\ The "back to start" element of the pager [[tag:page:last|Page Last Tag]]:\\ The "go to end" element of the pager [[tag:page:list|Page List Tag]]:\\ Marks the "iterable" section of the template [[tag:page:navigator|Page Navigator Tag]]:\\ The root element of a page [[tag:page:next|Page Next Tag]]:\\ The element that steps forward one page [[tag:page:prev|Page Prev Tag]]:\\ The element that steps back one page [[tag:page:number|Page Number Tag]]:\\ The element into which the page numbers will be rendered [[tag:page:separator|Page Separator Tag]]:\\ The separator between [[tag:page:number|Page Number Tag]] ===== Development Tags ===== [[tag:dev:source|Dev Source Tag]]:\\ View the PHP source code generated into the compiled template [[tag:dev:tree|Dev Tree Tag]]:\\ View the [[Compile Time]] component tree [[tag:dev:datasource|Dev DataSource Tag]]:\\ View the contents of a runtime [[class:datasource|DataSource]] ===== Data Tags ===== [[tag:data:dump|Data Dump Tag]]:\\ Dump a [[class:datasource|DataSource]] for display using [[http://www.php.net/var_dump|var_dump]] [[tag:data:table|Data Table Tag]]:\\ Automatically generate an HTML table from a [[class:datasource|DataSource]] ===== Calendar ===== Requires [[http://pear.php.net/Calendar|PEAR::Calendar]] (EXPERIMENTAL) [[tag:calendar:month|Calendar Month Tag]]:\\ The root calendar tag, for a month [[tag:calendar:titlestyle|Calendar Title Style Tag]]:\\ For the title of the calendar e.g. "December 2003" [[tag:calendar:nextprevstyle|Calendar Next Prev Style Tag]]:\\ For the next / prev navigation between months [[tag:calendar:dayheaderstyle|CalendarDayHeaderStyleTag]]:\\ For the week column headings (e.g. Mon : Tue : Wed : Thu : Fri : Sat : Sun) [[tag:calendar:daystyle|Calendar Day Style Tag]]:\\ Styles a normal day in the calendar [[tag:calendar:selecteddaystyle|Calendar Selected Day Style Tag]]:\\ Styles a "selected" day in the calendar [[tag:calendar:emptydaystyle|Calendar Empty Day Style Tag]]:\\ Styles "empty" days in the calendar (those that fall outside the range of the current month ===== HTML ===== [[tag:html:bbcode| HTML BBCode Tag]]:\\ Outputs a variable with [[http://www.phpbb.com/phpBB/faq.php?mode=bbcode|BBCodes]] converted to their HTML equivalent. (requires [[http://pear.php.net/HTML_BBCodeParser|PEAR::HTML_BBCodeParser]]) ===== Encode ===== [[tag:encode:javascript|Encode JavaScript Tag]]:\\ Encodes a section of the template and adds [[ref:javascript|JavaScript]] so the browser will decode it (but View > Source is unreadable)