Cyclone3 Skin

730-event list.lite.mdl

From Cyclone3 Wiki

Standard event list with paging


Input parameters


  • description: database name
  • format: domain_tld
  • default: domain's default database


  • description: load only actual events (started before, ending after the date)
  • format: YYYY-MM-DD HH:SS
  • default:


  • description: ;-separated event ID list
  • format: ID[;ID] ... [;ID]
  • default: $env{'lng'}


  • description: ;-separated event category ID list, asterisk symbolizes recursion
  • format: ID[*][;ID[*]] ... [;ID[*]]
  • default:


  • description: event language
  • format: standardized 2-character language code
  • default: $env{'lng'}


  • description: non-separated list of status values
  • format: Y[ND]
  • default: Y


  • description: listing mode
  • format: future|past
  • default: future


  • description: count of items in list, with defined offset
  • format: pagecount[,pageoffset]
  • default: 1


  • description: user-defined sql constraints
  • format: sql statement
  • default: 1

  • description: search term for event name
  • format: string
  • default:


  • description: world status values
  • format: sql statement
  • default: event.datetime_start ASC


  • description: event thumbnail image format ID
  • format: image format ID
  • default: default thumbnail format ID, usually 3

Output templates

Default output

  • definition: TMP
  • description: mandatory.
  • example
 Event list:<br />

 First event in list:<br />
 Other events:<br />

<#previous#> <#next#>
Replaced gateways and variables
<#item[.linenumber]#> Placeholder for item template, or item with specific ordinal
<#paging#> Placeholder for paging template
<#previous#> Placeholder for previous template
<#next#> Placeholder for next template
<%total_count%> Total count of displayed items
<%category_name%> File category name (only replaced, when a single category ID or ID with asterisk is specified)
<%category_name_url%> File category name (only replaced, when a single category ID or ID with asterisk is specified)

List item template

  • definition: item
  • description: mandatory. default list item template.
  • variations:
    • item.linenumber - overrides both default and odd line templates, 1-based
    • item.odd - overrides default line template for odd line number items
  • example:
<DEFINITION id="item">
   <a href="?|?type=event_view&ID=<%db_ID_entity%>&name_url=<%db_name_url%>">
    <%db_name%><br />
   <span>Date: <%db_datetime_start.mday%>.<%db_datetime_start.month%>.<%db_datetime_start.year%><br /></span>
   <%description_short%><br />

<DEFINITION id="item.1">
   <a href="?|?type=event_view&ID=<%db_ID_entity%>&name_url=<%db_name_url%>">
    <%db_name%><br />
   <span>Date: <%db_datetime_start.mday%>.<%db_datetime_start.month%>.<%db_datetime_start.year%><br /></span>
   <%description_short%><br />
Replaced variables
<#item#> Placeholder for the following item. If it doesn't exist, only the first item will be inserted into the main template and further items won't be.
<#link#> Placeholder for link template
<#thumbnail#> Placeholder for thumbnail template
<%db_name%> Item's name
<%db_name_url%> Item's name in url format
<%db_name_long%> Item's long name (ie. when name is "ITWorld", this could be "Latest IT trends expo")
<%db_price%> Item's fee
<%db_price_incl_VAT%> Item's fee including tax
<%db_link%> Item's link (ie. to external site with more information)
<%db_location%> Item's location
<%organizers%> Item's organizers list
<%db_description_short%> Item's short description (abstract)
<%db_description%> Item's description (main body) unformatted, raw db data
<%description%> Item's description, formatted
<%description_plain%> Item's description in plaintext format
<%metasection::metakey%> Item's metadata values, ie. <%Processor::rate%> would output the value of 'rate' key in metadata's 'Processor' section.
<%item_number%> Event list item ordinal
<%datetime_start.variable%> Event start date values. Available variables: year, month,,, mday (month day), hour, min, sec, wday,,
<%datetime_finish.variable%> Event finish date values. Available variables: year, month,,, mday (month day), hour, min, sec, wday,,


  • description: template for event thumbnail
  • example
<DEFINITION id="thumbnail">
<img src="<$tom::H_a501>/image/file/<%db_file_path%>" align="left"/>


  • description: template for paging, replaced when more items are available, or page offset is not 0
  • example
<DEFINITION id="paging">
<div class="paging">


  • description: template for next listing page link
  • example
<DEFINITION id="next">
<a href="?|?|offset=<%offset%>">older events</a>


  • description: template for previous listing page link
  • example
<DEFINITION id="previous">
<a href="?|?|offset=<%offset%>">newer events</a>


  • description: template used, when no event items are available
  • example
<DEFINITION id="TMP.empty">
 Event list:<br />

 Sorry, no events are available in this section.

Examples and notes