Home
Yet Another Killer Product
Web Portal System
Last modified on Monday, October 31 2022 - 09:51:00

This plugin is used to display the n most recent News headings (optionally of a given topic), in a scrolling banner.

Many parameters help you customize the look and feel.

Usage :
<plugin>last_news[<param>param_name<value>param_value</value></param>]</plugin>

Parameters between [ & ] are optional ( [ & ] are not part of the plugin syntax... )
You can use several parameters.

Parameters List:
 

Parameter Default Value Description
nb Nb of News per Page as defined in the site parameters Max Number of Recent News to be displayed by the plugin.
maxdays no limitation Max Number of days between now and the news posted date.
show_image 0
  • 0: No Image will be displayed.
  • 1: The first Image of the news Header will be displayed.
  • header: All Images of the news Header will be displayed.
  • content: All Images of the news Content will be displayed.
  • all : All Images of the news (Header as well as Content) will be displayed.
nbmax_img_per_news 5 Max Number of Images per News to display.
show_thumbnail 1 use 0 to display the full size image.
skip_no_image 0 use 1 to skip News with no Images.
hide_posted_date 0 use 1 to not display the News Posted date.
disable_link 0 use 1 to not generate a link to the News.
disable_pause_on_cursor 0 use 1 to disable the pause when the mouse pointer is over the plugin area.
topic No restriction on the topic List of Topic Identifiers (| character separated) that are taken into account to display the News.
When ! character is used before the topic identifier, it means that we do not want the topic.
WARNING: If a New belong to several topics, if one of them is allowed, then the News is taken into account!
width   Width (in pixel).
height   Height (in pixel).
orientation vertical horizontal or vertical.
type marquee_tag Possible values are :
  • marquee : The scrolling is done in javascript if the navigator is compatible, otherwise the html <marquee> tag is used.
  • slideshow : The scrolling is done in javascript if the navigator is compatible, otherwise the html <marquee> tag is used..
  • marquee_tag : <marquee> tag is used.



Extra Parameter List
When type parameter value is equal to marquee or marquee_tag :

 

Parameter Default Value Description
scrollamount 2 Number of scroll pixels.
scrolldelay 20 Number of milliseconds between each scroll.



Extra Parameter List
When type parameter value is equal to slideshow:

 

Parameter Default Value Description
pause_delay 7000 Number of milli-seconds to wait before displaying the next news.
transition_duration 1000 Number of milliseconds.
transition_type   cycle jquery plugin effects
transition_sync 1 in/out transitions should occur simultaneously.

Usage Example:
<plugin> last_news
<
param>nb<value>15</value></param>
<param>maxdays<value>365</value></param>
<param>orientation<value>vertical</value></param>
<param>topic<value>topic_id</value></param>
<param>height<value>200</value></param>
<param>scrollamount<value>2</value>/param>
<param>scrolldelay<value>20</value></param>
</plugin>
Valid HTML 4.01 Transitional © 2002-2015 ® YAK Pro. All rights reserved. | | |