Cyclone3 Skin

401-article view.lite.mdl

From Cyclone3 Wiki

Renders article view. Typically called from 401-article_view.lite.smdl, which takes care ie. of updating the article's view count, caching and other.

Contents

Input parameters

ad

  • description: insert ad position inside the article's body
  • format: 1/0
  • default: 0

abstract.ignore.img.1

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

article[.linenumber][.abstract].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[.linenumber][.abstract].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[.linenumber][.abstract].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[.linenumber][.abstract].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

article_content.lng

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

article_attrs.status

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

world_status

  • description: world status values
  • format: Y[ND]
  • default: Y/NULL

article_attrs.ID_category

  • description: ;-separated article category ID list, asterisk symbolizes recursion
  • format: ID[*][,ID[*]] ... [,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

gallery.thumbnail.ID_format

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

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: world status values
  • format: sql statement
  • default: article_attrs.datetime_start DESC

Output templates

Default output

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

 <h1><%db_name%></h1>

 <div class="abstract">
  <%abstract%>
 </div>

 <div class="body">
  <%body%>
 </div>

</DEFINITION>
Replaced gateways and variables
<#item[.linenumber]#> Placeholder for item template, or item with specific ordinal
<#authorgroup#> Placeholder for authorgroup template
<#a501.gallery#> Placeholder for a501.gallery.box template
<#author#> Placeholder for author template
<#sources#> Placeholder for sources template
<%body%> Processed article's body
<%body_plain%> Processed article's body cleaned of tags
<%abstract%> Processed article's abstract
<%abstract_plain%> Processed article's abstract cleaned of tags
<%db_visits%> Article visits count
<%category_name_url%> Article category name (only replaced, when a single category ID or ID with asterisk is specified
<%datetime_create.variable%> Publishing start date values for: year, month, month.name, month.name.long, mday (month day), hour, min, sec
<%datetime_start.variable%> Publishing start date values for: year, month, month.name, month.name.long, mday (month day), hour, min, sec
<%metasection.metakey%> Placeholder for value of metasection's metakey, i.e. <%Size::height%>
<%author_variable%> Article author's info: name, surname, title, ...
<%editor_variable%> Article editor's info: name, surname, title, ...
<%article.db_variable%> Article columns fetched from database: name, name_url, surname, title, ...

author

sources

a501.gallery.box

a501.gallery

a501_image[.nofullsize|.1]

  • description: output template for images.
    • fullsize is used for images, having a larger format. this template is used, when the action status of the image (changeable in XUL CMS editor by clicking a specific image and changing its action in the bottom toolbar) is set to auto or fullsize
    • nofullsize is used for images, which don't have a larger format available or their action is set to nofullsize

a501_video[.1]

a501_video_part[.1]

a420_keyword

link.a542_file

link.a401_article

a210_page

a030_youtube[.1]

og:video

Empty output

  • definition: TMP_failure_no-data
  • description: When used, replaces default output, when no article with set up parameters can be fetched.
  • example
<DEFINITION id="TMP_failure_no-data">
 Article view:<br />

 Sorry, can't display the specified article.
</DEFINITION>

Examples and notes