Placeholders

This is a user-contributed Extra. If you find issues or would like more info or help, please contact the author.

Note that if using an id parameter in Ditto (&id=`myid`) then the placeholders must be prefixed by that id followed by underscore. For example [+myid_next+].

General placeholders

Placeholder Description Notes
[+author+] First available of createdby->fullname, createdby->username, admin username of retrieved document
[+title+] pagetitle field of retrieved document
[+url+] link to retrieved document
[+ditto_iteration+] sequence number of retrieved document within current page Starts from zero
[+ditto_sort+] sequence number of retrieved document within complete retrieved set Not officially documented, spotted in Debug screen and it just works. Starts from zero

Placeholders for "pagination"

ALL PAGINATION PLACEHOLDERS ARE EMPTY if "&paginate <> 1"

Placeholder Description Notes
[+next+] link to next page of result
[+previous+] link to previous page of result
[+splitter+] filled with &paginateSplitterCharacter when [+previous+] and [+next+] are both active
[+start+] sequence number within complete set of first displayed document on page
[+urlStart+] number of current page as seen in URL query string (?start=[+urlStart+])
[+stop+] sequence number within complete set of last displayed document on page
[+total+] total number of retrieved documents
[+pages+] page-number links to all the other pages, inactive display of current page number
[+currentPage +] number of current page
[+perPage+] displayed items per page (equal to <strong>&display</strong>)
[+totalPages+] total number of pages in result
[+ditto_pagination_set+] 1 if &paginate is set

Placeholders for "summary"

Placeholder Description Notes
[+content+] Content of document content field, if not blank, or truncated text
[+summary+] Content of introtext field, if not blank, or truncated text
[+link+] Link to full item Link text set by &trunctText or default from language file

Placeholders for "tagging"

Placeholder Description Notes
[+tagLinks+] list of tags associated with document, separated by &tagDelimiter Hyperlinks to filtered view for each tag in &tagDocumentID (or current document)
[+tags+] In page containing result: tags used to filter in the displayed documents Reflects &tags parameter or tags supplied in URL

Placeholders for "dateFilter"

Placeholder Description Notes
[+year+] selected year in filter Two or four-digit value as supplied
[+month+] selected month in filter Numerical month
[+day+] selected day in filter Numerical day

Suggest an edit to this page.