You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 2
Next »
Using functions to run searches with the projectdoc Toolbox.
Journals
For this short introduction of search functions our use case is journals. Suppose Jane and John want to work together and share their professional journals. Each journal is organized in years and days. Each day is a page in the year journal. Each day page collects events the journal owner wants to remember. Jane and John also use a common set of subjects, categories, and tags to organize their events.
User Function
Suppose Jane and John use the same view on their work. They craft a page with a couple of display tables and some links to sites that are currently interesting for their work. This page should also collect a number of days from the current user's diary.
This is what the Display Table Macro looks like in the macro editor.
Since every page has the user's full name as the value of the Author property, the currentUser
function can be used to render the full name (by the use of the "fn
" argument) and compare it in the search with the property value.