| ||
![]() |
Lenya Variables | |
|
These are variables added by Lenya's InputModules.
Dates{date-i18n:currentDate} returns the current datetime as: yyyy-M-dd HH:mm:ss Z Use XSL and the i18n transformer to reformat it. Defaults{defaults:skin} Returns "lenya-site". Document URLdocument-url:{area}:{document-id}:{language} Dublin Core{dublincore:abstract} {dublincore:accessRights} {dublincore:alternative} {dublincore:audience} {dublincore:available} {dublincore:bibliographicCitation} {dublincore:conformsTo} {dublincore:contributor} {dublincore:coverage} {dublincore:created} {dublincore:creator} {dublincore:date} {dublincore:dateAccepted} {dublincore:dateCopyrighted} {dublincore:dateSubmitted} {dublincore:description} {dublincore:educationLevel} {dublincore:extent} {dublincore:format} {dublincore:hasFormat} {dublincore:hasPart} {dublincore:hasVersion} {dublincore:identifier} {dublincore:isFormatOf} {dublincore:isPartOf} {dublincore:isReferencedBy} {dublincore:isReplacedBy} {dublincore:isRequiredBy} {dublincore:issued} {dublincore:isVersionOf} {dublincore:language} {dublincore:mediator} {dublincore:medium} {dublincore:modified} {dublincore:publisher} {dublincore:references} {dublincore:relation} {dublincore:replaces} {dublincore:requires} {dublincore:rights} {dublincore:source} {dublincore:spatial} {dublincore:subject} {dublincore:tableOfContents} {dublincore:temporal} {dublincore:title} {dublincore:type} {dublincore:valid} Fallbackfallback:{filepath} Returns first found of: context://lenya/pubs/{pubid}/lenya/{filepath} context:///lenya/{filepath} Forrest{forrest:{variable}} Checks for the variable in all of the following in order: request-param request-attr session-attr defaults page-envelope access-control RealPath{realpath:realpath} I am not certain what this does. It seems to return javax.servlet.ServletContext.getRealPath("realpath") without a final "/". Resource Existsresource-exists:{resourceURI} returns Boolean. Sitetree{sitetree:authoring-node} {sitetree:live-node} {sitetree:trash-node} {sitetree:archive-node} {sitetree:first-child-id} These return the Node for the current document for the given Area. The last uses the current Area. Workflow{workflow:state} {workflow:history-path} {workflow:variable:{variableName}} The variables must be Boolean ("true"|"false"). The only variableName for the default pub is "islive": {workflow:variable:is_live} Xopus{xopus:context} {xopus:path}
|