* Christoph H. Larsen: " [Mayan EDMS: 895] Re: SmartLink and document
  properties." (Tue, 14 Oct 2014 00:49:47 -0700 (PDT)):

> Dear Crowd,
> 
> I am also struggling here.
> Unless I have missed something huge, it seems that the documentation for 
> the rather powerful SmartLink feature is, well, near-missing.
> Would it be possible to have ONE good example documented, and ideally 
> included into the manual?
> It is a pity, if Mayan EDMS' feature are hidden away for nobody to use ;-).

Quick and simple example to show documents of the same project:

Title: Same project
Dynamic title: u'All documents of: %s' % getattr(metadata, 'project',
'None')

Condition:
Inclusion: and
Foreign document data: metadata.project
Operator: equal
Expression: metadata.project

> Thanks a lot,

Welcome. It would be nice, if you could provide now some text to include in
documentation, very appreciated.

Cheers,
Mathias



> On Monday, 25 February 2013 00:58:05 UTC+3, Imię Nazwisko wrote:
> >
> > When editing SmartLink condition you say:
> > *'This expression will be Evaluated against the current selected document. 
> > The document metadata is available as variables `metadata` and document 
> > properties under the variable `document`.* 
> >
> > *Where can I get a list of the properties of a document?*
> >
> > When I wanted to see fields of 'User' variable I typed it into the foo 
> > metadata to a Lookup field as dir(User) and when I upload a new document I 
> > could see the properties in the drop-down list.
> > How to do a similar trick with the properties of a document?
> >
> > The second question: *SmartLink condition*.
> >
> > I have a metadata.IssueDate and I want to see the documents older and 
> > younger than the present.
> > So I type: a foreign document data = metadata.IssueDate, the operator = GT 
> > and expression = ... ? 
> > Tried Metadata.IssueDate and does not work (dynamic variable 
> > metadata.IssueDate displays SmartLink title as ex. 2000).
> >
> >
> 

Attachment: signature.asc
Description: PGP signature

Reply via email to