Cyclone3 Skin

501-image list.lite.mdl

From Cyclone3 Wiki

Standard image list with paging

Contents

Input parameters

image.ID_format

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

image_attrs.lng

  • description: content language
  • format: en
  • default: lng parameter value

image_attrs.status

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

image_attrs.ID_category

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

image.ID_entity

  • description: ;-separated article ID_entity list
  • format: ID_entity[,ID_entity] ... [,ID_entity]
  • default:

db_name

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

sql_limit

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

sql_where

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

sql_order_by

  • description: world status values
  • format: sql statement
  • default: article_attrs.datetime_start DESC

keywords

  • description: keywords to search for
  • format: ,-separated list
  • default:

Output templates

Default output

  • definition: TMP
  • description: mandatory.
  • gateways:
    • #item[.linenumber]# - list item gateway [for specific list item]
    • #previous# - link to list's previous page
    • #next# - link to list's next page
  • example
<DEFINITION id="TMP">
 Image list:<br />

 First image in list:<br />
<#item.1#>
 
 Other images:<br />
 <ul>
<#item#>
 </ul>

<#previous#> <#next#>
</DEFINITION>

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">
  <li class="item">
   <a class="fancybox" href="<$tom::H_a501>/image/file/<%fullsize.db_file_path%>"  title="<%db_name%>">
    <img src="<$tom::H_a501>/image/file/<%db_file_path%>" alt="<%db_name%>" />
   </a>
  </li>
<#item#>
</DEFINITION>

<DEFINITION id="item.1">
  Our latest image:<br />
  <a class="fancybox" href="<$tom::H_a501>/image/file/<%fullsize.db_file_path%>"  title="<%db_name%>">
   <img src="<$tom::H_a501>/image/file/<%db_file_path%>" alt="<%db_name%>" />
  </a>
</DEFINITION>

Empty output

TMP_failure_no-data

  • description: template used, when no images are available

Examples and notes