Keywords - menu of related pages 

Makes a menu of pages, which contain one or more keywords also found on the current page.

Mount pages are supported.

Properties 

Name Type Default
integer /stdWrap
string SYS_LASTCHANGED
integer
integer 20
integer 10
boolean false
boolean
string /stdWrap
string keywords
string keywords

special.value 

special.value
Type
integer /stdWrap
Example
Example: Find related pages of the current page

UID of the page for which related pages by keyword should be found.

special.mode 

special.mode
Type
string
Default
SYS_LASTCHANGED

Which field in the pages table should be used for sorting?

Possible values are:

SYS_LASTCHANGED
Is updated to the youngest time stamp of the records on the page when a page is generated.
manual or lastUpdated
Uses the field lastUpdated, which can be set manually in the page record.
tstamp
Uses the tstamp field of the page record, which is set automatically when the record is changed.
crdate
Uses the crdate field of the page record. This field is set once on creation of the record and left unchanged afterwards.
starttime
Uses the starttime field.

special.entryLevel 

special.entryLevel
Type
integer

Where in the root line the search begins.

See property entryLevel in the HMENU.

special.depth 

special.depth
Type
integer
Default
20

Same as in section "special = updated".

special.limit 

special.limit
Type
integer
Default
10

Maximal number of items in the menu. Default is 10, maximum is 100.

special.excludeNoSearchPages 

special.excludeNoSearchPages
Type
boolean
Default
false

If set, pages marked No search are not included.

special.begin 

special.begin
Type
boolean

special.setKeywords 

special.setKeywords
Type
string /stdWrap

Lets you define the keywords manually by defining them as a comma- separated list. If this property is defined, it overrides the default, which is the keywords of the current page.

special.keywordsField 

special.keywordsField
Type
string
Default
keywords

Defines the field in the pages table in which to search for the keywords. Default is the field name keyword. No check is done to see if the field you enter here exists, so make sure to enter an existing field.

special.keywordsField.sourceField 

special.keywordsField.sourceField
Type
string
Default
keywords

Defines the field from the current page from which to take the keywords being matched. The default is keyword. (Notice that special.setKeywords is only setting the page record field to search in!)

Examples 

Example: Find related pages of the current page 

EXT:site_package/Configuration/Sets/Main/setup.typoscript
lib.relatedPagesMenu = HMENU
lib.relatedPagesMenu {
  special = keywords
  special {
    value.data = page:uid
    entryLevel = 1
    mode = manual
  }
  // render the menu
}
Copied!