Content - News Menu - Ressources Menu - Sitemap - Share your code - Code library - Reference
Formidable is part of the TYPO3 Project and is supported by Ameos
The renderlet:TICKER is a control which will render an HTML and will allow a scroll of it.
So, depending on what you want to display, you have two alternatives:
For example, if you want to advertise on your site, then you can simply use a renderlet:TICKER with the /html property set.
But if you want to display the latest news, then you must use renderlet:TICKER with /datasource. This will allow you to define:
| path | data type | req | default | uobj | description |
|---|---|---|---|---|---|
| all |
This control has applied all the common properties of renderlet. See renderlet:* section for the complete list of common properties to use. | ||||
| width | integer | X | 450 | Set up the width (in px) of the box where is displayed the renderlet:TICKER. | |
| height | integer | X | 18 | Set up the height (in px) of the box where is displayed the renderlet:TICKER. | |
| offsettop | integer | 0 | Set up the position of renderlet:TICKER (in px) from the top of box, from where will start to be showed on. | ||
| offsetleft | integer | 0 | Set up the position of renderlet:TICKER (in px) from the left of box, from where will start to be showed on. | ||
| background | string | none |
Specify a background for the box where is displayed the renderlet:TICKER, if any. Example:
| ||
| bgcolor | string | transparent |
Specify a background color for the box where is displayed the renderlet:TICKER, if any. Example:
| ||
| border | string | none |
Specify a border for the box where is displayed the renderlet:TICKER, if any. Example:
| ||
| bordercolor | string | white |
Specify a border color for the box where is displayed the renderlet:TICKER, if any. Example:
| ||
| itemwidth | integer |
Set up the width (in px) of each item presented into the renderlet:TICKER. If it isn't specified, then a default width is set up. This width can be sometimes distorted, because of the variety of the web browsers. So, it will be safer to set it up manually. | |||
| itemheight | integer |
Set up the height (in px) of each item presented into the renderlet:TICKER. If it isn't specified, then a default height is set up. This height can be sometimes distorted, because of the variety of the web browsers. So, it will be safer to set it up manually. | |||
| itemstyle | string |
Set up the inline styles that must be applied to each item of this renderlet:TICKER. Example:
| |||
| scrolling/ :
Specify all the configurations needed to execute the scroll of this renderlet:TICKER. Example:
| |||||
| scrolling/mode | string | X | horizontal |
Set up the way how the content will be scrolled into the page. The possible choices are:
| |
| scrolling/direction | string | X | left|top |
Set up the direction to where the content must be scrolled. The possible choices are:
Remarks:
| |
| scrolling/startdelay | integer | X | 2500 | Set up the time which must pass before the execution of the first scroll (in milliseconds). | |
| scrolling/nextdelay | integer | X | 100 | Set up the time which must pass before the execution of the next scroll (in milliseconds). | |
| scrolling/amount | integer | X | 1 | Set up how far to jump at each execution of the scroll (in px). | |
| scrolling/stop | boolean | false |
Stop the scroll of ticker, if you want it. This property is very useful when you are designing the renderlet:ticker. This is a debug property. | ||
| scrolling/overflow | string | hidden |
Show all the content of the ticker. This property is very useful when you are debugging the renderlet:ticker. When you want, for example, to see the entire content of ticker and to see how it really works. This is a debug property. | ||
| html | string | X |
Set up the HTML to be displayed into the renderlet:TICKER. If you will define a /datasource and his /childs for this control, then you don't have to provide any /html content. Example:
| ||
| datasource/ :
Specify which datasource is used to populate this renderlet:TICKER. Example:
| |||||
| datasource/use | string |
Set up the name of datasource:* to whom is linked this renderlet:TICKER. You must set up either a datasource with childs or an html, in order to be able to scroll something in this renderlet:TICKER. | |||
| datasource/limit | integer | 5 | Specify the max number of items to show on the renderlet:TICKER. | ||
| datasource/orderby | string | tstamp | Specify the field used to sort the items. | ||
| datasource/orderdir | string | DESC | Specify the way how the items will be sorted: ASC or DESC. | ||
| template/ :
Specify which template file is used to design the childs of this renderlet:TICKER. Example:
| |||||
| template/path | string | X | Set the absolute path of template file. | ||
| template/subpart | string | X | Set the name of subpart used to render this renderlet:TICKER. | ||
| template/alternaterows | string | X |
Set the name of subparts used to render each type of row from this renderlet:TICKER. In the following example, all the odd rows is rendered using the subpart ###ROW1### and all the even rows by using ###ROW2###:
| ||
| childs/ :
When a renderlet:TICKER has a /datasource, then it is required to set up a list of childs to display into this control, in concordance with his datasource. All these childs will be also rendered into the page with the aid of a template file (see the section /template). So, this placeholder will allow you to describe the list of childs for this control; where each child represents a renderlet:* and allows the nesting of elements inside your application. Example:
| |||||
Provided by Ameos
1). This example presents the definition of a renderlet:TICKER with data source of type /html:
2). In the following example, the renderlet:TICKER has a data source of type /datasource. In this case, you must also define the place holders: /template and /childs.