Render parameters

Render parameters

NameDescription
addstripesAdds a class that creates every other color in lists
headerfontclassH-tag class for the header
headerheadinglevelH-level for the header above the recommendations. If set to 0, no H tag is used
headeridID of the header
headertextA heading that is printed above the recommendations. Ex: “Recommended reading”
hideimageMake sure that the image is not rendered in the function that writes content
listcolsNumber of columns 1,2 or 3. Add data-renderstyle="list" to make it work with the columns.
questionsfirstWhether the questions in a search result should be placed before the pages
renderstyleIf and how should the recommendations be rendered: list, content, advanced, tree or sort
stripecolorWhat color should the biannual coloring be
stylingIf the rendering of the recommendations is to use a CSS framework, the name of the framework can be specified here
titlemaxlengthLimit the number of chars in the title, if the title is longer than 20 chars it will just add "..."
useh1forcontentIf the page's h1 should be used when rendering instead of the page title

When using advanced rendering

There is parameters dedicated for the "advanced rendering" type of displaying of recommendations.

Examples of advanced rendering

NameDescription
colsNumber of columns in width used by the recommended articles
selectorA CSS selector that specifies the div in which to display the recommendations. Only needs to be specified if using the Javascript versionor two recommendations on the same page. Ex: "#myPredictionDiv"
headertextA heading that is printed above the recommendations. Ex: “Recommended reading”
headerheadinglevelH-level for the header above the recommendations. If set to 0, no H tag is used
headerfontclassH-tag class for the header
headeridID of the header
showdatetrue or false if the date should be displayed under the image. Requires the news to have a date specified in the html code with data-rekpubdate
datefontclassThe class that prints to the div that displays the date
dateformatFormat the date displayed in a custom way
titlemaxlengthMaximum number of characters that can be included in the title
titlefontclassCSS class for the title of the article
titleheadinglevelH level for title. If set to 0, no H tag is used
showingresstrue or false if preamble should be displayed with each article
ingressfontclassThe preamble font class
ingressheadinglevelH level for preamble. If set to 0, no H tag is used but a P tag
ingressmaxlengthMaximum number of characters that may be included in the preamble
showimagetrue or false if image should be displayed for each article
fallbackimgsrcIf there is no image for the article, this image is displayed
useh1forcontentIf the article's H1 is to be used instead of title