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

Manual.rst: Add example for recent list.

parent f4a96f8c
......@@ -6231,11 +6231,11 @@ A nice feature is to show a list with last changed records. The following will s
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
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
LEFT 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;
......
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