Render parameters
Name | Description |
---|---|
addstripes | Adds a class that creates every other color in lists |
headerfontclass | H-tag class for the header |
headerheadinglevel | H-level for the header above the recommendations. If set to 0, no H tag is used |
headerid | ID of the header |
headertext | A heading that is printed above the recommendations. Ex: “Recommended reading” |
hideimage | Make sure that the image is not rendered in the function that writes content |
listcols | Number of columns 1,2 or 3. Add data-renderstyle="list" to make it work with the columns. |
questionsfirst | Whether the questions in a search result should be placed before the pages |
renderstyle | If and how should the recommendations be rendered: list, content, advanced, tree or sort |
stripecolor | What color should the biannual coloring be |
styling | If the rendering of the recommendations is to use a CSS framework, the name of the framework can be specified here |
titlemaxlength | Limit the number of chars in the title, if the title is longer than 20 chars it will just add "..." |
useh1forcontent | If 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
Name | Description |
---|---|
cols | Number of columns in width used by the recommended articles |
selector | A 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" |
headertext | A heading that is printed above the recommendations. Ex: “Recommended reading” |
headerheadinglevel | H-level for the header above the recommendations. If set to 0, no H tag is used |
headerfontclass | H-tag class for the header |
headerid | ID of the header |
showdate | true 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 |
datefontclass | The class that prints to the div that displays the date |
dateformat | Format the date displayed in a custom way |
titlemaxlength | Maximum number of characters that can be included in the title |
titlefontclass | CSS class for the title of the article |
titleheadinglevel | H level for title. If set to 0, no H tag is used |
showingress | true or false if preamble should be displayed with each article |
ingressfontclass | The preamble font class |
ingressheadinglevel | H level for preamble. If set to 0, no H tag is used but a P tag |
ingressmaxlength | Maximum number of characters that may be included in the preamble |
showimage | true or false if image should be displayed for each article |
fallbackimgsrc | If there is no image for the article, this image is displayed |
useh1forcontent | If the article's H1 is to be used instead of title |