Skip to main content

How do I customise a news list?

You can customise how the news headline list displays by using attributes in the [sched-news] tag. If the attribute is omitted, the default value is used. For example:

[sched-news num=3 showthumbnails=true tags='Postgraduate,Publications,Research seminars']/fac/soc/dept/news[/sched-news]


Attribute Possible values Default value Description
expandstories all
number
(empty) Show abstract of all or the first n stories beneath their respective headlines.
expandtopstory true
false
false Show abstract of the most recent news item beneath its headline.
groupbydate true
false
false When multiple news items are published on the same date, show the date once followed by the grouped news items.
link true
false
true The news headline links to the full news item.
num Number 5 The maximum number of news items to display.
regex Regular expression (empty) If this attribute is used, the first grouping in the regular expression is the value that is displayed. Any square brackets in the expression must be escaped with a backslash.
showdates true
false
true Show the date when the news item was published.
showsource true
false
false For news items from a composite news page, show the source of items in the headlines list.
showtags true
false
false Show tags associated with a news item.
showthumbnails true
false
false Show thumbnail image alongside each news item.
spaceafterdate true
false
true Add an extra line break between the date and the item(s) published on that date.
tags Comma-separated list of tags (empty) Only show news items which have one or more of the specified tags.
truncatestory number (empty) Maximum number of characters to display for each news item's abstract.
truncatetitle number (empty) Maximum number of characters to display for each headline.

 

Related FAQs

Support

Telephone 73737
Email webteam at warwick dot ac dot uk
How to report a problem