Cyclone3 Skin

401-article cat list.lite.mdl

From Cyclone3 Wiki

Standard article category list

Contents

Input parameters

ignore.img[.1]

  • description: Ignore (the first) image
  • format: 1/0
  • default: 0

article_cat[.linenumber].a501_image_file.ID_format

  • description: (specific article line's) image format ID
  • format: image format ID
  • default: default thumbnail format ID, usually 3

article_cat[.linenumber].a501_image_file.ID_format.1

  • description: (specific article line's) first image format ID
  • format: image format ID
  • default: default thumbnail format ID, usually 3

article_cat[.linenumber].a510_image_file.ID_format

  • description: (specific article line's) video preview image format ID
  • format: image format ID
  • default: default thumbnail format ID, usually 3

article_cat[.linenumber].a510_image_file.ID_format.1

  • description: (specific article line's) first video preview image format ID
  • format: image format ID
  • default: default thumbnail format ID, usually 3

a501_image_file.ID_format.extra

  • description: extra image format ID, used ie. for javascript lightbox implementation
  • format: image format ID
  • default: default fullsize format ID, usually 2

status

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

article_cat.ID

  • description: ID of article category parent
  • format: ID
  • default:

article.ID

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

article.ID_entity

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

body.ignore.img

  • description:
  • format: 1/0
  • default: 0

db_name

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

hyphen

  • description: transform specified database fields into hyphenized version
  • format: abstract[;body]
  • default:

ignore.img

  • description:
  • format: 1/0
  • default: 0

ignore.img.1

  • description:
  • format: 1/0
  • default: 0

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: sql-formatted order
  • format: sql statement
  • default: ID_charindex ASC

Output templates

Default output

  • definition: TMP
  • description: mandatory.
  • example
<DEFINITION id="TMP">
 Article category list:<br />

 First article category in list:<br />
<#item.1#>
 
 Other article categories:<br />
 <ul>
<#item#>
 </ul>
</DEFINITION>
Replaced gateways and variables
<#item[.linenumber]#> Placeholder for item template, or item with specific ordinal
<%total_count%> Total count of displayed items
<%db_name%> Article category nameasterisk is specified
<%db_name_url%> Article category name url

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
    • item-empty - overrides all item templates when neither article body, nor article abstract is available
    • item-emptybody - overrides all item templates when article body is not available
  • example:
<DEFINITION id="item">
  <li>
   <a href="?|?type=article_cat_view&ID=<%db_ID_entity%>&name_url=<%db_name_url%>">
    <%db_name%><br />
   </a>
   <%description%><br />
  </li>
<#item#>
</DEFINITION>

<DEFINITION id="item.1">
   Our first article category:<br />
   <a href="?|?type=article_cat_view&ID=<%db_ID_entity%>&name_url=<%db_name_url%>">
    <%db_name%><br />
   </a>
   <%description%><br />
</DEFINITION>
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.
<%db_name%> Item's name
<%db_name_url%> Item's name in url format
<%description%> Item's processed description
<%description_plain%> Item's processed description cleaned of html tags
<%item_number%> Article list item ordinal
<%alias_url%> Item's alias url

[abstract/body.]a210_page

  • description: inline (abstract) sitemap link template

[abstract/body.]a401_article

  • description: inline (abstract) article link template

[abstract/body.]a501_image

  • description: inline (abstract) image template

[abstract/body.]a501_image.1

  • description: inline (abstract) first image template

[abstract/body.]a510_video

  • description: inline (abstract) video template

[abstract/body.]a510_video.1

  • description: inline (abstract) first video template

[abstract/body.]a510_video_part

  • description: inline (abstract) video part template

[abstract/body.]a510_video_part.1

  • description: inline (abstract) first video part template

Examples and notes