Commit f4a96f8c authored by Carsten  Rose's avatar Carsten Rose
Browse files

Manual.rst: Add example for recent list.

parent 525550f3
......@@ -3159,7 +3159,7 @@ See also `downloadButton`_ to offer a download of an uploaded file.
* If for a specific filetype is no mime type available, the definition of file extension(s) is possible. This is **less
secure**, cause there is no *content* check on the server after the upload.
* *maxFileSize*: max filesize in bytes (no unit), kilobytes (k/K) or megabytes (m/M) for an uploaded file. Default: 10MB.
* *maxFileSize*: max filesize in bytes (no unit), kilobytes (k/K) or megabytes (m/M) for an uploaded file. Default: 10M.
* *fileDestination*: Destination where to copy the file. A good practice is to specify a relative `fileDestination` -
such an installation (filesystem and database) are moveable.
......@@ -3312,7 +3312,7 @@ Table 'Split':
+--------------+--------------------------------------------------------------------------------------------+
| xId | Primary id of the reference record. |
+--------------+--------------------------------------------------------------------------------------------+
| pathFileName | Path/filename referenc to one of the created files |
| pathFileName | Path/filename reference to one of the created files |
+--------------+--------------------------------------------------------------------------------------------+
| created | Timestamp |
+--------------+--------------------------------------------------------------------------------------------+
......@@ -6080,7 +6080,7 @@ See `Formatting Examples`_ for examples of how the output can be formatted.
Formatting Examples
^^^^^^^^^^^^^^^^^^^
Formating (i.e. wrapping of data with HTML tags etc.) can be achieved in two different ways:
Formatting (i.e. wrapping of data with HTML tags etc.) can be achieved in two different ways:
One can add formatting output directly into the SQL by either putting it in a separate column of the output or by using
concat to concatenate data and formatting output in a single column.
......@@ -6224,6 +6224,23 @@ Same as above, but written in the nested notation ::
* Columns starting with a '_' won't be printed but can be accessed as regular columns.
Recent List
^^^^^^^^^^^
A nice feature is to show a list with last changed records. The following will show the 10 last modified (Form or
FormElement) forms: ::
10 {
sql = SELECT CONCAT('p:form&r=', F.id, '|t:', F.name,'|c:n|o:', GREATEST(MAX(FE.modified), F.modified)) AS _page
FROM Form AS F
INNER JOIN FormElement AS FE ON FE.formId = F.id
GROUP BY F.id
ORDER BY GREATEST(MAX(FE.modified), F.modified) DESC
LIMIT 10
head = <h3>Recent Forms</h3>
rsep = ,&ensp;
}
.. _help:
Help
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment