Home : Tools : FAQ : Tech : Admin : custom : Related News
Printer Friendly VersionTell a friend about this page

Related_news tag: How to generate a list of related news articles?

This custom tag allows you to make a list of the latest news defined on a certain keyword. In any news article you want to list, you can then enter this keyword and it will show on all pages this custom tag is used with that keyword.

Not that the keyword needs to be exactly the same.

Inserting the list

  1. Click the insert custom tag icon in the toolbar
  2. Choose "related_news" from the list
  3. Click "insert attribute"
  4. As attribute write "keyword", then the keyword you want to use
    (that is one of the keywords you use in the news articles that you want to show)
  5. Click "insert"

You will now see a

in your document - when the page is displayed this will be replaced by the list of news articles.

Example

You want to list all news articles with the keyword "afghanistan", you then specify keyword afghanistan as show in the image below.

Limiting the number of articles shown

If you don't want to show all articles on the chosen keyword you must add a limit attribute.

Either do this as a new step 5. above or right click on the of an already existing related_news tag.

  1. Click "new" (after you've inserted the keyword attribute)
  2. Type "limit" as attribute name and the number of articles you wish to list

Showing the selections to show the five latest news articles with the keyword afghanistan.

Here is the result of the related_news custom tag shown on a page. The title on top is entered by the user whereas the "Show all related news" at the bottom comes automatically if the number of articles is higher than the limit setting.

Tools